/**
 * CHANGE(MDP, deck slide 63–64, 01/10): mục "Recommendations to Hire" chỉ đọc
 * trên trang hồ sơ, và chip đếm ở thẻ đầu trang trỏ xuống mục này.
 *
 * MỌI quy tắc đều bắt đầu bằng #mdp-recs-section hoặc #mdp-cand-c1 (đặc hiệu
 * 1,0,0) — không dùng selector chỉ có class. Lý do đã ghi trong ghi chú dự án:
 * site live có hai quy tắc mà bản staging không có —
 *     .jobsearch-typo-wrap * { margin:0; padding:0 }          (0,1,0)
 *     .single-candidate .jobsearch-typo-wrap span { ... }     (0,2,1)
 * — nên khối bọc bằng class sẽ bị dẹp lặng lẽ khi lên live.
 */

/* Chip đếm ở thẻ đầu trang, nay là liên kết neo ------------------------- */
#mdp-cand-c1 a.mdp-status-tag.mdp-recs-jump {
	text-decoration: none;
	cursor: pointer;
	transition: background-color .15s ease, box-shadow .15s ease;
}

#mdp-cand-c1 a.mdp-status-tag.mdp-recs-jump:hover,
#mdp-cand-c1 a.mdp-status-tag.mdp-recs-jump:focus-visible {
	background: #eef0ff;
	box-shadow: 0 0 0 1px #c9cbf7;
}

/* Cuộn mượt + chừa chỗ cho thanh menu dính ở đầu trang.
   Thanh menu dính che mất phần đầu của mục khi nhảy neo — đã ghi nhận ở
   BAO-CAO-TEST-Slide-3-4-5 (ảnh TC-02). scroll-margin-top đẩy đích xuống. */
#mdp-recs-section {
	scroll-margin-top: 96px;
}

/* Tiêu đề mục ----------------------------------------------------------- */
#mdp-recs-section .mdp-recs-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 20px;
	margin-left: 8px;
	padding: 0 6px;
	border-radius: 10px;
	background: #eef0ff;
	color: #5b5ddb;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	vertical-align: 1px;
}

/* Một lời giới thiệu ---------------------------------------------------- */
#mdp-recs-section .mdp-rec-item {
	padding: 14px 0;
	border-bottom: 1px solid #ececf4;
}

#mdp-recs-section .mdp-rec-item:first-child {
	padding-top: 4px;
}

#mdp-recs-section .mdp-rec-item:last-child {
	padding-bottom: 2px;
	border-bottom: 0;
}

#mdp-recs-section .mdp-rec-head {
	display: flex;
	align-items: center;
	gap: 12px;
}

#mdp-recs-section .mdp-rec-avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: .5px;
}

#mdp-recs-section .mdp-rec-who {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 2px;
	min-width: 0;          /* cho phép tên dài rút gọn thay vì đẩy tràn hàng */
	flex: 1 1 auto;
}

#mdp-recs-section .mdp-rec-name,
#mdp-recs-section .mdp-rec-title {
	display: block;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

#mdp-recs-section .mdp-rec-name {
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	color: #2f3044;
}

#mdp-recs-section .mdp-rec-title {
	font-size: 13px;
	line-height: 1.3;
	color: #8a8b9b;
}

#mdp-recs-section .mdp-rec-meta {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 3px;
	flex: 0 0 auto;
	margin-left: auto;
}

#mdp-recs-section .mdp-rec-stars {
	display: inline-flex;
	align-items: center;
	gap: 1px;
	line-height: 1;
}

#mdp-recs-section .mdp-rec-date {
	font-size: 12px;
	line-height: 1.3;
	color: #a0a1b2;
	white-space: nowrap;
}

#mdp-recs-section .mdp-rec-message {
	margin: 10px 0 0 50px;   /* thụt bằng bề ngang avatar + khoảng cách */
	font-size: 14px;
	line-height: 1.6;
	color: #55566b;
}

/* Màn hình hẹp ---------------------------------------------------------- */
@media (max-width: 520px) {
	#mdp-recs-section .mdp-rec-head {
		flex-wrap: wrap;
		gap: 10px;
	}
	#mdp-recs-section .mdp-rec-meta {
		align-items: flex-start;
		margin-left: 50px;
		flex-direction: row;
		gap: 10px;
	}
	#mdp-recs-section .mdp-rec-message {
		margin-left: 0;
	}
}
