/* Det förnyade personkortet (inc/personkort.php): direkt på sidans bakgrund, utan ruta och ram */

.ntv-kort-widget {
	--align-self: center;
	width: 100%;
	max-width: 760px;
}

.ntv-kort {
	display: grid;
	grid-template-columns: 176px 1fr;
	gap: 36px;
	align-items: center;
	color: #fff;
	text-align: left;
}

/* Elementors bildregel (.elementor img) sätter höjd och hörn, så de här måste vinna */
.ntv-kort img.ntv-kort__bild {
	display: block;
	width: 176px;
	height: 176px !important;
	max-width: none;
	object-fit: cover;
	object-position: 50% 30%;
	/* sidans sneda form, som på knapparna: rundat uppe till vänster och nere till höger */
	border-radius: 56px 0 !important;
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.ntv-kort__namn {
	margin: 0 0 10px;
	font-family: "Fjalla One", sans-serif;
	font-weight: 400;
	font-size: 30px;
	line-height: 1.15;
	color: #fff;
}

/* Brödtypsnittet i vanlig vikt: lättare att läsa än det smala, feta rubriktypsnittet */
.ntv-kort__bio {
	font-family: "IBM Plex Sans", sans-serif;
	font-weight: 400;
	font-size: 16px;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.88);
	max-width: 52ch;
}

.ntv-kort__bio p {
	margin: 0 0 10px;
}

.ntv-kort__bio p:last-child {
	margin-bottom: 0;
}

.ntv-kort__mejl {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 16px;
	font-family: "IBM Plex Sans", sans-serif;
	font-weight: 600;
	font-size: 16px;
	color: #fed107 !important;
	text-decoration: none;
	border-bottom: 1px solid rgba(254, 209, 7, 0.45);
	padding-bottom: 2px;
	transition: border-color 0.2s ease, gap 0.2s ease;
}

.ntv-kort__mejl[href]:hover,
.ntv-kort__mejl[href]:focus-visible {
	border-bottom-color: #fed107;
	gap: 12px;
}

.ntv-kort__mejl:not([href]) svg {
	display: none;
}

@media (max-width: 767px) {
	.ntv-kort {
		grid-template-columns: 1fr;
		gap: 20px;
		margin-bottom: 32px;
	}

	.ntv-kort img.ntv-kort__bild {
		width: 132px;
		height: 132px !important;
		border-radius: 42px 0 !important;
	}

	.ntv-kort__namn {
		font-size: 26px;
	}
}
