/* Student-only profile photo and mentor surface: no employer/admin changes */
.student-photo-card { display:flex; align-items:center; gap:22px; margin-bottom:16px; border:1px solid var(--line); }
.student-photo-preview { position:relative; flex:0 0 112px; width:112px; height:112px; border-radius:24px; display:grid; place-items:center; overflow:hidden; background:var(--brand-soft); color:var(--brand); border:1px solid var(--line); }
.student-photo-preview > img { width:100%; height:100%; object-fit:cover; }
.student-photo-fallback { font-size:14px; font-weight:750; }
.student-photo-pending { position:absolute; left:0; right:0; bottom:0; text-align:center; padding:5px; background:rgba(5,25,75,.8); color:white; font-size:10px; font-weight:750; }
.student-photo-details { flex:1; min-width:0; display:grid; gap:8px; justify-items:start; }
.student-photo-details h2 {font-size:17px; margin:0;}
.student-photo-details p {max-width:54ch; margin:0; font-size:12.5px; line-height:1.6; color:var(--muted);}
.student-photo-details input[type="file"] {position:absolute; width:1px; height:1px; opacity:0; overflow:hidden;}
.student-photo-label {display:inline-flex; width:auto; cursor:pointer; margin-top:4px;}
.student-photo-label:focus-within {outline:2px solid var(--brand); outline-offset:3px;}
.student-photo-details [data-profile-photo-status] {display:block; line-height:1.5; font-size:11.5px; color:var(--muted);}
.student-photo-details [data-profile-photo-status].error {color:var(--bad);}
.userchip .avatar img {width:100%; height:100%; object-fit:cover; border-radius:inherit;}
.student-mentor-card {display:flex; align-items:center; gap:17px; margin-bottom:18px; border:1px solid var(--line); background:var(--surface-2);}
.student-mentor-emblem {width:54px; height:54px; border-radius:16px; background:var(--brand-soft); color:var(--brand); flex:none; display:grid; place-items:center;}
.student-mentor-content {flex:1; min-width:0;}
.student-mentor-content h2 {font-size:19px; margin:4px 0 7px;}
.student-mentor-content p {font-size:12.5px; color:var(--ink-2); line-height:1.6; margin:0; max-width:65ch;}
.student-mentor-button {white-space:normal; flex:none; text-align:center; text-decoration:none;}
@media(max-width:700px) {
 .student-photo-card {gap:14px;}
 .student-photo-preview {width:88px; height:88px; flex-basis:88px; border-radius:17px;}
 .student-mentor-card {flex-wrap:wrap;}
 .student-mentor-button {width:100%;}
}
@media(max-width:380px) {
 .student-photo-card {flex-wrap:wrap;}
}

/* Profile photos in avatar circles (profile-photos.js); initials stay as the fallback */
.avatar {width:34px; height:34px; flex:none; border-radius:50%; overflow:hidden; display:inline-grid; place-items:center; background:var(--brand-soft); color:var(--brand); font-family:var(--font-display); font-size:12px; font-weight:700;}
.avatar > img.profile-photo, .brandbox > img.profile-photo {width:100%; height:100%; object-fit:cover; display:block; border-radius:inherit;}
.brandbox.has-photo {padding:0; overflow:hidden;}
