/* -----------------------------------------------------------------------
   Single "הכירו את הצייצנים" profile (single-meet.php).

   A profile post on a business social network: a narrow feed column on a
   tinted backdrop; a card led by a cover banner (the portrait, treated) with
   the avatar overlapping its lower edge, then the write-up, a reaction / share
   bar, and the comment thread under it. A "הכירו את הקהילה" grid of more
   members closes the column.
   ----------------------------------------------------------------------- */

.meet-single {
	--ms-feed-bg: color-mix(in srgb, var(--shivuk-color-accent) 5%, #eef1f5);
	--ms-col: 620px;
	--ms-pad: clamp(1rem, 3.5vw, 1.4rem);
	--ms-card-radius: clamp(14px, 2vw, 18px);
	--ms-card-shadow: 0 1px 2px rgba(16, 30, 48, 0.06), 0 10px 28px rgba(16, 30, 48, 0.06);

	margin-block-start: calc(-1 * var(--shivuk-space));
	padding-block: clamp(1rem, 3vw, 2rem);
	background: var(--ms-feed-bg);
}

.meet-single__col {
	inline-size: 100%;
	max-inline-size: var(--ms-col);
	margin-inline: auto;
	padding-inline: clamp(0.75rem, 3vw, 1rem);
	display: grid;
	gap: clamp(0.7rem, 2vw, 0.9rem);
}

/* --- Feed context line ------------------------------------------------- */
.meet-single__back {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	justify-self: start;
	padding: 0.4rem 0.9rem 0.4rem 0.7rem;
	border-radius: 999px;
	background: var(--shivuk-color-bg);
	border: 1px solid var(--shivuk-color-border);
	color: var(--shivuk-color-muted);
	font-size: 0.85rem;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	transition: color 0.18s ease, border-color 0.18s ease;
}

.meet-single__back svg {
	inline-size: 15px;
	block-size: 15px;
}

.meet-single__back:hover,
.meet-single__back:focus-visible {
	color: var(--shivuk-color-accent);
	border-color: color-mix(in srgb, var(--shivuk-color-accent) 40%, var(--shivuk-color-border));
}

/* -----------------------------------------------------------------------
   The post card
   ----------------------------------------------------------------------- */
.ms-post {
	background: var(--shivuk-color-bg);
	border: 1px solid var(--shivuk-color-border);
	border-radius: var(--ms-card-radius);
	box-shadow: var(--ms-card-shadow);
	overflow: hidden;
}

/* --- Cover banner ----------------------------------------------------- */
/* The portrait, used once as a wide cover rather than as a full background:
   a duotone accent wash over the image (--ms-banner), on a brand gradient
   base that carries the banner when there is no image at all. */
.ms-post__banner {
	position: relative;
	block-size: clamp(104px, 26vw, 150px);
	background-color: color-mix(in srgb, var(--shivuk-color-accent) 16%, var(--shivuk-color-surface));
	background-image:
		linear-gradient(120deg, color-mix(in srgb, var(--shivuk-color-accent) 62%, transparent), transparent 60%),
		var(--ms-banner, none),
		linear-gradient(135deg, var(--shivuk-color-accent), #0e4d75);
	background-repeat: no-repeat;
	background-position: center;
	background-size: cover;
}

/* A soft inner floor so the avatar reads against the banner and the image
   settles into the card. */
.ms-post__banner::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, transparent 52%, rgba(9, 16, 26, 0.28));
	pointer-events: none;
}

/* Category label — moved onto the banner's far top corner, and no longer a
   link (the "חזרה לכל הצייצנים" pill above the card is the one navigation). */
.ms-post__chip {
	position: absolute;
	z-index: 1;
	inset-block-start: 0.8rem;
	inset-inline-end: 0.85rem;
	padding: 0.34em 0.9em;
	border-radius: 999px;
	background: rgba(8, 15, 25, 0.5);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	border: 1px solid rgba(255, 255, 255, 0.26);
	color: #ffffff;
	font-size: 0.73rem;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.01em;
	white-space: nowrap;
}

/* --- Identity: avatar over the banner, then name below ---------------- */
.ms-post__profile {
	position: relative;
	padding: 0 var(--ms-pad) 0.9rem;
}

