.ct5-page {
    padding-bottom: 48px;
}

/* banner: V2 theme gradient (see theme.css) */
.ct5-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin: 0 -4px;
    padding: 44px 24px 40px;
    border-radius: 0 0 20px 20px;
    background: var(--v5-hero);
    color: var(--v5-hero-ink);
    text-align: center;
}

.ct5-hero-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border: 1px solid rgba(12, 74, 110, 0.35);
    border-radius: 50%;
    background-color: rgba(12, 74, 110, 0.1);
}

    .ct5-hero-icon .mud-icon-root {
        color: var(--v5-hero-ink);
        font-size: 1.9rem;
    }

.ct5-title {
    margin: 0;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    line-height: 1.3;
}

.ct5-count {
    padding: 3px 14px;
    border-radius: 999px;
    background-color: var(--v5-accent);
    color: var(--v5-sky-900);
    font-size: 0.85rem;
    font-weight: 700;
}

/* profile cards */
.ct5-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 280px));
    justify-content: center;
    gap: 24px;
    max-width: 1200px;
    margin: 36px auto 0;
    padding: 0 12px;
    list-style: none;
}

.ct5-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 0 20px 24px;
    overflow: hidden;
    border-radius: 18px;
    background-color: var(--mud-palette-surface);
    box-shadow: 0 6px 22px rgba(12, 74, 110, 0.1);
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .ct5-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 14px 32px rgba(12, 74, 110, 0.18);
    }

.ct5-band {
    align-self: stretch;
    height: 84px;
    margin: 0 -20px;
    background: var(--v5-hero);
}

/* round photo overlapping the band; the initials sit underneath the photo */
.ct5-avatar {
    position: relative;
    width: 120px;
    height: 120px;
    margin-top: -64px;
    overflow: hidden;
    border: 4px solid var(--mud-palette-surface);
    border-radius: 50%;
    background: linear-gradient(135deg, var(--v5-sky-700), var(--v5-sky-500));
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

    .ct5-avatar img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.ct5-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #fff;
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.ct5-name {
    margin: 4px 0 0;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.5;
}

.ct5-website {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border: 1px solid var(--v5-sky-700);
    border-radius: 999px;
    color: var(--v5-sky-700);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

    .ct5-website:hover,
    .ct5-website:focus-visible {
        background-color: var(--v5-sky-700);
        color: #fff;
    }

.ct5-social {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

    .ct5-social a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        border-radius: 50%;
        background-color: var(--mud-palette-background-gray);
        color: var(--v5-sky-800);
        transition: background-color 0.2s ease, color 0.2s ease;
    }

        .ct5-social a:hover,
        .ct5-social a:focus-visible {
            background-color: var(--v5-accent);
            color: var(--v5-sky-900);
        }

/* loading and empty states */
.ct5-loading {
    display: flex;
    justify-content: center;
    padding: 60px 0;
}

.ct5-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 60px 0;
    color: var(--mud-palette-text-secondary);
    text-align: center;
}

    .ct5-empty p {
        margin: 0;
    }

@media (max-width: 600px) {
    .ct5-hero {
        padding: 32px 16px 28px;
        border-radius: 0 0 14px 14px;
    }

    .ct5-grid {
        margin-top: 24px;
        gap: 16px;
    }
}
