/* hyp/media — protótipo linhas 436–459, spec 12. Breakpoints: mobile < 768 · tablet 768–1079 · desktop ≥ 1080. */

.hyp-media {
	padding-top: 110px;
}

.hyp-media .hyp-media__head {
	max-width: 720px;
}

.hyp-media .hyp-sh__lead {
	margin-top: 20px;
}

.hyp-media .hyp-media__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 30px;
	margin: 46px 0 0;
	padding: 0;
	list-style: none;
}

.hyp-media .hyp-media__item {
	margin: 0;
	list-style: none;
	display: flex;
}

.hyp-media .hyp-media__card {
	flex: 1;
	text-decoration: none;
	color: inherit;
	display: flex;
	flex-direction: column;
	border: 1px solid var(--hyp-border-card);
	border-radius: var(--hyp-r-card);
	overflow: hidden;
	background: #ffffff;
	transition: box-shadow 0.25s, transform 0.25s;
}

.hyp-media .hyp-media__card:hover {
	box-shadow: var(--hyp-shadow-2);
	transform: translateY(-3px);
	color: inherit;
}

.hyp-media .hyp-media__card:focus-visible {
	outline-offset: 3px;
	border-radius: var(--hyp-r-card);
}

.hyp-media .hyp-media__img {
	display: block;
	height: 190px;
	background-color: #e5eaee;
	overflow: hidden;
}

.hyp-media .hyp-media__img img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center;
}

.hyp-media .hyp-media__body {
	padding: 26px 28px 30px;
	display: flex;
	flex-direction: column;
	gap: 14px;
	flex: 1;
}

.hyp-media .hyp-media__title {
	font-size: 16.5px;
	line-height: 1.45;
	font-weight: 600;
	color: var(--hyp-navy);
	letter-spacing: -0.01em;
	/* Sempre 2 linhas (pedido do cliente): corta com reticências e reserva 2 linhas mesmo em títulos curtos.
	   O título completo fica no HTML (leitores de ecrã) e no atributo title (tooltip). */
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	overflow: hidden;
	min-height: calc(2 * 1.45em);
}

.hyp-media .hyp-media__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: auto;
	padding-top: 16px;
	border-top: 1px solid var(--hyp-hair-3);
}

.hyp-media .hyp-media__date {
	font-size: 12px;
	color: var(--hyp-text-meta-3);
}

.hyp-media .hyp-media__more {
	font-size: 12.5px;
	font-weight: 500;
	color: var(--hyp-orange);
}

@media (max-width: 1079.98px) {
	.hyp-media .hyp-media__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767.98px) {
	.hyp-media .hyp-media__grid {
		grid-template-columns: minmax(0, 1fr);
	}
}
