/* Role styling is presentation; authorization remains server-side. */
.post-card.post-role-admin{border-top:6px solid #b52432}
.post-card.post-role-moderator{border-top:6px solid #2164a6}
.post-card.post-role-member{border-top:6px solid #747c87}
.thread-page .post-card:has(.post-author-details){grid-template-columns:190px minmax(0,1fr)}
.post-card .post-author-details{min-width:0;padding:18px 14px;gap:10px}
.post-card .author-avatar{display:grid;place-items:center;width:84px;height:84px;min-width:84px;min-height:84px;aspect-ratio:1;flex:0 0 84px;border-radius:50%;font-size:36px;line-height:1;overflow:hidden}
.post-card .author-identity{display:flex;flex-direction:column;align-items:center;gap:7px;min-width:0;width:100%}
.post-card .author-name{font-size:15px;font-weight:700;line-height:1.35;overflow-wrap:anywhere}
.post-card .post-author-admin .author-name{color:#a61e2b}
.post-card .post-author-moderator .author-name{color:#205f9e}
.post-card .author-role{display:inline-block;max-width:100%;padding:4px 9px;border:1px solid #c6ccd3;border-radius:3px;color:#465361;background:#edf0f3;font-size:11px;font-weight:700;line-height:1.4;overflow-wrap:anywhere}
.post-card .author-role-admin{color:#9d1725;background:#fff0f1;border-color:#e6adb3}
.post-card .author-role-moderator{color:#164f87;background:#eaf4ff;border-color:#9cc3e8}
.post-card .author-facts{display:grid;gap:7px;width:100%;margin:4px 0 0;padding:12px 0 0;border-top:1px solid var(--line);font-size:11px;line-height:1.4;text-align:left}
.post-card .author-facts>div{display:flex;align-items:baseline;justify-content:space-between;gap:8px}
.post-card .author-facts dt{color:var(--muted);font-weight:400;flex-shrink:0}
.post-card .author-facts dd{margin:0;text-align:right;overflow-wrap:anywhere;min-width:0;font-weight:600}
.post-card .author-website{font-size:12px}
@media(max-width:680px){
 .thread-page .post-card:has(.post-author-details){grid-template-columns:minmax(0,1fr)}
 .post-card .post-author-details{display:grid;grid-template-columns:48px minmax(0,1fr);gap:6px 12px;padding:12px 14px;text-align:left;border-right:0;border-bottom:1px solid var(--line)}
 .post-card .author-avatar{width:48px;height:48px;min-width:48px;min-height:48px;flex-basis:48px;font-size:23px;grid-row:1/3}
 .post-card .author-identity{align-items:flex-start;gap:4px}
 .post-card .author-facts{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:8px 18px;padding-top:9px;margin-top:3px}
 .post-card .author-facts>div{gap:5px}
 .post-card .author-website,.post-card .post-author-details>.language-badge{grid-column:2;font-size:10px}
}
@media(prefers-color-scheme:dark){html[data-theme="auto"] .post-card .author-role-admin{background:#47232a;color:#ffb5bd}html[data-theme="auto"] .post-card .author-role-moderator{background:#183b58;color:#b8dcff}html[data-theme="auto"] .post-author-admin .author-name{color:#ffb5bd}html[data-theme="auto"] .post-author-moderator .author-name{color:#b8dcff}}
html[data-theme="dark"] .post-card .author-role-admin{background:#47232a;color:#ffb5bd}
html[data-theme="dark"] .post-card .author-role-moderator{background:#183b58;color:#b8dcff}
html[data-theme="dark"] .post-author-admin .author-name{color:#ffb5bd}
html[data-theme="dark"] .post-author-moderator .author-name{color:#b8dcff}
