/* Shared post geometry. This stylesheet loads after the legacy page styles. */
.social-surface.quiet-feed-screen{width:100%;max-width:none;margin:0;background:var(--mode-bg,var(--mode-surface,#fffcf6));--feed-gutter:var(--stu-page-inset,16px)}
.quiet-feed-screen .quiet-feed-header{padding-inline:var(--feed-gutter);background:inherit}
.quiet-feed-screen>.compose{padding-inline:var(--feed-gutter)}
.social-surface .post{box-sizing:border-box;min-width:0;display:flex;flex-direction:column;align-items:stretch;gap:12px;padding:18px var(--stu-page-inset,16px)!important;margin:0!important;border:0;border-bottom:1px solid var(--mode-line,var(--line));border-radius:0;background:transparent;color:var(--mode-text,var(--ink));box-shadow:none}
.social-surface .post>:is(.social-post-content,.post-text,.account-labels,.post-actions,.post-photo,.post-tag,.post-source,.feed-featured-subject){margin:0!important;min-width:0;max-width:100%}
.social-surface .post>.social-post-content,.social-surface .post>.post-text{width:100%;font-size:15px;line-height:1.6;overflow-wrap:anywhere}
.social-surface .post>.account-labels:empty{display:none}
.social-surface .post .post-head{display:flex;align-items:center;gap:10px;min-width:0;margin:0;padding:0}
.social-surface .post .post-head:has(>.author-button){display:grid;grid-template-columns:minmax(0,1fr) auto 36px;column-gap:8px}
.social-surface .post .post-head>.author-button{display:grid;grid-template-columns:40px minmax(0,1fr);align-items:center;gap:10px;min-width:0;max-width:100%;padding:0;margin:0;text-align:left;background:none;border:0}
.social-surface .post .post-head .tiny-avatar,.social-surface .post .post-head>.stu-avatar{box-sizing:border-box;display:block;width:40px;height:40px;min-width:40px;flex:0 0 40px;aspect-ratio:1;border-radius:50%;overflow:hidden;margin:0}
.social-surface .post .tiny-avatar>.stu-avatar{display:block;width:100%;height:100%;aspect-ratio:1;border-radius:inherit;overflow:hidden}
.social-surface .post .post-head .author-button>div:last-child{display:flex;flex-direction:column;align-items:flex-start;gap:3px;min-width:0}
.social-surface .post .post-head :is(strong,h3){display:block;max-width:100%;margin:0;padding:0;font-size:14px;font-weight:700;line-height:1.35;overflow-wrap:anywhere}
.social-surface .post .post-head .stu-blue-check{width:17px!important;height:17px!important;min-width:17px;min-height:17px;margin:0 0 0 5px;vertical-align:-3px;padding:0;border:0;box-shadow:none}
.social-surface .post .post-head .quiet-author-official{margin:0 0 0 5px;vertical-align:1px;white-space:nowrap}
.social-surface .post .post-head .social-handle{display:block!important;position:static;transform:none;font-size:12px;line-height:1.3;color:var(--mode-muted,var(--muted));margin:0;padding:0;overflow-wrap:anywhere}
.social-surface .post .post-head .author-button small:not(.social-handle){display:none}
.social-surface .post .post-head>div:not(.post-action-anchor){min-width:0;flex:1}
.social-surface .post .post-head>div>p{font-size:12px;line-height:1.35;margin:3px 0 0;color:var(--mode-muted,var(--muted))}
.social-surface .post .quiet-post-time{display:block;align-self:center;white-space:nowrap;padding:0;margin:0;font-size:11px;line-height:1.3;color:var(--mode-muted,var(--muted));font-variant-numeric:tabular-nums}
.social-surface .post .post-head>.post-action-anchor{position:relative;flex:0 0 36px;width:36px;min-width:36px;margin:0;padding:0;align-self:center}
.social-surface .post .post-head .post-menu{display:grid;place-items:center;width:36px;height:36px;min-width:36px;margin:0;padding:0;background:transparent;border:0;border-radius:50%;color:var(--mode-muted,var(--muted))}
.social-surface .post .post-head .post-menu>svg{display:block;width:20px;height:20px}
.social-surface .post .post-action-menu{z-index:30;min-width:210px;max-width:calc(100vw - 32px)}
.social-surface .post .social-post-content>.audience{display:table;position:static;float:none;inset:auto;width:auto;margin:8px 0 0;padding:3px 7px;border:0;border-radius:6px;background:var(--mode-soft);color:var(--mode-muted);font-size:10px;line-height:1.4;text-transform:capitalize}
.social-surface .post .creative-series-label,.social-surface .post .creative-collab-credit,.social-surface .post .creative-scheduled-badge{margin:0;padding:0;line-height:1.4}
.social-surface .post .creative-series-label{min-height:24px}
.social-surface .post .feed-featured-subject{font-size:11px;line-height:1.4;color:var(--mode-muted)}
.social-surface .post .chat-markdown{font-size:inherit;line-height:inherit}
.social-surface .post .post-photo{display:block;width:100%;height:auto;aspect-ratio:auto;max-height:560px;border-radius:14px;overflow:hidden;background:var(--mode-soft)}
.social-surface .post .post-photo>img{display:block;width:100%;height:auto;max-height:560px;object-fit:cover;margin:0}
.social-surface .post>.post-actions{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:0!important;align-items:center;min-height:40px;padding:0!important;width:100%;color:var(--mode-muted,var(--muted))}
.social-surface .post>.post-actions:has(>button[hidden]),.social-surface .post>.post-actions:not(:has(>button:nth-child(4))){grid-template-columns:repeat(3,minmax(0,1fr))}
.social-surface .post>.post-actions>button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:0;width:100%;min-height:40px;margin:0!important;padding:4px!important;border:0;border-radius:10px;background:none;font-size:12px;line-height:1.25;white-space:normal;font-variant-numeric:tabular-nums}
.social-surface .post>.post-actions>button[hidden]{display:none}
.social-surface .post>.post-actions>button:hover{background:var(--mode-soft)}
.social-surface .post>.post-actions>button[aria-pressed=true],.social-surface .post>.post-actions>.liked{color:var(--mode-accent,#6236ff)}
.post-actions>button svg,.feed-detail-actions>button svg,.comment-votes svg{width:20px;height:20px;flex:0 0 20px;display:block}
.post-actions button[aria-pressed=true] svg,.post-actions button.liked svg,.feed-detail-actions button[aria-pressed=true] svg,.comment-votes button[aria-pressed=true] svg{fill:currentColor}
.post-see-more{display:inline-flex;gap:6px;align-items:center;min-height:36px;margin:4px 0 0;padding:3px 0;color:var(--mode-accent,#6236ff);font-weight:700;line-height:1.25}
.post-see-more svg{width:17px;height:17px;flex:0 0 17px;vertical-align:middle;display:block}
.comment-votes{display:flex;align-items:center;gap:12px;margin-top:8px}
.comment-votes button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:42px;min-height:36px;padding:4px 7px;border:0;background:none;border-radius:9px;color:var(--mode-muted,#756b82);font:inherit;font-size:12px}
.comment-votes button[aria-pressed=true]{color:var(--mode-accent,#6236ff);background:var(--mode-soft,#eee7ff)}
.profile-liked-note{padding:12px 16px;margin:0;color:var(--mode-muted,#756b82);font-size:12px}
.feed-hidden-creators{padding:20px 18px;border-top:1px solid var(--mode-line,#ded7e5)}
.feed-hidden-creators h2{font-size:18px;margin:0 0 14px}.feed-hidden-creators .hidden-creator-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px 0}.hidden-creator-row small{display:block;color:var(--mode-muted,#756b82)}
.feed-post-detail .feed-detail-author{align-items:center;gap:10px;margin:0 0 16px}
.feed-post-detail .feed-detail-author>.stu-avatar{display:block;width:40px;height:40px;min-width:40px;flex:0 0 40px;aspect-ratio:1;border-radius:50%;overflow:hidden}
.feed-post-detail .feed-detail-author>div:last-child{display:flex;flex-direction:column;gap:3px;min-width:0}
.feed-post-detail .feed-detail-author strong{font-size:14px;line-height:1.35}.feed-post-detail .feed-detail-author small{margin:0;font-size:12px;line-height:1.3}
.feed-post-detail .feed-comment-original>.social-post-content{margin:0;font-size:16px;line-height:1.6}
.feed-post-detail .feed-detail-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0!important;align-items:center;min-height:44px;margin:12px 0 0}
.feed-post-detail .feed-detail-actions>.post-action-anchor{margin:0;justify-self:stretch;position:relative}
.feed-post-detail .feed-detail-actions>button,.feed-post-detail .feed-detail-actions>.post-action-anchor>button{display:inline-flex;align-items:center;justify-content:center;gap:7px;width:100%;min-width:0;min-height:44px;padding:0;background:none;border:0}
@media(min-width:761px){.social-surface.quiet-feed-screen{--feed-gutter:var(--stu-page-inset,24px)}}
@media(prefers-reduced-motion:no-preference){.post-actions>button{transition:background .15s,color .15s}}

/* Compact avatars keep initials centred as well as photo/persona portraits. */
.social-surface :is(.post-head,.compose) .portrait-initials,.feed-detail-author .portrait-initials{display:grid;place-items:center;width:100%;height:100%;font:700 13px/1 var(--stu-font-body,inherit);font-style:normal;transform:none}
