/* TEMP vars TODO: the var definitions should be moved to vars.css once the CSS vars task (DVB-839) is deployed to production */
:root {
	--header-height: 80px;
	--adminbar-height: 0px;
}

:root .admin-bar {
	--adminbar-height: 32px;
}

@media screen and (max-width: 768px) {
	:root .admin-bar {
		--adminbar-height: 46px;
	}
}
/* END temp vars */

.digest-home::before {
	content: '';
	position: absolute;
	display: block;
	background: linear-gradient(180deg, #D8E7FF 0%, rgba(216, 231, 255, 0.00) 100%);
	top: calc( var(--header-height, 80px) + var(--adminbar-height, 32px) ); /* TODO: define vars */
	left: 0;
	height: 441px;
	width: 100%;
	z-index: 0;
}

.digest-home > .inner {
	padding: 32px 0;
}

/* Cat archive head section */
.digest-home > .inner .digest-archive-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 32px;
}

.digest-home > .inner .digest-archive-head .cat-name {
	text-shadow: 0 0 11px #0000001c;
	flex: 0 0 auto;
}

.digest-home > .inner .digest-archive-head .cat-name::before {
	content: '///';
	display: inline;
	color: inherit;
	font-weight: 400;
	margin-right: 2px;
}

.digest-cat-archive > .inner .component-podcast-ticker {
	margin-bottom: 0;
}

/* Focus articles */
.digest-home > .inner .section-focus-articles {
	margin-bottom: 64px;
	overflow: visible;
}

.digest-home > .inner .section-focus-articles .large-articles {
	display: grid;
	grid-template-columns: 1fr 1fr;
	column-gap: 32px;
	margin-bottom: 32px;
}

.digest-home > .inner .section-focus-articles .small-articles {
	display: flex;
	column-gap: 32px;
}

.digest-home > .inner .section-focus-articles .focus-article-carousel {
	display: none;
}
/* END Focus articles */

/* ========= Main content area */
.digest-home > .inner .main-content {
	display: flex;
	flex-direction: column;
	background-color: var(--color-white, #FFFFFF);
	box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
	border-radius: 8px;
 	padding-top: 48px;
}

.digest-home > .inner .blogroll-section .blogroll-sidebar .component-reklama {
	position: sticky;
	top: 20px;
	bottom: 0;
	margin: 0;
}

.admin-bar .digest-home > .inner .blogroll-section .blogroll-sidebar .component-reklama {
	top: calc( 20px + var(--adminbar-height, 32px) );
}

/* =========END Main content area


/* Medium & down */
@media screen and (max-width: 1200px) {
	.digest-home > .inner .digest-archive-head {
		padding: 0 20px;
		margin-bottom: 30px;
	}

	.digest-home > .inner .section-focus-articles {
		margin-bottom: 24px;
		overflow: hidden;
	}

	.digest-home > .inner .section-focus-articles .large-articles,
	.digest-home > .inner .section-focus-articles .small-articles {
		display: none;
	}

	/* Focus articles */
	.digest-home > .inner .section-focus-articles .focus-article-carousel {
		display: flex;
		padding: 20px;
		align-items: center;
	}

	.digest-home > .inner .section-focus-articles .focus-article-carousel .component-focus-article {
		margin-right: 0;
	}

	/* main content */
	.digest-home > .inner .main-content {
		border-radius: 5px;
		padding-top: 16px;
	}

}

/* Small */
@media screen and (max-width: 950px) {
	:root {
		--header-height: 70px;
	}

	:root .admin-bar {
		--adminbar-height: 46px;
	}

	.digest-home > .inner {
		padding: 20px 0;
	}

	.digest-home > .inner .digest-archive-head {
		flex-wrap: wrap-reverse;
		margin-bottom: 20px;
		row-gap: 20px;
	}

	.digest-home > .inner .section-focus-articles {
		margin-bottom: 18px;
	}

	.digest-home > .inner .section-focus-articles .focus-article-carousel {
		padding: 20px 0;
	}

	.digest-home > .inner .main-content {
		margin-top: 12px;
		row-gap: 32px;
		background-color: var(--color-background-grey, #f5f5f5); /* TODO: define vars */
		box-shadow: none;
		padding: 0;
		overflow: visible;
	}
}
