.athletes-overview-grid {
    display: grid;
    gap: var(--space-lg);
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.athletes-search-card {
    display: flex;
    min-height: 0;
    flex-direction: column;
    contain: size;
    overflow: hidden;
}

.athletes-search-card [data-athlete-results] {
    display: grid;
    min-height: 0;
    margin-top: 1rem;
    padding-right: 0.35rem;
    flex: 1 1 auto;
    align-content: start;
    overflow-y: auto;
    scrollbar-color: var(--app-border) transparent;
    scrollbar-width: thin;
}

.athletes-search-card [data-athlete-results] .entity-list {
    margin-top: 0;
    align-content: start;
    grid-auto-rows: max-content;
}

.athletes-search-card [data-athlete-results] .entity-row {
    display: grid;
    grid-template-columns: 2.35rem minmax(3.5rem, 1fr) auto;
}

.athletes-search-card [data-athlete-results] .entity-main {
    min-width: 3.5rem;
    margin-right: 0;
    overflow: hidden;
}

.athletes-search-card [data-athlete-results] .entity-main a,
.athletes-search-card [data-athlete-results] .entity-main strong,
.athletes-search-card [data-athlete-results] .entity-main span {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.athletes-search-card [data-athlete-results] .entity-row > .page-action,
.athletes-search-card [data-athlete-results] .entity-row > .status-badge {
    justify-self: end;
}

.athletes-search-card [data-athlete-results] .entity-row > form {
    display: flex;
    width: auto;
    margin-left: 0;
    justify-content: flex-end;
    justify-self: end;
}

.athletes-promoted-card {
    grid-column: 2 / -1;
}

.athlete-promotions {
    display: grid;
    margin-top: 1rem;
    gap: 0.75rem;
    grid-auto-flow: dense;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(4, minmax(6.5rem, auto));
}

.athlete-promotion {
    display: grid;
    min-width: 0;
    border: 0;
    border-radius: var(--radius-md);
    background: var(--app-surface-muted);
    color: var(--app-text);
    padding: 0.85rem;
    align-items: center;
    gap: 0.75rem;
    grid-template-columns: auto minmax(0, 1fr) auto;
    text-decoration: none;
}

.athlete-promotion:hover,
.athlete-promotion:focus-visible {
    outline: 0;
}

.athlete-promotion-featured {
    background: var(--app-accent-gradient);
    color: var(--app-on-brand);
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: 1fr auto;
}

.athlete-promotion-featured.athlete-promotion-pro {
    background: var(--app-primary-gradient);
}

.athlete-promotion-featured.athlete-promotion-elite {
    background: var(--app-accent-gradient);
}

.athlete-featured-1 {
    grid-row: 1 / span 2;
}

.athlete-featured-2 {
    grid-row: 3 / span 2;
}

.athlete-featured-column-1 {
    grid-column: 1;
}

.athlete-featured-column-2 {
    grid-column: 2;
}

.athlete-featured-column-3 {
    grid-column: 3;
}

.athlete-promotion-avatar {
    display: inline-grid;
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 50%;
    background: var(--app-surface);
    color: var(--app-accent-text);
    font-size: 0.72rem;
    font-weight: 800;
    place-items: center;
}

.athlete-promotion-featured .athlete-promotion-avatar {
    width: 3.5rem;
    height: 3.5rem;
    background: color-mix(in srgb, var(--app-on-brand) 16%, transparent);
    color: var(--app-on-brand);
    grid-row: 1 / span 2;
}

.athlete-promotion-main {
    display: grid;
    min-width: 0;
}

.athlete-promotion-main strong {
    overflow: hidden;
    font-size: 0.8rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.athlete-promotion-main small {
    overflow: hidden;
    color: var(--app-text-muted);
    font-size: 0.62rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.athlete-promotion-badge {
    color: var(--app-accent-text);
    font-size: 0.56rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.athlete-promotion-sports {
    display: flex;
    min-height: 1rem;
    margin-top: 0.3rem;
    color: var(--app-accent-icon);
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    font-size: 0.68rem;
}

.athlete-promotion-featured .athlete-promotion-sports {
    color: var(--app-on-brand);
    font-size: 0.82rem;
}

.athlete-promotion-featured .athlete-promotion-main strong,
.athlete-promotion-featured .athlete-promotion-main small,
.athlete-promotion-featured .athlete-promotion-badge {
    color: var(--app-on-brand);
}

.athlete-promotion-featured .athlete-promotion-main strong {
    font-size: 1rem;
}

.athlete-promotion-featured .athlete-promotion-main small {
    font-size: 0.72rem;
}

.athlete-promotion-featured .athlete-promotion-badge {
    font-size: 0.64rem;
}

.athlete-promotion-action {
    display: inline-flex;
    min-width: 2.25rem;
    min-height: 2.25rem;
    border: 1px solid var(--app-border);
    border-radius: var(--radius-sm);
    background: var(--app-surface);
    color: var(--app-text);
    padding: 0.55rem;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-size: 0.65rem;
    font-weight: 800;
}

.athlete-promotion-featured .athlete-promotion-action {
    width: fit-content;
    border-color: color-mix(in srgb, var(--app-on-brand) 50%, transparent);
    font-size: 0.74rem;
    grid-column: 2;
    grid-row: 2;
}

@media (max-width: 900px) {
    .athletes-overview-grid {
        grid-template-columns: 1fr;
    }

    .athletes-search-card,
    .athletes-promoted-card {
        grid-column: auto;
    }

    .athletes-search-card {
        max-height: min(
            32rem,
            calc(100dvh - var(--app-header-height) - (2 * var(--app-content-gutter)))
        );
        contain: none;
    }
}

@media (max-width: 700px) {
    .athlete-promotions {
        grid-template-columns: 1fr;
        grid-template-rows: none;
    }

    .athlete-featured-1,
    .athlete-featured-2,
    .athlete-featured-column-1,
    .athlete-featured-column-2,
    .athlete-featured-column-3 {
        grid-column: auto;
        grid-row: auto;
    }

    .athlete-promotion-featured {
        min-height: 7rem;
    }
}
