/* ------- Favourite services on the landing page (favorite-services.js) -------
   The signed-in citizen's flagged services: three cards per row, each with its category icon,
   the service name, its category and a gold flag. */

.favorite-services {
	margin: 0;
}

	.favorite-services[hidden] {
		display: none;
	}

.favorite-services-intro {
	margin: -.4em 0 1em;
	font-size: .92em;
	color: #5b6b80;
}

.favorite-services-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: .9em;
}

.fav-card {
	display: flex;
	align-items: center;
	gap: .9em;
	min-width: 0;
	padding: .95em 1.1em;
	color: #0a2a4f;
	text-decoration: none;
	background: #fff;
	border: 1px solid #dbe4ee;
	border-radius: 14px;
	box-shadow: 0 4px 14px rgba(6, 28, 57, .05);
	transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

	.fav-card:hover {
		color: #0a2a4f;
		text-decoration: none;
		border-color: rgba(30, 136, 214, .45);
		box-shadow: 0 10px 24px rgba(30, 136, 214, .14);
		transform: translateY(-2px);
	}

	.fav-card:focus-visible {
		outline: 3px solid #1d61a1;
		outline-offset: 2px;
	}

.fav-card-icon {
	flex-shrink: 0;
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 12px;
	color: #1e88d6;
	background: rgba(30, 136, 214, .11);
}

	.fav-card-icon svg {
		width: 22px;
		height: 22px;
		fill: none;
		stroke: currentColor;
		stroke-width: 1.9;
		stroke-linecap: round;
		stroke-linejoin: round;
	}

.fav-card-img {
	width: 24px;
	height: 24px;
	background-position: center;
	background-repeat: no-repeat;
	background-size: contain;
}

.fav-card-text {
	display: flex;
	flex-direction: column;
	gap: .2em;
	flex: 1;
	min-width: 0;
}

.fav-card-name {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	font-size: .95rem;
	line-height: 1.35;
}

.fav-card-category {
	overflow: hidden;
	font-size: .8rem;
	white-space: nowrap;
	text-overflow: ellipsis;
	color: #5b6b80;
}

.fav-card-flag {
	flex-shrink: 0;
	display: grid;
	color: #D0A650;
}

	.fav-card-flag svg {
		width: 18px;
		height: 18px;
		fill: currentColor;
		stroke: currentColor;
		stroke-width: 2;
		stroke-linecap: round;
		stroke-linejoin: round;
	}

@media (max-width: 1100px) {
	.favorite-services-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
