/*
	Blog - the listing (blog.php) and a post (blog-post.php)

	The cards, hero and closing band are the theme's own .dp- pieces. Only what is particular to a post
	list and a written article is here.
*/


/* ---------------------------------------------------------------- Listing */

/* The card is a column: the picture sits flush with its top edge, and the "Read the post" line stays
   at the bottom whatever the length of the excerpt above it */
.dp-blog-card {
	display: flex;
	flex-direction: column;
	padding: 0;
	overflow: hidden;
}

.dp-blog-card-image img {
	display: block;
	width: 100%;
	height: 200px;
	object-fit: cover;
}

.dp-blog-card-body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	padding: 26px 26px 28px 26px;
}

.dp-blog-date,
.dp-blog-post-date {
	margin: 0 0 10px 0;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--dp-ink-soft);
}

.dp-blog-card-title {
	line-height: 1.35;
}

.dp-blog-card-sub-title {
	margin: 0 0 10px 0;
	font-size: 15px;
	font-weight: 600;
	color: var(--dp-ink);
}

.dp-blog-read-more {
	margin-top: auto;
	padding-top: 18px;
	font-size: 15px;
	font-weight: 700;
	color: var(--dp-blue-dark);
}

.dp-blog-empty {
	margin: 0;
	text-align: center;
	font-size: 17px;
	color: var(--dp-ink-soft);
}


/* ---------------------------------------------------------------- A post */

/* The back link sits where the other pages have their eyebrow, so it takes the eyebrow's look */
.dp-blog-back,
.dp-blog-back:hover,
.dp-blog-back:focus {
	color: inherit;
	text-decoration: none;
}

.dp-blog-back:hover,
.dp-blog-back:focus {
	color: #ffffff;
}

.dp-blog-post .dp-blog-post-date {
	margin: 22px 0 0 0;
	color: rgba(255, 255, 255, 0.62);
}

/* A reading width, not the full container */
.dp-blog-article {
	max-width: 780px;
}

.dp-blog-post-image {
	margin-bottom: 40px;
	border-radius: 10px;
	overflow: hidden;
}

.dp-blog-post-image img {
	display: block;
	width: 100%;
	height: auto;
}

.dp-blog-post-body {
	font-size: 18px;
	line-height: 1.75;
	color: var(--dp-ink);
	overflow-wrap: break-word;
}

.dp-blog-post-body h2,
.dp-blog-post-body h3,
.dp-blog-post-body h4 {
	margin: 1.8em 0 0.6em 0;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -0.01em;
	color: var(--dp-ink);
}

.dp-blog-post-body h2 {
	font-size: 28px;
}

.dp-blog-post-body h3 {
	font-size: 22px;
}

.dp-blog-post-body h4 {
	font-size: 19px;
}

.dp-blog-post-body p,
.dp-blog-post-body ul,
.dp-blog-post-body ol,
.dp-blog-post-body blockquote {
	margin: 0 0 1.2em 0;
}

.dp-blog-post-body a {
	color: var(--dp-blue-dark);
	text-decoration: underline;
}

.dp-blog-post-body blockquote {
	padding: 4px 0 4px 20px;
	border-left: 3px solid var(--dp-blue);
	color: var(--dp-ink-soft);
}

.dp-blog-post-body img,
.dp-blog-post-body iframe,
.dp-blog-post-body video {
	max-width: 100%;
	height: auto;
}

/* A wide table scrolls inside the article rather than pushing the page sideways */
.dp-blog-post-body table {
	display: block;
	max-width: 100%;
	overflow-x: auto;
}


/* ---------------------------------------------------------------- Responsive */

@media (max-width: 767px) {

	.dp-blog-card-image img {
		height: 180px;
	}

	.dp-blog-post-body {
		font-size: 17px;
	}

	.dp-blog-post-body h2 {
		font-size: 24px;
	}

	.dp-blog-post-image {
		margin-bottom: 28px;
	}
}
