.posts-item.card .item-body > .meo-role-preview {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  overflow-wrap: anywhere;
  height: auto;
  max-height: 3.2em;
  margin: 0 0 6px;
  font-size: 13px;
  line-height: 1.6;
}

/* Apply only to confirmed role cards with a native static cover image. */
.posts-item.card.meo-role-card {
  position: relative;
  isolation: isolate;
  aspect-ratio: 3 / 4;
  padding: 0;
  overflow: hidden;
  background: #202126;
  border-radius: var(--main-radius, 12px);
  color: #fff;
}

.posts-item.card.meo-role-card > .item-thumbnail {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  border-radius: inherit;
}

.posts-item.card.meo-role-card > .item-thumbnail > a {
  display: block;
  width: 100%;
  height: 100%;
}

.posts-item.card.meo-role-card > .item-thumbnail > a > img {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  border-radius: inherit;
}

.posts-item.card.meo-role-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 28%, rgba(10, 12, 17, .16) 45%, rgba(10, 12, 17, .78) 70%, rgba(10, 12, 17, .96) 100%);
}

.posts-item.card.meo-role-card > .item-body {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  width: 100%;
  margin: 0;
  padding: 18px 16px 12px;
  pointer-events: none;
}

.posts-item.card.meo-role-card > .item-body a {
  pointer-events: auto;
}

.posts-item.card.meo-role-card .item-heading {
  min-height: 0;
  margin: 0 0 7px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .25);
}

.posts-item.card.meo-role-card .item-heading > a,
.posts-item.card.meo-role-card .item-heading > a:hover {
  color: #fff;
}

.posts-item.card.meo-role-card > .item-body > .meo-role-preview {
  color: rgba(255, 255, 255, .82);
  margin-bottom: 10px;
}

.posts-item.card.meo-role-card .item-tags {
  display: none;
}

.posts-item.card.meo-role-card .item-tags:has(.meta-pay) {
  display: block;
  min-height: 0;
}

.posts-item.card.meo-role-card .item-tags > :not(.meta-pay) {
  display: none;
}

.posts-item.card.meo-role-card .item-meta {
  min-width: 0;
  min-height: 28px;
  gap: 8px;
  color: rgba(255, 255, 255, .72);
}

.posts-item.card.meo-role-card .item-meta > .meta-author {
  min-width: 0;
  white-space: nowrap;
  margin-right: 0;
}

.posts-item.card.meo-role-card .meta-author > span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.posts-item.card.meo-role-card .meta-right {
  flex-shrink: 0;
  white-space: nowrap;
}

.posts-item.card.meo-role-card .meta-author > a,
.posts-item.card.meo-role-card .meta-comm > a {
  position: relative;
}

.posts-item.card.meo-role-card .meta-author > a::after,
.posts-item.card.meo-role-card .meta-comm > a::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(100%, 44px);
  height: 44px;
  transform: translate(-50%, -50%);
}

.posts-item.card.meo-role-card a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -2px;
  border-radius: 4px;
}

@media (max-width: 767px) {
  .posts-item.card.meo-role-card > .item-body {
    padding: 14px 10px 8px;
  }

  .posts-item.card.meo-role-card .item-heading {
    font-size: 16px;
    margin-bottom: 5px;
  }

  .posts-item.card.meo-role-card > .item-body > .meo-role-preview {
    font-size: 12px;
    line-height: 1.5;
    max-height: 3em;
    margin-bottom: 6px;
  }

  .posts-item.card.meo-role-card .item-meta,
  .posts-item.card.meo-role-card .item-meta item {
    font-size: 11px;
  }

  .posts-item.card.meo-role-card .meta-right .meta-view {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin: 0;
  }

  .posts-item.card.meo-role-card .meta-right .meta-comm,
  .posts-item.card.meo-role-card .meta-right .meta-like {
    display: none;
  }
}
