/**
 * Accions UCM — estils del frontend
 * * Variables sobreescrivibles des del tema redefinint :root o .accions-ucm-grid.
 */

.accions-ucm-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 30px;
	margin: 30px 0 0 0;
	padding: 0;
	list-style: none;
}

.accions-ucm-grid__item {
	margin: 0;
}

/* ---- Teaser ---------------------------------------------------------- */

.accio-teaser {
	border-radius: 6px;
	overflow: hidden;
	border: 1px solid var(--bgaccent-fosc);
}

.accio-teaser__logo {
	margin: 0;
	padding: 20px;

	border-bottom: 1px solid var(--bgaccent-fosc);
}

.accio-teaser__logo-img {
	display: block;
	max-width: 100%;
	max-height: 5rem;
	width: auto;
	height: auto;
}

.accio-teaser__header {
	background-color: var(--bgaccent-fosc);
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 0.5em 1em;
	color: #fff;
}


.accio-teaser__header p {
	margin: 0;
}

.accio-teaser__header a {
	color: #fff;
}

.accio-teaser__title {
	background-color: var(--bgaccent-fosc);
	color: #fff;
	font-size: 1.5rem;
	line-height: 1.2;
	font-weight: 500;
	margin: 0;
}

.accio-teaser__title a {
	color: inherit;
	text-decoration: none;
}

.accio-teaser__title a:hover,
.accio-teaser__title a:focus-visible {
	text-decoration: underline;
}

/* Dades */

.accio-teaser__dades {
	display: flex;
	flex-direction: column;
	margin: 0;

	> div {
		border-bottom: 1px solid #ddd;
		&:last-child {
			border-bottom: none;
		}
	}

	dt {
		font-weight: 600;
		text-transform: uppercase;
		color: var(--accent-accessible);
		letter-spacing: 0.03em;
		display: flex;
		justify-content: start;
		align-items: center;
		gap: 10px;
		line-height: 1.3;
		padding: 0.5em 1em 0 0.5em;

		margin: 0;

		img {
			flex: 0 0 30px;
			height: 30px;
			object-fit: contain;
		}
	}
	dd {
		font-weight: 600;
		margin: 0;
		padding: 0 0.5em 0.5em 48px;
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		a,
		a:visited {	min-width: 0;
			overflow-wrap: anywhere;
			color: #000;
			text-decoration: underline;
		}


	}
	.accio-teaser__entitat dd img {
		max-width: 140px;
		max-height: 80px;
		object-fit: contain;
	}


}

.accio-teaser__enllac {
	background-color: var(--bgaccent-fosc);
	grid-column: 1/-1;
	color: #fff;
	padding: 1em 2em;

	.accio-teaser__enllac__titol {
		display: flex;
		align-items: center;
		gap: 10px;
		font-weight: 700;
		text-transform: uppercase;
	}
	a,
	a:visited {
		color: #fff;

		text-decoration: none;
	}
	a:hover,
	a:focus-visible {
		text-decoration: underline;
	}

	img {
		width: 40px;
		height: 40px;

		object-fit: contain;
	}
}

@media (min-width: 600px) {
	.accio-teaser__dades {
		> div {
			display: grid;
			grid-template-columns: 210px 1fr;

			dd {
				padding: 0.5em 0.5em 0.5em 1em;
			}

			dt {
				width: 210px;
				padding: 0.5em 1em 0.5em 0.5em;
				border-right: 1px solid #ddd;
				img {
					flex: 0 0 56px;
					height: 40px;
				}
			}
		}
	}
}
@media (min-width: 768px) {
	.accio-teaser {
		display: grid;
		grid-template-columns: 210px 1fr;
	}

	.accio-teaser__logo {
		grid-column: 1/2;
		grid-row: 1/2;
	}

	.accio-teaser__header {
		grid-column: 2/3;
		grid-row: 1/2;
	}

	.accio-teaser__dades {
		grid-column: 1/-1;
		grid-row: 2/3;
	}

	.accio-teaser__enllac p {
		margin-top: 0.5em;
	}
}

@media (min-width: 1100px) {
	.accions-ucm-grid {
		grid-template-columns: 1fr 1fr;
	}
}