.ms-post__avatar {
	display: block;
	inline-size: 92px;
	block-size: 92px;
	/* Overlaps the banner by half its height. */
	margin-block-start: -46px;
	border-radius: 50%;
	overflow: hidden;
	background: var(--shivuk-color-bg);
	box-shadow: 0 0 0 4px var(--shivuk-color-bg), 0 6px 16px rgba(16, 30, 48, 0.2);
}

.ms-post__avatar-img {
	inline-size: 100%;
	block-size: 100%;
	object-fit: cover;
	display: block;
}

.ms-post__id {
	min-inline-size: 0;
	margin-block-start: 0.7rem;
}

/* Name — the title. The verified check flows inline after it. */
.ms-post__name {
	margin: 0;
	font-size: clamp(1.2rem, 1.05rem + 0.5vw, 1.45rem);
	font-weight: 800;
	line-height: 1.22;
	letter-spacing: -0.01em;
	color: var(--shivuk-color-text);
}

.ms-post__verified {
	display: inline-flex;
	vertical-align: -0.16em;
	margin-inline-start: 0.3rem;
	color: var(--shivuk-color-accent);
}

.ms-post__verified svg {
	inline-size: 18px;
	block-size: 18px;
}

.ms-post__headline {
	margin: 0.25rem 0 0;
	font-size: 0.95rem;
	line-height: 1.45;
	color: var(--shivuk-color-muted);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.ms-post__meta {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	margin: 0.45rem 0 0;
	font-size: 0.8rem;
	line-height: 1.3;
	color: var(--shivuk-color-muted);
}

.ms-post__dot {
	opacity: 0.5;
}

/* --- Body: the write-up ----------------------------------------------- */
.ms-post__body {
	padding: 0.35rem var(--ms-pad) var(--ms-pad);
	font-size: 1rem;
	color: var(--shivuk-color-text);
}

.ms-post__body > :first-child {
	margin-block-start: 0;
}

.ms-post__body > p {
	line-height: 1.75;
}

/* No magazine drop cap (overrides the site-wide .entry-content rule). */
.ms-post__body.entry-content > p:first-of-type::first-letter {
	float: none;
	font-size: inherit;
	line-height: inherit;
	font-weight: inherit;
	color: inherit;
	margin-inline-end: 0;
	margin-block-start: 0;
}

/* Tags, indented to the body's padding. */
.ms-post .entry-tags {
	margin: 0;
	padding: 0 var(--ms-pad) var(--ms-pad);
}

/* --- Engage bar: reactions + share ------------------------------------ */
.ms-post__engage {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 0.5rem 0.75rem;
	padding: 0.5rem clamp(0.7rem, 2.5vw, 1rem);
	border-block-start: 1px solid var(--shivuk-color-border);
}

/* Fold the boxed article rating into a plain left-aligned action cluster,
   reusing its working like / less buttons. */
.ms-post__engage .content-rating {
	flex: 0 1 auto;
	margin: 0;
	padding: 0;
	border: 0;
	gap: 0.4rem;
	justify-content: flex-start;
}

.ms-post__engage .content-rating__head {
	display: none;
}

.ms-post__engage .content-rating__feedback:empty {
	display: none;
}

.ms-post__engage .content-rating__feedback:not(:empty) {
	flex-basis: 100%;
	margin: 0.35rem 0 0;
	text-align: start;
	font-size: 0.82rem;
}

.ms-post__share {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin-inline-start: auto;
}

.ms-post__share-label {
	font-size: 0.8rem;
	font-weight: 700;
	color: var(--shivuk-color-muted);
}

/* --- Comments: the thread, inside the card, under the reaction bar ----- */
.ms-post__comments {
	padding: var(--ms-pad);
	border-block-start: 1px solid var(--shivuk-color-border);
}

/* -----------------------------------------------------------------------
   "הכירו את הקהילה" — more members, two tiles a row
   ----------------------------------------------------------------------- */
.ms-more {
	padding: var(--ms-pad);
	background: var(--shivuk-color-bg);
	border: 1px solid var(--shivuk-color-border);
	border-radius: var(--ms-card-radius);
	box-shadow: var(--ms-card-shadow);
}

.ms-more__title {
	margin: 0 0 clamp(0.85rem, 2vw, 1.15rem);
	font-size: 1.2rem;
	font-weight: 800;
	letter-spacing: -0.01em;
	color: var(--shivuk-color-text);
}

.ms-more__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(0.85rem, 2.5vw, 1.25rem);
}

@media (max-width: 420px) {
	.ms-more__grid {
		grid-template-columns: minmax(0, 1fr);
	}
}
