/**
 * The card the design draws for a post — shared by every section that lists them.
 *
 * Every measurement here was read from the design file. Colour and type that
 * the Style tab can carry are left to the section the card stands in.
 */

.custom-blog-card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	min-width: 0;
	border-radius: 24px;
	overflow: hidden;
	color: inherit;
	text-decoration: none;
	transition: opacity 300ms ease-in-out;
}

.custom-blog-card:hover {
	opacity: 0.85;
}

/* The picture the design gives the card, whether or not there is one to show. */
.custom-blog-card__picture {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	overflow: hidden;
}

.custom-blog-card__picture img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.custom-blog-card__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
	width: 100%;
	padding: 24px 16px;
	box-sizing: border-box;
}

.custom-blog-card__date {
	display: flex;
	align-items: center;
	gap: 5px;
}

.custom-blog-card__date svg {
	display: block;
	flex: 0 0 auto;
}

.custom-blog-card__text {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	width: 100%;
}

.custom-blog-card__title {
	width: 100%;
	text-transform: uppercase;
	overflow-wrap: anywhere;
}

.custom-blog-card__excerpt {
	width: 100%;
	overflow-wrap: anywhere;
}

@media ( prefers-reduced-motion: reduce ) {
	.custom-blog-card {
		transition: none;
	}
}

/* Tablet and mobile — the file draws one of them (11186:12608): the corner
   20, the words 20 down and 13 in with 13 between the day and the rest,
   and 6 between the name and the words. Tablet is not drawn and takes the
   same figures. */
@media ( max-width: 1024px ) {
	.custom-blog-card {
		border-radius: 20px;
	}

	.custom-blog-card__body {
		gap: 13px;
		padding: 20px 13px;
	}

	.custom-blog-card__date {
		gap: 4px;
	}

	.custom-blog-card__date svg {
		width: 13px;
		height: 13px;
	}

	.custom-blog-card__text {
		gap: 6px;
	}
}
