/* Author photos stay inside their container; text owns the flexible column. */
.user-identity{display:inline-grid;grid-template-columns:auto minmax(0,1fr);align-items:start;gap:10px;max-width:100%;min-width:0;vertical-align:top;text-align:left}
.user-identity>.author-avatar,.post-head>.author-avatar{margin:0;align-self:start;line-height:1}
.identity-lines{display:flex;flex-direction:column;gap:4px;min-width:0;max-width:100%}
.identity-name{display:flex;align-items:center;flex-wrap:wrap;gap:5px;min-width:0;max-width:100%}
.identity-name>.author-name{min-width:0;max-width:100%;overflow-wrap:anywhere}
.identity-name>.user-title{margin:0;white-space:normal;overflow-wrap:anywhere}
.identity-handle{font-size:12px;color:#617084;overflow-wrap:anywhere;font-weight:400;line-height:1.5;min-width:0}
.identity-meta{display:block;font-size:12px;color:#617084;font-weight:400;line-height:1.5;min-width:0;overflow-wrap:anywhere}
.identity-meta .identity-handle,.identity-meta .identity-time{display:inline;font-size:inherit;color:inherit;line-height:inherit;white-space:normal}
.identity-meta .identity-time{font-size:11px}
.chat-message-byline .identity-time{font-size:.63rem}
.post-head{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:start;gap:12px}
.post-head>.post-author-details{min-width:0}
.post-head>.tag{margin:0;justify-self:end;align-self:start;white-space:nowrap}
.post-head .meta{overflow-wrap:anywhere}
.post-head .identity-meta{font-size:10px;margin-top:4px}
.post-head .identity-time{font-size:inherit}
/* Comment backgrounds include their own inset, independent of the outer card. */
.post-comments .comment{padding:16px;border:1px solid var(--line);border-radius:12px;margin-top:12px}
.comment-heading,.news-byline,.chat-message-byline{display:grid;grid-template-columns:minmax(0,1fr);align-items:start;justify-content:normal;gap:6px;min-width:0}
.news-byline>.user-identity{min-width:0;max-width:100%}
.news-byline .avatar-small{margin:0}
.post-comments .comment p{margin:12px 0;overflow-wrap:anywhere}
.post-comments .comment>.comment-text,.community-activity .comment-text{font-size:16px;line-height:1.7}
.chat-member>div:first-child{flex:1;min-width:0;max-width:100%;align-items:flex-start}
.chat-member-actions{max-width:100%}
.calendar-organizer,.country-owner{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:start;gap:10px;min-width:0}
.calendar-organizer>.user-identity,.country-owner>.user-identity{min-width:0;max-width:100%}
.profile-identity-heading{display:flex;align-items:center;flex-wrap:wrap;gap:7px;min-width:0;max-width:100%}
.profile-identity-heading>.user-title,.member-profile-identity>.user-title,.community-author>.user-title{margin:0}
.profile-display-name,.member-profile-identity h1{min-width:0;max-width:100%;overflow-wrap:anywhere}
.profile-photo-row button{min-width:0;overflow-wrap:anywhere}
.community-author{display:flex;align-items:center;flex-wrap:wrap;gap:5px;min-width:0}
.community-author>strong{min-width:0;max-width:100%;overflow-wrap:anywhere}
.community-author>small{flex-basis:100%;min-width:0;overflow-wrap:anywhere}
.community-author>.identity-meta{flex-basis:100%;margin-top:4px}
.account-badge{display:inline-flex;align-items:center;border-radius:7px;border:1px solid;padding:3px 7px;font-size:11px;font-weight:700;line-height:1.4;vertical-align:middle;white-space:nowrap}
.account-badge-red{color:#b4232c;background:#fff0f0;border-color:#e9a7ac}
.account-badge-blue{color:#1e53a2;background:#eaf1ff;border-color:#a9c5f4}
.account-badge-sky{color:#196482;background:#e8f7ff;border-color:#a3d9ec}
.account-badge-lime{color:#4f6921;background:#eef8dd;border-color:#c3dca0}
[data-notification-count]:not([hidden]){display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 5px;background:#2563eb;color:white;border-radius:20px;font-size:11px}
.directory-tabs{flex-wrap:wrap}
@media(max-width:980px){.bottom:has(button:nth-child(2):last-child){grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:380px){.account-badge,.user-title{font-size:10px;padding:2px 5px}.user-identity .identity-meta{font-size:11px}}

#notification-open{display:inline-flex!important;align-items:center;gap:5px;font-size:12px}#notification-open[hidden]{display:none!important}

/* Keep every department directly reachable in the navigation. */
@media(max-width:980px){.bottom{display:grid;grid-template-columns:repeat(4,minmax(0,1fr)) minmax(0,1.55fr) repeat(5,minmax(0,1fr));gap:0}.bottom button{min-width:0;font-size:10px;padding-inline:0}.bottom .nav-symbol{width:32px}.bottom .nav-icon{width:22px;height:22px}}
.account-badge-violet{color:#65449b;background:#f4effb;border-color:#d9caed}

.account-badge-teal{color:#08756c;background:#e7f8f5;border-color:#a7ded4}
.mobile-write[hidden]{display:none!important}
@media(max-width:380px){.bottom button{font-size:9px}.bottom .nav-symbol{width:28px}.bottom .nav-icon{width:21px;height:21px}}
