/*
 * SECTION STYLE: MORE TO DIGEST (the newest articles).
 *
 * The design of the home page (1440 frame):
 *   - the small label with the yellow highlight on the last line
 *   - three article cards, each 305 px wide with a 20 px gap:
 *     the picture (305 x 357), the yellow tag in the top right corner,
 *     the title and "Read article" under it.
 */

.aitio-digest {
	padding: clamp(56px, 7.22vw, 104px) 0 clamp(40px, 4.17vw, 60px);
}

/* The column left of the sticky panel (1064 px on a 1440 screen). */
.aitio-digest__inner {
	max-width: var(--aitio-col-panel);
}

/* ---- the small label ------------------------------------------------ */

.aitio-digest__label {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	margin: 0 0 clamp(40px, 4.94vw, 71px);
	color: var(--aitio-dark);
	font-size: 15.59px;
	font-weight: 400;
	line-height: 1.5;
	letter-spacing: 0;
	text-align: left;
}

/* The last line of the label sits on a yellow mark. */
.aitio-digest__line--mark {
	background: var(--aitio-yellow);
	padding: 0 2px;
}

/* ---- the article cards ----------------------------------------------- */

.aitio-digest__grid {
	display: grid;
	grid-template-columns: repeat(3, 305px);
	gap: 20px;
}

.aitio-digest__card {
	min-width: 0;
}

.aitio-digest__link {
	display: block;
	color: inherit;
	text-decoration: none;
}

.aitio-digest__media {
	position: relative;
	aspect-ratio: 305 / 357.11;
	overflow: hidden;
	background: #d9d9d9;
	margin-bottom: 13.04px;
}

.aitio-digest__image,
.aitio-digest__placeholder {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* The yellow tag in the top right corner of the picture. */
.aitio-digest__tag {
	position: absolute;
	top: 10px;
	right: 26px;
	width: 123px;
	height: 21px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	padding: 0 6px;
	border-radius: 2px;
	background: var(--aitio-yellow);
	color: var(--aitio-dark);
	font-size: 12px;
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: 0;
	text-align: center;
	text-transform: uppercase;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.aitio-digest__title {
	margin: 0;
	color: var(--aitio-black);
	font-size: 24px;
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: -0.03em;
}

.aitio-digest__more {
	display: inline-block;
	margin-top: 28px;
	color: var(--aitio-dark);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
	letter-spacing: 0;
	text-transform: uppercase;
}

.aitio-digest__link:hover .aitio-digest__image {
	transform: scale(1.03);
	transition: transform var(--slow) var(--ease);
}

.aitio-digest__action {
	margin: 40px 0 0;
}

/* ------------------------------------------------------------------
 * Smaller screens
 * --------------------------------------------------------------- */

@media (max-width: 1100px) {

	.aitio-digest__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 860px) {

	.aitio-digest__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 32px 20px;
	}
}

@media (max-width: 560px) {

	.aitio-digest__grid {
		grid-template-columns: 1fr;
	}

	.aitio-digest__media {
		margin-bottom: 52.5px;
	}

	.aitio-digest__title {
		font-size: 22px;
		line-height: 1.4;
	}

	.aitio-digest__more {
		margin-top: 37.8px;
	}
}
