/* SCRUM-1086 — LO posts: post card (head, avatar, menu, body, image) */

.lo-post-feed {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

/* ---- Card ---- */
.lo-post-card {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  background: #ffffff;
  border: 1px solid #c7cbd9;
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: 'Wavehaus', Arial, Helvetica, sans-serif;
}

.lo-post-card[data-hidden="1"] { opacity: 0.72; }

.lo-post-card__head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lo-post-card__avatar {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 62px;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  overflow: hidden;
  background: #d8dceb;
  border: 5.367px solid #ffffff;
  color: #002bc6;
  font-family: 'DM Sans', 'Wavehaus', Arial, sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.lo-post-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lo-post-card__who {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1 1 auto;
}

.lo-post-card__name {
  font-size: 16px;
  font-weight: 700;
  color: #000000;
  line-height: 1.2;
}

.lo-post-card__date {
  font-size: 14px;
  font-weight: 600;
  color: #002bc6;
  line-height: 1.4;
}

.lo-post-card__date em { font-style: normal; color: #73788c; }

/* 3-dots menu */
.lo-post-card__menu { position: relative; flex: 0 0 auto; align-self: flex-start; }

.lo-post-card__menu-btn {
  display: inline-flex;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  color: #73788c;
}

.lo-post-card__menu-btn:hover { color: #393e4d; }

.lo-post-card__menu-pop {
  position: absolute;
  top: 28px;
  right: 0;
  z-index: 5;
  min-width: 150px;
  background: #ffffff;
  border: 1px solid #ecedf0;
  border-radius: 8px;
  box-shadow: 0 4px 5px rgba(0, 0, 0, 0.1);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lo-post-card__menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  white-space: nowrap;
  border: 0;
  background: none;
  padding: 8px;
  border-radius: 6px;
  font-family: 'Wavehaus', Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #535766;
  cursor: pointer;
}

.lo-post-card__menu-item:hover { background: #f5f7fc; }
.lo-post-card__menu-item.is-danger { color: #d92d20; }

.lo-post-card__menu-ico {
  display: inline-flex;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  color: #535766;
}
.lo-post-card__menu-ico svg { display: block; }

.lo-post-card__body {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  color: #393e4d;
  word-break: break-word;
}

.lo-post-card__body a { color: #002bc6; text-decoration: underline; }
.lo-post-card__body ul,
.lo-post-card__body ol { margin: 8px 0; padding-left: 22px; }
.lo-post-card__body ul { list-style: disc; }
.lo-post-card__body ol { list-style: decimal; }
.lo-post-card__body p { margin: 0 0 8px; }
.lo-post-card__body p:last-child { margin-bottom: 0; }

.lo-post-card__image {
  overflow: hidden;
  background: #f2f4f7;
  aspect-ratio: 1.86 / 1;
}

.lo-post-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

