/* ==========================================================================
   Blog index (/blog/) AND single posts -- one stylesheet for both.

   The dispatcher auto-links this file for the blog page because it is named
   after the content file; single.php links it explicitly, since a post is not
   a normal page and gets no dispatcher. Keep the name.

   GREEN, the company-pages family colour Blog shares with About Us, How It
   Works, Quality Assurance and Careers. Three tints, as the scheme requires:
   #45B17B measures 2.68:1 on white so it is graphics and rules only, #2E8A5E
   (4.27:1) carries large headings and panel grounds, and #237049 (6.03:1)
   carries links and anything at body size.
   ========================================================================== */

/* ==========================================================================
   Title band -- the same compact head the legal pages use, not a slider
   replica. An index and an article are documents; they do not need a hero. */
.eko4-blog-head, .eko4-post-head {
	position: relative; padding: 132px 30px 46px;
	background: linear-gradient(135deg, #123D28 0%, #237049 60%, #2E8A5E 100%);
}
/* the theme header sits INSIDE this band and its wave is semi-transparent,
   so without a light scrim across the top the four-colour logo goes illegible
   against the dark green */
.eko4-blog-head::before, .eko4-post-head::before {
	content: ''; position: absolute; left: 0; right: 0; top: 0; height: 126px; pointer-events: none;
	background: linear-gradient(180deg, rgba(255, 255, 255, .94) 0%, rgba(255, 255, 255, .58) 58px, rgba(255, 255, 255, 0) 100%);
}
.eko4-blog-head-inner, .eko4-post-head-inner { position: relative; max-width: 900px; margin: 0 auto; }
.eko4-blog-kicker, .eko4-post-kicker {
	display: inline-block; margin-bottom: 12px; padding: 5px 13px; border-radius: 40px;
	background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .38);
	color: #DFF3E8; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
.eko4-blog-head h1, .eko4-post-head h1 {
	color: #fff !important; font-size: 40px; line-height: 50px; font-weight: 700;
	margin: 0 0 10px; text-wrap: balance;
}
.eko4-blog-head-meta, .eko4-post-head-meta { margin: 0; color: rgba(255, 255, 255, .82); font-size: 15px; line-height: 25px; }
.eko4-post-head-meta a { color: #fff; text-decoration: underline; }

/* ==========================================================================
   The index */
.eko4-blog-row { padding: 48px 0 44px; }
.eko4-blog { max-width: 900px; margin: 0 auto; }
.eko4-blog-list { display: grid; gap: 22px; }

.eko4-blog-card {
	display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 0;
	background: #fff; border: 1px solid #DCEFE5; border-radius: 16px; overflow: hidden;
	box-shadow: 0 2px 10px rgba(30, 110, 75, .05);
	transition: box-shadow .2s, transform .2s, border-color .2s;
}
.eko4-blog-card:hover, .eko4-blog-card:focus-within {
	box-shadow: 0 12px 30px rgba(30, 110, 75, .16); transform: translateY(-2px); border-color: #BFE4D2;
}
/* a card with no image is one column, not a 280px empty gutter */
.eko4-blog-card:not(:has(.eko4-blog-card-img)) { grid-template-columns: minmax(0, 1fr); }
.eko4-blog-card-img { display: block; background: #F2FAF6; }
.eko4-blog-card-img img { display: block; width: 100%; height: 100%; min-height: 180px; object-fit: cover; }
.eko4-blog-card-body { padding: 24px 28px 22px; }
.eko4-blog-card-date {
	margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .09em;
	text-transform: uppercase; color: #6c8d7d;
}
.eko4-blog-card h2 { margin: 0 0 10px; font-size: 22px; line-height: 31px; font-weight: 700; text-wrap: balance; }
.eko4-blog-card h2 a { color: #23323a; text-decoration: none; }
.eko4-blog-card:hover h2 a, .eko4-blog-card h2 a:focus { color: #237049; }
.eko4-blog-card-excerpt { margin: 0 0 14px; font-size: 15.5px; line-height: 26px; color: #58595b; }
.eko4-blog-card-go { font-size: 14.5px; font-weight: 600; color: #237049; text-decoration: none; }
.eko4-blog-card-go:hover, .eko4-blog-card-go:focus { text-decoration: underline; color: #1B5C3B; }

.eko4-blog-empty { font-size: 16px; line-height: 28px; color: #58595b; }
.eko4-blog-empty a { color: #237049; text-decoration: underline; }

.eko4-blog-pager { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 32px; }
.eko4-blog-pager .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 42px; height: 42px; padding: 0 14px; border-radius: 8px;
	border: 1px solid #DCEFE5; color: #237049; font-size: 15px; font-weight: 600; text-decoration: none;
	font-variant-numeric: tabular-nums;
}
.eko4-blog-pager .page-numbers:hover, .eko4-blog-pager .page-numbers:focus { background: #F2FAF6; border-color: #BFE4D2; }
.eko4-blog-pager .page-numbers.current { background: #237049; border-color: #237049; color: #fff; }

/* three routes out, because an archive this size is not a destination */
.eko4-blog-router {
	margin-top: 44px; display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr));
}
.eko4-blog-router-card {
	display: block; background: linear-gradient(180deg, #F2FAF6 0%, #FFFFFF 100%);
	border: 1px solid #DCEFE5; border-radius: 14px; padding: 20px 22px 18px; text-decoration: none;
	transition: box-shadow .2s, transform .2s, border-color .2s;
}
.eko4-blog-router-card:hover, .eko4-blog-router-card:focus {
	box-shadow: 0 10px 26px rgba(30, 110, 75, .14); transform: translateY(-2px); border-color: #BFE4D2;
}
.eko4-blog-router-card h3 { margin: 0 0 6px; font-size: 16px; line-height: 23px; color: #237049; font-weight: 700; }
.eko4-blog-router-card p { margin: 0; font-size: 14px; line-height: 23px; color: #58595b; }

/* ==========================================================================
   Single post. The theme prints the post title from inc/top.php, which the
   custom chrome does not load, so single.php draws its own band above and
   this styles the article underneath it. */
.eko4-post-row { padding: 48px 0 44px; }
.eko4-post { max-width: 820px; margin: 0 auto; }
.eko4-post .post-content, .eko4-post .blog-post-content { max-width: none; }
.eko4-post p, .eko4-post li { font-size: 17px; line-height: 30px; color: #4a4b4d; }
.eko4-post p { margin: 0 0 20px; }
.eko4-post h2 { font-size: 26px; line-height: 35px; color: #23323a; font-weight: 700; margin: 34px 0 12px; text-wrap: balance; }
.eko4-post h3 { font-size: 20px; line-height: 29px; color: #237049; font-weight: 700; margin: 28px 0 10px; }
.eko4-post a { color: #237049; text-decoration: underline; }
.eko4-post img { max-width: 100%; height: auto; border-radius: 12px; }
/* the lead photo is whatever the editor uploaded -- one of the two live ones
   is 900px tall and filled the whole first screen of the article */
.eko4-post-figure { margin: 0 0 28px; text-align: center; }
.eko4-post-figure img { max-height: 420px; width: auto; }
.eko4-post blockquote {
	margin: 26px 0; padding: 18px 24px; border-left: 3px solid #45B17B;
	background: #F2FAF6; border-radius: 3px 12px 12px 3px;
}
.eko4-post blockquote p:last-child { margin-bottom: 0; }
/* the theme strips list markers site-wide */
.eko4-post ul, .eko4-post ol { margin: 0 0 20px 22px; padding: 0; }
.eko4-post ul { list-style: disc outside; }
.eko4-post ol { list-style: decimal outside; }
.eko4-post li { display: list-item; margin-bottom: 8px; }

.eko4-post-back { margin: 40px 0 0; }
.eko4-post-back a {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 48px; padding: 0 26px; border-radius: 50px;
	border: 2px solid #237049; color: #237049; background: transparent;
	font-size: 14.5px; font-weight: 600; text-decoration: none; line-height: 1;
	transition: background .2s, color .2s;
}
.eko4-post-back a:hover, .eko4-post-back a:focus { background: #F2FAF6; color: #1B5C3B; }

/* the theme's own post furniture, toned to match the rest */
.eko4-post .post-meta { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.eko4-post .post-meta li { font-size: 13px; line-height: 20px; color: #6c8d7d; margin: 0; display: inline-block; }
.eko4-post .post-date, .eko4-post .post-format, .eko4-post .author, .eko4-post .blog-post-meta img { display: none; }

@media (max-width: 991px) {
	.eko4-blog-router { grid-template-columns: 1fr; }
	.eko4-blog-card { grid-template-columns: minmax(0, 1fr); }
	.eko4-blog-card-img img { min-height: 0; max-height: 260px; }
}
@media (max-width: 767px) {
	.eko4-blog-head, .eko4-post-head { padding: 116px 22px 38px; }
	.eko4-blog-head h1, .eko4-post-head h1 { font-size: 30px; line-height: 40px; }
	.eko4-blog-card-body { padding: 20px 22px 18px; }
	.eko4-blog-card h2 { font-size: 20px; line-height: 29px; }
	.eko4-post p, .eko4-post li { font-size: 16px; line-height: 28px; }
	.eko4-post h2 { font-size: 22px; line-height: 31px; }
	.eko4-post-back a { width: 100%; }
}
