/* ANFAC Insights 1.1.0: fixes for the Insights section of the ANFAC Media page */

/* Desktop: a post left alone on the last row fills the whole row (no half-empty row) */
@media (min-width: 901px) {
	html body #anfac-wp section[data-p="insights"] #anfac-ins .np:not(:first-child):last-child:nth-child(even) {
		grid-column: 1 / -1;
		display: grid !important;
		grid-template-columns: 1fr 1.1fr !important;
	}
	html body #anfac-wp section[data-p="insights"] #anfac-ins .np:not(:first-child):last-child:nth-child(even) .npv {
		aspect-ratio: auto !important;
		height: 100% !important;
		min-height: 380px;
	}
	html body #anfac-wp section[data-p="insights"] #anfac-ins .np:not(:first-child):last-child:nth-child(even) .npb {
		padding: 34px !important;
		justify-content: center;
	}
}

/* Share buttons: real WhatsApp / Facebook / share icons */
html body #anfac-wp section[data-p="insights"] #anfac-ins .npsh svg {
	width: 18px;
	height: 18px;
	display: block;
}
html body #anfac-wp section[data-p="insights"] #anfac-ins .npsh .wa { color: #25D366; }
html body #anfac-wp section[data-p="insights"] #anfac-ins .npsh .fb { color: #1877F2; }

/* A post opened from a shared link is highlighted */
html body #anfac-wp section[data-p="insights"] #anfac-ins .np { scroll-margin-top: 90px; }
html body #anfac-wp section[data-p="insights"] #anfac-ins .np.ins-hl {
	border-color: #E9443D !important;
	box-shadow: 0 0 0 4px rgba(233, 68, 61, .22), 0 34px 60px -32px rgba(233, 68, 61, .45) !important;
}

/* Phone: no big empty space under the last post */
@media (max-width: 900px) {
	html body #anfac-wp section[data-p="insights"] { padding-bottom: 36px !important; }
}
