/* ── Popup Card – trigger row ──────────────────────────────────────────── */
.popup-card-trigger {
	display: flex;
	align-items: center;
	gap: 14px;
	cursor: pointer;
	padding: 10px 14px;
	border-radius: 6px;
	transition: background 0.2s;
	width: fit-content;
}

.popup-card-trigger:hover,
.popup-card-trigger:focus-visible {
	background: rgba(0, 0, 0, 0.05);
	outline: none;
}

.popup-card-thumb {
	border-radius: 99999px;
	width: 36px;
	height: 36px;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	flex-shrink: 0;
}

.popup-card-title {
	font-weight: 600;
	font-size: 1rem;
	color: var(--e-global-color-primary);
}

.popup-card-position {
	font-size: 0.875rem;
	color: #555;
}

/* ── Overlay ───────────────────────────────────────────────────────────── */
.popup-card-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	animation: popup-card-fade-in 0.2s ease;
}

.popup-card-overlay[hidden] {
	display: none !important;
}

@keyframes popup-card-fade-in {
	from { opacity: 0; }
	to   { opacity: 1; }
}

/* ── Modal box ─────────────────────────────────────────────────────────── */
.popup-card-modal {
	position: relative;
	background: #fff;
	border-radius: 10px;
	max-width: 1024px;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
	animation: popup-card-slide-up 0.25s ease;
}


[type=button]:focus, [type=button]:hover, [type=submit]:focus, [type=submit]:hover, button:focus, button:hover{
	background-color: transparent!important;
	color: grey!important;
}


@keyframes popup-card-slide-up {
	from { transform: translateY(20px); opacity: 0; }
	to   { transform: translateY(0);    opacity: 1; }
}

.popup-card-close {
	position: absolute;
	top: 14px;
	right: 16px;
	background: none;
	border: none;
	font-size: 1.75rem;
	line-height: 1;
	cursor: pointer;
	color: #444;
	padding: 0;
	z-index: 1;
}

.popup-card-close:hover {
	color: #000;
}

/* ── Modal inner layout ─────────────────────────────────────────────────── */
.popup-card-modal-inner {
	display: flex;
	gap: 0;
	min-height: 30vh;
	max-height: 70vh;
}

.popup-card-modal-image {
	flex: 0 0 42%;
	max-width: 42%;
}

.popup-card-modal-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	border-radius: 10px 0 0 10px;
}

.popup-card-modal-body {
	flex: 1;
	padding: 36px 32px 32px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.popup-card-modal-title {
	font-size: 1.4rem;
	font-weight: 700;
	margin: 0;
	line-height: 1.3;
}

.popup-card-modal-position {
	font-size: 0.95rem;
	color: #666;
	margin: 0;
}

.popup-card-modal-content {
	font-size: 0.95rem;
	line-height: 1.65;
	flex: 1;
	overflow-y: scroll;
}

.popup-card-modal-content p:first-child {
	margin-top: 0;
}

.popup-card-modal-content p:last-child {
	margin-bottom: 0;
}

/* ── LinkedIn icon ─────────────────────────────────────────────────────── */
.popup-card-linkedin {
	display: inline-flex;
	color: #0a66c2;
	transition: color 0.2s, transform 0.2s;
	margin-top: auto;
}


/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
	.popup-card-modal-inner {
		flex-direction: column;
	}

	.popup-card-modal-image {
		flex: none;
		max-width: 100%;
		max-height: 240px;
	}

	.popup-card-modal-image img {
		border-radius: 10px 10px 0 0;
		max-height: 240px;
	}

	.popup-card-modal-body {
		padding: 24px 20px 24px;
	}
}
