/* Connect page: people and program cards. Builds on selector.css and selector-pages.css. */
body.connect-page .selector-card {
    align-items: stretch;
    text-align: center;
}

body.connect-page .connect-card-header {
    height: 4.5rem;
    border-bottom: 4px solid #ff4800;
    background: linear-gradient(135deg, #003a68 0%, #002f55 45%, #ff4800 100%);
}

body.connect-page .connect-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 6rem;
    height: 6rem;
    margin: -3rem auto 0;
    overflow: hidden;
    border: 4px solid #ff4800;
    border-radius: 50%;
    background: #002f55;
    color: #fff;
    font-size: 1.75rem;
    font-weight: 900;
    letter-spacing: 0.05em;
}

body.connect-page .connect-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.connect-page .connect-avatar .fa {
    font-size: 2.25rem;
}

body.connect-page .selector-card-body {
    align-items: center;
    padding-top: 1rem;
}

body.connect-page .selector-card h3:after {
    margin-right: auto;
    margin-left: auto;
}

body.connect-page .selector-card .connect-role {
    margin: 0 0 1.25rem;
    color: #ddd;
}

body.connect-page .connect-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-top: auto;
}

body.connect-page .connect-actions .pill {
    padding: 0.4rem 1.1rem;
    font-size: 0.9rem;
}

body.connect-page .connect-actions .pill-outline {
    background: transparent;
    color: #fff;
}

body.connect-page .connect-actions .pill-outline:hover,
body.connect-page .connect-actions .pill-outline:focus-visible {
    background: #ff4800;
}

body.connect-page .connect-actions .pill .fa,
body.connect-page .connect-actions .pill svg {
    margin-right: 0.4rem;
}

body.connect-page .connect-actions .pill svg {
    width: 0.85em;
    height: 0.85em;
    fill: currentColor;
    vertical-align: -0.05em;
}

body.connect-page .home-intro a {
    color: #ff4800;
    font-weight: 700;
}

body.connect-page .home-intro a:hover,
body.connect-page .home-intro a:focus-visible {
    color: #fff;
}

/* In-page section jumps from the "Jump to" nav.
   The ids live on the <h2>, so the offset belongs there. */
body.connect-page .selector-section h2[id] {
    scroll-margin-top: 1.5rem;
}

/* connect.css is only loaded by this page, so this is safely scoped */
html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}
