/**
 * News archive.
 *
 * Two columns on the shared shell: the post list at 720px, the campaign rail
 * at a fixed 360px, 56px apart inside the 1136px measure. The page head spans
 * the whole measure above both.
 *
 * The shell (page-shell.css) owns the band, the measure, the palette, the card
 * and the pagination; this file only adds what is particular to the archive.
 *
 * Every rule is scoped to .dtg-news. Woodmart styles headings and links broadly
 * enough that a lone class selector can lose; the wrapper class is what settles
 * it, so none of this needs !important.
 */

body.post-type-archive-news .wd-page-content {
	background-color: var(--e-global-color-712e272, #f7fafc);
}

.dtg-news {
	padding-block: 36px 96px;
}

/* The page sits on a tinted ground in the design; the theme paints white. */
.post-type-archive-news .site-content.dtg-news {
	background: transparent;
}

/* Grid */
.dtg-news .dtg-news__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 360px;
	align-items: start;
}

.dtg-news .dtg-news__layout--no-rail {
	grid-template-columns: minmax(0, 1fr);
}

.dtg-news .dtg-news__head {
	grid-column: 1 / -1;
}

.dtg-news .dtg-news__main {
	min-width: 0;
}

@media (max-width: 1024px) {
	.dtg-news .dtg-news__layout {
		grid-template-columns: minmax(0, 1fr);
		gap: 32px;
	}
}

/* Featured item */
.dtg-news .dtg-news__featured {
	display: block;
	margin-bottom: 24px;
	padding: 26px 28px;
	text-decoration: none;
}

.dtg-news .dtg-news__featured-media {
	display: block;
	overflow: hidden;
	margin-bottom: 18px;
	aspect-ratio: 16 / 9;
	border-radius: 12px;
	background: var(--dtg-accent-soft);
}

.dtg-news .dtg-news__featured-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.dtg-news .dtg-news__featured-body {
	display: block;
	min-width: 0;
}

.dtg-news .dtg-news__featured-date {
	color: var(--dtg-muted);
	font-size: 14px;
	font-weight: 500;
}

.dtg-news .dtg-news__featured-title {
	display: block;
	margin-bottom: 8px;
	color: var(--dtg-ink);
	font-size: 24px;
	font-weight: 800;
	line-height: 1.25;
	letter-spacing: -0.01em;
}

.dtg-news .dtg-news__featured:hover .dtg-news__featured-title,
.dtg-news .dtg-news__featured:focus .dtg-news__featured-title {
	color: var(--dtg-accent);
}

.dtg-news .dtg-news__featured:focus-visible {
	outline: 2px solid var(--dtg-accent);
	outline-offset: 4px;
}

.dtg-news .dtg-news__featured-summary {
	display: block;
	color: var(--dtg-body);
	font-size: 15.5px;
	line-height: 1.6;
}

.dtg-news .dtg-news__featured-more {
	display: inline-block;
	margin-top: 14px;
	color: var(--dtg-accent);
	font-size: 14px;
	font-weight: 700;
}

.dtg-news .dtg-news__featured:hover .dtg-news__featured-more,
.dtg-news .dtg-news__featured:focus .dtg-news__featured-more {
	color: var(--dtg-accent-hover);
}

/* List card */
.dtg-news .dtg-news__list {
	display: flex;
	flex-direction: column;
	padding: 4px 28px;
}

.dtg-news .dtg-news__item {
	display: block;
	padding: 22px 0;
	border-bottom: 1px solid var(--dtg-rule);
	text-decoration: none;
}

.dtg-news .dtg-news__item:last-child {
	border-bottom: 0;
}

.dtg-news .dtg-news__item:hover .dtg-news__item-title,
.dtg-news .dtg-news__item:focus .dtg-news__item-title {
	color: var(--dtg-accent);
	text-decoration: none;
}

.dtg-news .dtg-news__item:focus-visible {
	outline: 2px solid var(--dtg-accent);
	outline-offset: 4px;
}

.dtg-news .dtg-news__meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 12px;
}

.dtg-news .dtg-news__item-date {
	color: var(--dtg-muted);
	font-size: 14px;
	font-weight: 500;
}

.dtg-news .dtg-news__item-title {
	display: block;
	margin-bottom: 6px;
	color: var(--dtg-ink);
	font-size: 19px;
	font-weight: 700;
	line-height: 1.35;
}

.dtg-news .dtg-news__item-summary {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	color: var(--dtg-body);
	font-size: 15.5px;
	line-height: 1.6;
}

/* Empty state */
.dtg-news .dtg-news__empty {
	padding: 36px 28px;
	text-align: center;
}

.dtg-news .dtg-news__empty-title {
	margin: 0 0 8px;
	color: var(--dtg-ink);
	font-size: 19px;
	font-weight: 700;
}

.dtg-news .dtg-news__empty-text {
	margin: 0;
	color: var(--dtg-body);
	font-size: 15.5px;
	line-height: 1.6;
}

@media (max-width: 767px) {
	.dtg-news {
		padding-block: 24px 64px;
	}

	.dtg-news .dtg-news__list {
		padding: 4px 18px;
	}

	.dtg-news .dtg-news__featured {
		padding: 18px 18px 22px;
	}

	.dtg-news .dtg-news__featured-title {
		font-size: 20px;
	}
}
