/* Research directory: compact topics and calm, readable project cards. */
.research-directory { --research-chip-bg:#e8f3fc; --research-chip-border:#d4e5f3; --research-status:#00877e; --research-filter-active:var(--nav-dark); --research-filter-text:#fff; }
body.dark-mode .research-directory { --research-chip-bg:#172c45; --research-chip-border:#2c4562; --research-status:#5dd6c6; --research-filter-active:var(--accent-blue); --research-filter-text:#0d131f; }
.research-directory > .container, .research-directory .department-page-hero > .container { max-width:1480px; padding-inline:40px; }
.research-directory .department-page-hero { padding:18px 0 22px; }
.research-directory .department-page-hero > .container > a { font:400 14px/1.5 var(--font-body); color:#e7f2fc; }
.research-directory .department-page-hero h1 { font-size:34px; margin:6px 0 8px; }
.research-directory .department-page-hero .entry-content { max-width:980px; font:400 16px/1.65 var(--font-body); }
.research-directory .department-page-hero .entry-content p { margin:0; }
.research-directory .department-directory-body { padding-block:22px 52px; }
.research-directory .research-topics { margin-bottom:28px; }
.research-directory .department-directory-section > h2,
.research-directory .research-projects-heading h2 { font-size:clamp(26px, 2vw, 30px); }
.research-topics h2 { margin-bottom:4px; }
.research-topics > p { font:400 15px/1.6 var(--font-body); color:var(--text-muted); margin:0 0 14px; }
.research-area-links { display:flex; flex-wrap:wrap; gap:8px; list-style:none; margin:0; padding:0; }
.research-area-links li { min-width:0; max-width:100%; }
.research-area-links a { display:inline-flex; align-items:center; gap:8px; padding:6px 13px; min-height:32px; max-width:100%; border:1px solid var(--research-chip-border); border-radius:20px; background:var(--research-chip-bg); color:var(--text-body); font:400 14px/1.45 var(--font-body); text-decoration:none; }
.research-area-links a > span:first-child { overflow-wrap:anywhere; }
.research-area-links a:hover, .research-area-links a[aria-current] { background:var(--accent-blue); border-color:var(--accent-blue); color:var(--bg-white); }
.research-faculty-count { font-size:12px; min-width:17px; text-align:center; opacity:.8; }
.research-faculty-count .screen-reader-text, .research-sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }
.research-topics-toggle { margin-top:12px; padding:4px 0; border:0; background:transparent; color:var(--accent-blue); font:500 14px/1.6 var(--font-body); cursor:pointer; text-decoration:underline; text-underline-offset:4px; }
/* Topic matches are compact photo links rather than full directory cards. */
.research-directory .research-faculty-heading { margin:8px 0 16px; font:400 15px/1.5 var(--font-body); color:var(--text-muted); }
.research-faculty-icons { display:flex; flex-wrap:wrap; align-items:flex-start; gap:18px 22px; list-style:none; margin:0; padding:0; }
.research-faculty-icons li { width:144px; min-width:0; }
.research-faculty-link { display:flex; flex-direction:column; align-items:center; gap:10px; padding:5px 3px; color:var(--text-dark); text-decoration:none; border-radius:6px; }
.research-faculty-portrait { display:grid; place-items:center; width:112px; height:112px; border-radius:50%; overflow:hidden; background:var(--research-chip-bg); border:2px solid var(--bg-white); box-shadow:0 0 0 1px var(--research-chip-border); flex:none; }
.research-faculty-portrait img { display:block; width:100%; height:100%; object-fit:contain; object-position:center; }
.research-faculty-portrait > span { font:500 23px/1 var(--font-body); color:var(--accent-blue); }
.research-faculty-name { text-align:center; overflow-wrap:anywhere; font:400 14px/1.5 var(--font-body); }
.research-faculty-link:focus-visible .research-faculty-portrait { box-shadow:0 0 0 2px var(--accent-blue); }
.research-faculty-link:focus-visible .research-faculty-name { color:var(--accent-blue); }
@media(hover:hover) and (pointer:fine) {
    .research-faculty-link:hover .research-faculty-portrait { box-shadow:0 0 0 2px var(--research-chip-border),0 4px 12px #005fa615; }
    .research-faculty-link:hover .research-faculty-name { color:var(--accent-blue); }
}
@media(hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference) {
    .research-faculty-portrait { transition:transform 180ms ease,box-shadow 180ms ease; }
    .research-faculty-link:hover .research-faculty-portrait, .research-faculty-link:focus-visible .research-faculty-portrait { transform:scale(1.1); }
}
@media(max-width:600px) {
    .research-faculty-icons { gap:16px 14px; }
    .research-faculty-icons li { width:116px; }
    .research-faculty-portrait { width:96px; height:96px; }
    .research-faculty-name { font-size:13px; }
}
.research-directory .research-projects { margin:0 0 36px; padding-top:26px; border-top:1px solid var(--card-border); }
.research-projects-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:24px; margin-bottom:16px; }
.research-projects-heading h2 { margin:0; }
.research-project-search { position:relative; flex:0 1 350px; }
.research-project-search svg { position:absolute; left:14px; top:50%; transform:translateY(-50%); color:var(--text-muted); pointer-events:none; }
.research-project-search input { width:100%; padding:11px 14px 11px 42px; border:1px solid var(--card-border); border-radius:999px; background:var(--bg-white); color:var(--text-dark); font:400 14px/1.5 var(--font-body); }
.research-project-search input::placeholder { color:var(--text-muted); opacity:1; }
.research-project-controls { display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; margin-bottom:22px; }
.research-project-filters { display:flex; flex-wrap:wrap; gap:10px; }
.research-project-filters button, .research-project-more button { border:1px solid var(--research-chip-border); border-radius:999px; padding:8px 18px; color:var(--text-body); background:var(--bg-white); cursor:pointer; font:400 15px/1.5 var(--font-body); }
.research-project-filters button[aria-pressed="true"] { background:var(--research-filter-active); color:var(--research-filter-text); border-color:var(--research-filter-active); }
.research-project-filters button:hover { border-color:var(--accent-blue); }
.research-project-results { margin:0; color:var(--text-muted); font:400 14px/1.5 var(--font-body); }
.research-project-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:22px; }
.research-project-card { min-width:0; display:flex; flex-direction:column; padding:24px 25px 18px; background:var(--bg-white); border:1px solid var(--research-chip-border); border-radius:9px; }
.research-project-status { display:flex; align-items:center; gap:9px; color:var(--research-status); font:400 14px/1.5 var(--font-body); margin-bottom:12px; }
.research-project-status > span { width:7px; height:7px; border-radius:50%; background:currentColor; flex:none; }
.research-project-status.completed { color:var(--text-muted); }
.research-project-card h3 { font:400 19px/1.45 var(--font-body); letter-spacing:-.02em; color:var(--text-dark); margin:0 0 10px; overflow-wrap:anywhere; }
.research-project-card h3 a { color:inherit; text-decoration:none; }
.research-project-card h3 a:hover { color:var(--accent-blue); text-decoration:underline; text-underline-offset:4px; }
.research-project-summary, .research-project-sponsor { margin:0 0 14px; color:var(--text-muted); font:400 15px/1.65 var(--font-body); overflow-wrap:anywhere; }
.research-project-summary { display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.research-project-footer { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; margin-top:auto; padding-top:16px; border-top:1px solid var(--card-border); }
.research-project-lead { display:flex; align-items:center; gap:9px; min-width:0; flex:1 1 145px; font:400 14px/1.5 var(--font-body); color:var(--text-body); overflow-wrap:anywhere; }
.research-project-lead a { color:inherit; text-decoration:none; }
.research-project-lead a:hover { text-decoration:underline; }
.research-project-initials { display:grid; place-items:center; flex:none; width:29px; height:29px; border-radius:50%; background:var(--research-chip-bg); color:var(--text-body); font-size:11px; }
.research-project-open { font:400 14px/1.5 var(--font-body); color:var(--accent-blue); text-decoration:none; white-space:nowrap; }
.research-project-open:hover { text-decoration:underline; text-underline-offset:4px; }
.research-project-more { text-align:center; margin-top:26px; }
.research-project-more button { color:var(--accent-blue); border-color:var(--accent-blue); padding:11px 28px; }
.research-project-more button:hover { color:var(--bg-white); background:var(--accent-blue); }
.research-directory [hidden] { display:none !important; }
.research-directory :is(a,button,input):focus-visible { outline:2px solid var(--accent-blue); outline-offset:4px; }
.research-directory .department-section-nav { gap:20px; }
.research-directory .department-section-nav a { font:400 15px/1.5 var(--font-body); border:0; padding:0; color:var(--accent-blue); }
@media(max-width:1050px) {
    .research-directory > .container, .research-directory .department-page-hero > .container { padding-inline:28px; }
    .research-project-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
    .research-project-card { padding:22px; }
}
@media(max-width:600px) {
    .research-directory > .container, .research-directory .department-page-hero > .container { padding-inline:18px; }
    .research-directory .department-page-hero { padding-block:16px 20px; }
    .research-directory .department-page-hero h1 { font-size:29px; }
    .research-projects-heading { display:block; }
    .research-project-search { margin-top:18px; }
    .research-project-grid { grid-template-columns:minmax(0,1fr); }
    .research-project-card { padding:21px; }
    .research-area-links { gap:7px; }
    .research-area-links a { padding:6px 11px; font-size:14px; }
    .research-project-filters { gap:8px; }
    .research-project-filters button { padding:8px 13px; }
    .research-project-footer { gap:10px; }
}


.research-directory .research-globe-hero {
    position:relative;
    isolation:isolate;
    overflow:hidden;
    background:linear-gradient(110deg,#101521,#142b3c);
}
.research-globe-canvas { position:absolute; inset:0; width:100%; height:100%; z-index:-2; pointer-events:none; }
.research-globe-hero::after { content:""; position:absolute; inset:0; z-index:-1; pointer-events:none; background:linear-gradient(90deg,#101521 0%,#101521de 35%,transparent 72%); }
.research-directory .research-globe-hero .entry-content { max-width:540px; color:#d9e4f0; }
.research-directory .research-globe-hero h1 { color:#fff; font-size:clamp(32px,4vw,48px); }
@media(max-width:767px) {
    .research-globe-hero::after { background:linear-gradient(90deg,#101521f5,#10152166); }
}
