/* Profile links: keep the original cascade position without inline CSS. */
.profile-tab-link{text-decoration:none!important;color:inherit}

/* Compact community headings; profile identity stays in its own visible h1. */
body.community-app #member-view > #community-main{padding-top:20px!important}
body.community-app #member-view .view-heading{margin-bottom:18px}
body.community-app #member-view .community-context{margin-bottom:12px;padding:8px 12px;gap:4px 10px}
body.community-app #member-view .community-context[hidden]{display:none}
body.community-app #community-main[data-community-surface="profile"] > .view-heading{min-height:40px;margin-bottom:0;justify-content:flex-end}
body.community-app #community-main[data-community-surface="profile"] #community-view-title-wrapper{display:none}
body.community-app #community-main[data-community-surface="profile"] .profile-reference .profile-social-hero{margin-top:24px}
body.community-app #community-main[data-community-surface="profile"] .limited-profile{margin-top:12px}
body.community-app .limited-profile #community-profile-heading{font-size:clamp(1.4rem,3vw,1.9rem);line-height:1.2}
body.community-app #community-profile-heading:focus-visible{outline:2px solid var(--community-accent);outline-offset:5px;border-radius:4px}
body.community-app .settings-intro-copy > h2{display:inline-block;margin-right:6px}

/* Public introduction is usable before scripts; forms wait for their handlers. */
body.community-app #auth-view>#account-form[hidden]{display:none!important}
body.community-app #auth-view:has(>#account-form[hidden]){grid-template-columns:minmax(0,1fr)}
body.community-app #auth-view:has(>#community-public-intro[hidden]){grid-template-columns:minmax(0,1fr)}
