/* Styles for the Lab Members page (lab-members.md) and the profile pages in this folder. */

/* ---- Member cards on lab-members ---- */
.member-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 24px; margin: 16px 0 36px; }
.member-card { display: block; color: inherit !important; text-decoration: none !important; border-radius: 12px; outline-offset: 4px; }
.member-photo { position: relative; aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden; background: #e8eef7; box-shadow: 0 1px 3px rgba(0,0,0,.12); transition: box-shadow .2s, transform .2s; }
.member-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; display: block; margin: 0 !important; }
.member-initials { display: flex; align-items: center; justify-content: center; font-size: 2.6em; font-weight: 600; color: #002B7F; letter-spacing: .04em; }
.member-bio { position: absolute; inset: 0; padding: 14px 16px; background: rgba(0, 43, 127, .92); color: #fff; font-size: 13px; font-weight: 400; letter-spacing: normal; line-height: 1.45; display: flex; flex-direction: column; justify-content: center; text-align: center; opacity: 0; transition: opacity .2s; }
.member-bio-name { font-size: 17px; font-weight: 700; line-height: 1.25; margin-bottom: 6px; }
.member-bio-role { font-size: 13px; opacity: .9; }
.member-more { position: absolute; left: 0; right: 0; bottom: 14px; font-weight: 600; color: #6CACE4; }
.member-card:hover .member-bio, .member-card:focus-visible .member-bio { opacity: 1; }
.member-card:hover .member-photo, .member-card:focus-visible .member-photo { box-shadow: 0 6px 18px rgba(0,43,127,.25); transform: translateY(-2px); }
.member-name { font-weight: 600; margin-top: 10px; font-size: 1.05em; }
@media (hover: none) { .member-bio { display: none; } }
@media (max-width: 500px) { .member-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; } .member-name { font-size: .95em; } }

/* ---- Individual profile pages ---- */
.mp-back { display: inline-block; margin-bottom: 18px; font-size: .92em; }
.mp-header { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; margin-bottom: 8px; }
.mp-photo { width: 180px; height: 180px; border-radius: 12px; overflow: hidden; flex: none; background: #e8eef7; box-shadow: 0 1px 3px rgba(0,0,0,.12); display: flex; align-items: center; justify-content: center; font-size: 3em; font-weight: 600; color: #002B7F; }
.mp-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; margin: 0 !important; }
.mp-info { flex: 1 1 260px; min-width: 0; }
.mp-name { font-size: 2em; font-weight: 700; margin: 0 0 4px; line-height: 1.2; }
.mp-role { color: #555; margin-bottom: 12px; }
.mp-site { display: inline-block; margin: 0 6px 6px 0; padding: 6px 14px; border-radius: 999px; background: #002B7F; color: #fff !important; text-decoration: none !important; font-size: .9em; font-weight: 600; }
.mp-site:hover { background: #0b3d9e; }
