/*
 * Mercados Latest Insights
 * Defaults match the Mercados Media design system.
 */

.mli-widget {
	--mli-navy: #0e2745;
	--mli-blue: #1e73be;
	--mli-muted: #69788c;
	--mli-line: #e5ebf2;
	--mli-soft: #f7f9fc;
	overflow: hidden;
	background: #fff;
	color: var(--mli-navy);
	font-family: Inter, Arial, sans-serif;
}

.mli-header {
	margin-bottom: 16px;
}

.mli-heading {
	position: relative;
	margin: 0;
	padding-bottom: 14px;
	font-family: Inter, Arial, sans-serif;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 1.8px;
	text-transform: uppercase;
}

.mli-heading::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 54px;
	height: 2px;
	background: var(--mli-blue);
}

.mli-layout {
	display: flex;
	align-items: stretch;
	min-width: 0;
	border: 1px solid var(--mli-line);
}

.mli-filters {
	flex: 0 0 24%;
	min-width: 190px;
	border-right: 1px solid var(--mli-line);
	background:
		radial-gradient(circle at 45% 85%, rgba(30, 115, 190, 0.055) 0 2px, transparent 2.5px) 0 0 / 13px 13px,
		#fff;
}

.mli-filter-list {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 32px 20px;
}

.mli-filter {
	position: relative;
	width: 100%;
	border: 0;
	border-radius: 4px;
	background: transparent;
	color: var(--mli-navy);
	cursor: pointer;
	font: inherit;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: .35px;
	text-align: left;
	text-transform: uppercase;
	transition: color .2s ease, background-color .2s ease;
}

.mli-filter::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 4px;
	background: transparent;
}

.mli-filter:hover,
.mli-filter:focus-visible {
	color: var(--mli-blue);
	outline: none;
}

.mli-news {
	flex: 1 1 auto;
	min-width: 0;
	background: #fff;
}

.mli-news-group[hidden] {
	display: none !important;
}

.mli-article {
	border-bottom: 1px solid var(--mli-line);
}

.mli-article:last-child {
	border-bottom: 0;
}

.mli-source {
	margin-bottom: 7px;
	color: var(--mli-blue);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: .7px;
	text-transform: uppercase;
}

.mli-article-title {
	margin: 0;
	font-family: Manrope, Arial, sans-serif;
	font-size: 19px;
	font-weight: 600;
	line-height: 1.32;
	letter-spacing: -.25px;
}

.mli-article-title a {
	text-decoration: none;
	transition: color .2s ease;
}

.mli-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	margin-top: 8px;
	font-size: 13px;
	line-height: 1.4;
}

.mli-empty {
	margin: 0;
	padding: 30px 0;
	color: var(--mli-muted);
}

.mli-image-panel {
	position: relative;
	flex: 0 0 35%;
	min-width: 280px;
	margin: 0;
	overflow: hidden;
	background: #dfe8f1;
}

.mli-image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: opacity .22s ease, transform .5s ease;
}

.mli-image-panel.is-changing .mli-image {
	opacity: .45;
	transform: scale(1.015);
}

.mli-image-overlay {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.mli-image-content {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 2;
}

.mli-image-title {
	font-family: Manrope, Arial, sans-serif;
	font-size: 28px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: .4px;
	text-transform: uppercase;
}

.mli-image-title::after {
	content: "";
	display: block;
	width: 52px;
	height: 2px;
	margin: 15px 0 18px;
	background: #4ca0e5;
}

.mli-image-description {
	max-width: 320px;
	font-size: 15px;
	line-height: 1.6;
}

.mli-article[hidden] {
	display: none !important;
}

@media (max-width: 1024px) {
	.mli-layout {
		flex-wrap: wrap;
	}

	.mli-filters {
		flex: 0 0 100% !important;
		min-width: 0;
		border-right: 0;
		border-bottom: 1px solid var(--mli-line);
	}

	.mli-filter-list {
		flex-direction: row;
		overflow-x: auto;
		padding: 14px;
		scrollbar-width: thin;
	}

	.mli-filter {
		flex: 0 0 auto;
		width: auto;
		white-space: nowrap;
	}

	.mli-news {
		flex: 1 1 58%;
	}

	.mli-image-panel {
		flex: 1 1 42%;
		min-width: 260px;
	}
}

@media (max-width: 767px) {
	.mli-layout {
		display: flex;
		flex-direction: column;
		border-right: 0;
		border-left: 0;
	}

	.mli-filters,
	.mli-news,
	.mli-image-panel {
		flex: 0 0 auto !important;
		width: 100%;
		min-width: 0;
	}

	.mli-filters {
		order: 1;
	}

	.mli-order-filters-image-news .mli-image-panel {
		order: 2;
	}

	.mli-order-filters-image-news .mli-news {
		order: 3;
	}

	.mli-order-filters-news-image .mli-news {
		order: 2;
	}

	.mli-order-filters-news-image .mli-image-panel {
		order: 3;
	}

	.mli-order-image-filters-news .mli-image-panel {
		order: 1;
	}

	.mli-order-image-filters-news .mli-filters {
		order: 2;
	}

	.mli-order-image-filters-news .mli-news {
		order: 3;
	}

	.mli-hide-image-mobile .mli-image-panel {
		display: none;
	}

	.mli-filter-list {
		padding-right: 0;
		padding-left: 0;
	}

	.mli-image-title {
		font-size: 22px;
	}

	.mli-article-title {
		font-size: 18px;
	}
}
