/* Shared content identity and attribution. Profile mastheads are not post headers. */
:root {
  --content-avatar-size: 38px;
  --content-user-type-size: 11px;
  --content-identity-gap: 3px;
}
.ms-attribution {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  max-width: 100%;
  color: #64748b;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
}
.ms-attribution > svg {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  align-self: flex-start;
  margin-top: 1px;
}
.ms-attribution__people { min-width: 0; }
.ms-attribution__people :is(a, span) { color: inherit; font-weight: 600; text-decoration: none; }
.ms-attribution a:hover { text-decoration: underline; }
body .content-tagged-users__trigger {
  display: block;
  width: auto;
  height: auto;
  min-height: 0;
  max-width: 100%;
  padding: 0;
  margin: 3px 0 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
body .content-tagged-users__trigger:hover { background: transparent; }
:is(.timeline-feed, .faves-feed) .feed-card-header {
  grid-template-columns: var(--content-avatar-size) minmax(0, 1fr) auto;
  padding-top: 8px;
}
:is(.timeline-feed, .faves-feed) .feed-card-header .timeline-feed-card__identity {
  gap: var(--content-identity-gap);
}
body :is(.feed-card-header .timeline-feed-card__avatar, .faves-rail-card__avatar, .timeline-story-shared-card__avatar) {
  width: var(--content-avatar-size) !important;
  height: var(--content-avatar-size) !important;
  flex-basis: var(--content-avatar-size) !important;
}
body :is(.timeline-feed-card .card-profile-type, .module-card-header .card-profile-type, .faves-rail-card__type, .timeline-story-shared-card__identity small) {
  font-size: var(--content-user-type-size) !important;
  line-height: 1.3 !important;
  font-weight: 400 !important;
  aspect-ratio: auto;
}
body .profile-page :is(.profile-detail-shell, .detail-page-shell) .detail-media-card .detail-uploader-row__avatar,
body .detail-uploader-row .detail-uploader-row__avatar {
  width: var(--content-avatar-size) !important;
  height: var(--content-avatar-size) !important;
  min-width: var(--content-avatar-size) !important;
  min-height: var(--content-avatar-size) !important;
  max-width: var(--content-avatar-size) !important;
  max-height: var(--content-avatar-size) !important;
  flex: 0 0 var(--content-avatar-size) !important;
}
body .profile-page :is(.profile-detail-shell, .detail-page-shell) .detail-uploader-row__type,
body .detail-uploader-row .detail-uploader-row__type {
  font-size: var(--content-user-type-size) !important;
  font-weight: 400 !important;
  line-height: 1.3 !important;
  margin: 0 !important;
}
body .detail-uploader-row .detail-uploader-row__copy { gap: var(--content-identity-gap); }
body .detail-uploader-row .detail-uploader-row__name { font-weight: 700; }
body .detail-uploader-row .detail-uploader-row__actions { margin-left: auto; align-self: start; }
body .repost-context-banner { padding-block: 8px 4px !important; min-height: 0; }
body .repost-context-banner__line { grid-template-columns: minmax(0, 1fr); gap: 0; }
body .repost-context-banner__quote { margin: 5px 0 0; }
body .faves-rail-card__identity .feed-card-attribution { margin: 0; }
body :is(.faves-rail-card__identity, .timeline-story-shared-card__identity, .media-post-card__user-meta) { gap: var(--content-identity-gap); }
body .module-card-header .media-post-card__avatar {
  width: var(--content-avatar-size) !important;
  height: var(--content-avatar-size) !important;
  flex-basis: var(--content-avatar-size) !important;
}
body .timeline-story-shared-card__header { min-height: 0; padding: 8px 12px; gap: 8px; }
body .timeline-story-shared-card__header time { margin-left: auto; padding-top: 0; }
body.profile-subpage-shell .profile-page :is(.profile-detail-shell, .detail-page-shell) .detail-uploader-row {
  padding: 8px 14px !important;
  align-items: start;
}
body .detail-uploader-row .detail-uploader-row__identity { align-items: start; }
body .timeline-story-owner__avatar { width: 38px; height: 38px; }
body .timeline-story-owner__type { font-size: 11px; margin-top: 3px; }
body .timeline-story-header .ms-attribution { color: white; }
body .timeline-story-header [data-story-tag-attribution],
body .timeline-story-header [data-story-repost-attribution] { display: block; margin-block: 3px; }
body .timeline-story-header [hidden] { display: none; }
/* Attribution precedes the original owner's avatar as well as their name. */
:is(.timeline-feed, .faves-feed) .feed-card-header:has(.ms-attribution--repost) .timeline-feed-card__avatar {
  margin-top: 19px;
}
body .faves-rail-card__header:has(.ms-attribution--repost) .faves-rail-card__avatar { margin-top: 19px; }
