/* Shared animated hero for faculty, staff and alumni directories. */
.faculty-directory-hero {
    position: relative;
    color: #fff;
    min-height: var(--cic-page-hero-height);
    padding: 24px 0 32px;
    overflow: hidden;
    isolation: isolate;
    box-shadow: none;
    background: linear-gradient(115deg, #040814, #0b1d3a);
}
.faculty-network-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.faculty-directory-hero .faculty-poster-container { max-width: 1240px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; pointer-events: none; }
.faculty-directory-hero .faculty-poster-header-content { max-width: 440px; margin-top: 24px; }
.faculty-network-intro .faculty-poster-header-content {
    opacity: 0;
    transform: translateY(8px);
}
.faculty-network-intro.faculty-network-ready .faculty-poster-header-content { opacity: 1; transform: none; transition: opacity .9s ease, transform .9s ease; }
@media (prefers-reduced-motion: reduce) {
    .faculty-network-intro .faculty-poster-header-content { opacity: 1; transform: none; transition: none; }
}
.faculty-directory-hero .faculty-poster-title {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(23.8px, 2.24vw, 33.6px);
    letter-spacing: -.035em;
    line-height: 1.1;
    margin: 0 0 10px;
    color: #fff;
    text-shadow: 0 2px 18px #040814;
}
.faculty-directory-hero .faculty-poster-subtitle {
    max-width: 420px;
    color: #c3d0e1;
    font-size: 14px;
    line-height: 1.65;
    text-shadow: 0 1px 8px #040814;
}

.faculty-directory-hero .faculty-poster-subtitle p { margin: 0; }
@media (max-width: 1050px) {
    .faculty-directory-hero .faculty-poster-title { font-size: 28px; }
}
@media (max-width: 767px) {
    .faculty-directory-hero { padding: 24px 0 22px; }
    .faculty-directory-hero .faculty-poster-title { font-size: clamp(23.8px, 4.9vw, 30.8px); }
}

/* Faculty and Staff directory palette, driven by the site theme toggle. */
.faculty-page-wrapper:not(.faculty-single-page), .department-content-page.staff-directory {
    --directory-bg: #f3f6f9;
    --directory-surface: #fff;
    --directory-frame: #f1f3f5;
    --directory-line: #d6dfea;
    --directory-ink: #182536;
    --directory-muted: #52667d;
    --directory-accent: #225b82;
    --directory-on-accent: #fff;
    --directory-hover: #e9f1f8;
    --directory-label: #986140;
    background: var(--directory-bg);
}
body.dark-mode :is(.faculty-page-wrapper:not(.faculty-single-page), .department-content-page.staff-directory) {
    color-scheme: dark;
    --directory-bg: #161c28;
    --directory-surface: #1c2434;
    --directory-frame: #222b3e;
    --directory-line: #303d54;
    --directory-ink: #eef4fc;
    --directory-muted: #a6b9d0;
    --directory-accent: #5cb8df;
    --directory-on-accent: #101e2b;
    --directory-hover: #29374c;
    --directory-label: #efaa73;
}
