/* Shell UI: stop person hero from bleeding under the sticky header (legacy full-bleed). */
/* Match school profile-ui: use full main width instead of narrow 1180px site-wrap. */
body.shell-ui.person-profile-shell .person-profile-page .site-wrap,
body.shell-ui.directory-listing .school-profile-page.person-profile-page .site-wrap{
  width:100%!important;
  max-width:none!important;
  margin-inline:0!important;
  padding-inline:16px;
  box-sizing:border-box;
}
body.shell-ui.directory-listing .school-profile-page.person-profile-page .school-profile-band{
  margin:0!important;
  padding:24px 16px 14px!important;
  border-radius:22px!important;
  overflow:visible;
}
body.shell-ui.directory-listing .school-profile-page.person-profile-page .person-hero-shell{
  margin:0 0 10px;
}
body.shell-ui.directory-listing .school-profile-page.person-profile-page .person-hero-band-space{
  min-height:72px;
  padding-inline:0;
}
body.shell-ui.directory-listing .school-profile-page.person-profile-page .person-hero-identity{
  padding-inline:16px;
  box-sizing:border-box;
}
body.shell-ui.directory-listing .school-profile-page.person-profile-page .person-hero-panel,
body.shell-ui.directory-listing .school-profile-page.person-profile-page .person-profile-body{
  padding-inline:16px;
}
@media(max-width:760px){
  body.shell-ui.person-profile-shell .person-profile-page .site-wrap,
  body.shell-ui.directory-listing .school-profile-page.person-profile-page .site-wrap{
    padding-inline:10px;
  }
  body.shell-ui.directory-listing .school-profile-page.person-profile-page .school-profile-band{
    border-radius:16px!important;
    padding:18px 10px 12px!important;
  }
  body.shell-ui.directory-listing .school-profile-page.person-profile-page .person-hero-identity,
  body.shell-ui.directory-listing .school-profile-page.person-profile-page .person-hero-panel,
  body.shell-ui.directory-listing .school-profile-page.person-profile-page .person-profile-body{
    padding-inline:10px;
  }
}

.person-profile-page .person-hero-feed{min-width:0}
.person-profile-page .person-hero-feed .profile-posts-section{padding:16px}
.person-profile-page .person-hero-centers .person-card-grid--compact{grid-template-columns:minmax(0,1fr)}
.profile-posts-section{display:grid;gap:14px}
.profile-post-comments{display:grid;gap:14px;margin-top:16px}
.profile-post-comment-form{display:grid;gap:10px;padding:14px;border:1px solid #e4ebe5;border-radius:14px;background:#f7faf8}
.profile-post-comment-form textarea{
  width:100%;min-height:88px;resize:vertical;box-sizing:border-box;
  border:1px solid #d7e0e4;border-radius:12px;padding:12px 14px;font:inherit;line-height:1.8;background:#fff;
}
.profile-post-comments-login{margin:0}
.profile-post-comments-list{display:grid;gap:12px}
.profile-post-comment{display:grid;gap:8px;padding:14px;border:1px solid #e4ebe5;border-radius:14px;background:#fff}
.profile-post-comment-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.profile-post-comment-name{display:block;font-weight:800;color:#172333;text-decoration:none}
.profile-post-comment-body{margin:0;white-space:pre-line;line-height:1.85;color:#24342c}
.profile-posts-list{display:grid;gap:12px}
.profile-posts-empty{margin:0;padding:8px 0}
.profile-posts-more{justify-self:center;min-width:160px}
.profile-post-compose{display:grid;gap:10px;padding:14px;border:1px solid #e4ebe5;border-radius:14px;background:#f7faf8}
.profile-post-compose textarea{
  width:100%;min-height:96px;resize:vertical;box-sizing:border-box;
  border:1px solid #d7e0e4;border-radius:12px;padding:12px 14px;font:inherit;line-height:1.8;background:#fff;
}
.profile-post-compose-bar{display:flex;align-items:center;justify-content:space-between;gap:12px}
.profile-post-compose-bar .is-over{color:#b52d40;font-weight:700}
.profile-post-card{
  display:grid;gap:10px;padding:16px;border:1px solid #e4ebe5;border-radius:14px;background:#fff;
}
.profile-post-card-meta{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#6b7780;font-size:12.5px}
.profile-post-card-num{opacity:.75}
.profile-post-card-body{margin:0;white-space:pre-line;line-height:1.85;color:#24342c;font-size:14.5px}
.profile-post-card-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.profile-post-card-more{font-size:13px;font-weight:700}
.profile-post-card-reacts{display:inline-flex;align-items:center;gap:8px}
.profile-post-react{
  display:inline-flex;align-items:center;gap:6px;min-height:34px;padding:0 10px;
  border:1px solid #e2e9ef;border-radius:999px;background:#f7faf9;color:#55666d;
  font:inherit;font-size:12.5px;font-weight:700;cursor:pointer;text-decoration:none;
}
.profile-post-react .lucide{width:15px;height:15px}
.profile-post-react.is-on{background:#fff1f2;border-color:#fecdd3;color:#be123c}
.profile-post-react.is-static{cursor:default}
.profile-post-react:hover{border-color:#c9d5db}
.profile-post-back{margin:0 0 12px}
.profile-post-back a{font-weight:700}
.profile-post-article{display:grid;gap:16px}
.profile-post-article-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;flex-wrap:wrap}
.profile-post-author{display:flex;align-items:center;gap:12px;min-width:0}
.profile-post-author-photo{
  width:48px;height:48px;border-radius:50%;overflow:hidden;display:grid;place-items:center;
  background:#e8f3f0;color:#08786d;flex-shrink:0;
}
.profile-post-author-photo img{width:100%;height:100%;object-fit:cover;display:block}
.profile-post-author-name{font-weight:800;color:#172333;text-decoration:none}
.profile-post-article-body{margin:0;white-space:pre-line;font-size:16px;line-height:1.95;color:#1f2937}
@media(max-width:640px){
  .profile-post-compose-bar{flex-direction:column;align-items:stretch}
  .profile-post-compose-bar .btn{width:100%}
}
