/* Individual member profile styling */
/* Card floats inside description so text wraps around it */
.profile-wrapper.profile-layout { margin:1.6rem 0 2.4rem; }
.profile-description { position:relative; }
.profile-description .profile-card { float:left; margin:0 1.75rem .9rem 0; }
.profile-description::after { content:""; display:block; clear:both; }
@media (max-width: 780px) { .profile-description .profile-card { float:none; margin:0 auto 1.1rem; display:block; } }
/* Elevated card container around figure + links */
.profile-card { flex:0 0 auto; display:flex; flex-direction:column; align-items:center; text-align:center; padding:1rem 1.2rem 1.05rem; background:var(--profile-card-bg,#fff); border:1px solid var(--profile-card-border,#e2e4e7); border-radius:14px; box-shadow:0 3px 10px -4px rgba(0,0,0,.18),0 1px 3px -1px rgba(0,0,0,.08); position:relative; }
.profile-figure { margin:0; text-align:center; }
/* Match people page (.person-card img) styling */
/* Photo matches people page styling */
.profile-photo { width:160px; height:160px; max-width:none; object-fit:cover; object-position:center; border-radius:12px; background:#fff; box-shadow:0 2px 6px -3px rgba(0,0,0,.25); display:block; margin:0 auto .65rem; }
.profile-caption { margin-top:0; }
.profile-name { margin:0 0 .35rem; font-size:1.42rem; line-height:1.15; letter-spacing:.3px; font-weight:650; }
.profile-pronouns { font-size:.75rem; font-weight:400; opacity:.75; }
.profile-role { margin:0; font-size:.82rem; font-weight:500; color:var(--text-muted,#555); letter-spacing:.35px; opacity:.85; }
/* Icon buttons row */
.profile-links { margin-top:.7rem; display:flex; gap:.55rem; flex-wrap:wrap; justify-content:center; }
.profile-links a { --icon-bg:#f5f7f9; --icon-border:#e3e6e9; width:38px; height:38px; display:flex; align-items:center; justify-content:center; text-decoration:none; font-size:1.05rem; line-height:1; border-radius:9px; background:var(--icon-bg); border:1px solid var(--icon-border); color:inherit; position:relative; }
.profile-links a:hover { background:#eef1f3; border-color:#d7dce0; }
.profile-links a:focus-visible { outline:2px solid #4b8; outline-offset:3px; }
.profile-links a i { width:1em; height:1em; display:inline-block; }
/* Email link: plain monochrome icon (no background color influence) */
/* email neutral (inherit same subtle style but without background) */
.profile-links a.email-link { background:none; border:0; width:auto; height:auto; padding:0; }
.profile-links a.email-link:hover { background:none; border:0; }
.profile-links a.email-link .fa-envelope { color:#000; font-size:1.05rem; }
@media (prefers-color-scheme: dark){ .profile-links a.email-link .fa-envelope { color:#fff; } }
/* width now handled by layout.css variable */
@media (prefers-color-scheme: dark) {
	.profile-card { --profile-card-bg:#202223; --profile-card-border:#2e3235; box-shadow:0 4px 18px -6px rgba(0,0,0,.7),0 2px 6px -2px rgba(0,0,0,.55); }
	.profile-card:hover { box-shadow:0 10px 30px -12px rgba(0,0,0,.85),0 4px 14px -6px rgba(0,0,0,.6); }
	.profile-photo { background:#1b1d1e; }
	.profile-links a { --icon-bg:#2a2d2f; --icon-border:#3a3f42; }
	.profile-links a:hover { background:#343a3d; border-color:#4a5256; box-shadow:0 6px 16px -8px rgba(0,0,0,.9); }
}
