/* News: archives, search and single posts. */

/* Transparent header row over category archives and posts. */
body.archive.category[data-header*="type-1"] .ct-header [data-row*="middle"],
body.single-post[data-header*="type-1"] .ct-header [data-row*="middle"] {
	background-color: transparent;
}

/* ---------- Category archive cards, coloured by category ---------- */
.archive[data-prefix="categories"] article.entry-card.category-press       { background-color: var(--cat-press); }
.archive[data-prefix="categories"] article.entry-card.category-trattamenti { background-color: var(--cat-trattamenti); }
.archive[data-prefix="categories"] article.entry-card.category-store       { background-color: var(--cat-store); }
.archive[data-prefix="categories"] article.entry-card.category-eventi      { background-color: var(--cat-eventi); }
.archive[data-prefix="categories"] article.entry-card.category-news        { background-color: var(--cat-news); }

.archive[data-prefix="categories"] article.entry-card * {
	color: var(--cat-testo);
}

/* Enhanced grid: only the first two cards show a picture (desktop). */
@media (min-width: 900px) {
	[data-layout="enhanced-grid"] > article:nth-child(3) img,
	[data-layout="enhanced-grid"] > article:nth-child(4) img,
	[data-layout="enhanced-grid"] > article:nth-child(5) img {
		display: none;
	}
}

/* ---------- Single post ---------- */
.single-post article header.entry-header ul.entry-meta {
	text-align: center;
}

/* Treatment posts are evergreen: no date. */
.category-trattamenti li.meta-date {
	display: none;
}
