/* ============================================================
   27-updates.css — the Updates listing and a single update
   ------------------------------------------------------------
   /updates/ was Avada's stock blog element: a raw thumbnail, a
   36px cyan title and a truncated excerpt on bare background.
   It read as a default theme page beside the rest of the site.

   Scoped to `.fusion-blog-shortcode` rather than to the page,
   so the same treatment follows the blog element wherever it is
   used next, and to `.single-post` for the article itself.
   ============================================================ */

/* ---- the listing ---------------------------------------------------- */

.fusion-blog-shortcode .fusion-posts-container {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin-top: 26px;
}

.fusion-blog-shortcode article.post {
	display: grid;
	grid-template-columns: 260px minmax(0, 1fr);
	align-items: stretch;
	gap: 0;
	overflow: hidden;
	background: var(--awb-color7);
	border: 1px solid var(--awb-color3);
	border-radius: var(--fb-radius);
	transition: border-color .18s ease, transform .18s ease;
}
.fusion-blog-shortcode article.post:hover {
	border-color: var(--awb-color5);
}

/* Artwork. Avada emits it inside a flexslider even for one image, with an
   inline width/height on the <img>; both are overridden so the art fills
   its cell instead of floating at its upload size. */
/* ⚠ Avada sizes this slider to the `blog-medium` image, a fixed 320px wide.
   Inside a 260px grid column that is a 60px overhang, and the slides carry
   `z-index: 2`, so the image painted OVER the start of every line of text --
   "Welcome" rendered as "lcome", "The site has moved" as "site has moved".

   Setting height alone was not enough; the width has to be pinned to the
   column too, and the stacking order reset so nothing can cover the copy.
   Found from Ricky's screenshot: an element-box check passed because the
   text box was correctly placed -- it was being overdrawn, not displaced. */
.fusion-blog-shortcode .fusion-post-slideshow,
.fusion-blog-shortcode .fusion-flexslider,
.fusion-blog-shortcode .fusion-flexslider .slides,
.fusion-blog-shortcode .fusion-flexslider .slides > li {
	width: 100% !important;
	max-width: 100% !important;
	height: 100%;
	margin: 0;
	border: 0;
	border-radius: 0;
	float: none !important;
	position: relative;
	z-index: 0;
}
.fusion-blog-shortcode .fusion-post-content {
	position: relative;
	z-index: 1;
}
.fusion-blog-shortcode .fusion-image-wrapper {
	width: 100% !important;
	max-width: 100% !important;
	height: 100%;
}
.fusion-blog-shortcode .fusion-image-wrapper img {
	width: 100% !important;
	height: 100% !important;
	min-height: 168px;
	object-fit: cover;
	display: block;
	border-radius: 0 !important;
	border-right: 1px solid var(--awb-color3);
}

.fusion-blog-shortcode .fusion-post-content {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 8px;
	padding: 22px 26px;
}

/* 36px for a listing entry is a page title, not an item title. */
.fusion-blog-shortcode .blog-shortcode-post-title,
.fusion-blog-shortcode .entry-title {
	margin: 0;
	font-size: 1.35rem !important;
	line-height: 1.3 !important;
}
.fusion-blog-shortcode .blog-shortcode-post-title a,
.fusion-blog-shortcode .entry-title a {
	color: var(--fb-text) !important;
	text-decoration: none;
}
.fusion-blog-shortcode article.post:hover .entry-title a {
	color: var(--awb-color5) !important;
}

.fusion-blog-shortcode .fusion-post-content-container p {
	margin: 0;
	color: var(--awb-color6);
	font-size: .95rem;
	line-height: 1.6;
}

/* Avada's "[...]" excerpt tail is not a link and reads as a glitch; the
   whole card is clickable, so a plain em-dash of truncation is enough. */
.fusion-blog-shortcode .fusion-read-more {
	align-self: flex-start;
	margin-top: 4px;
	color: var(--awb-color5) !important;
	font-size: .85rem;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
	text-decoration: none;
}

@media (max-width: 680px) {
	.fusion-blog-shortcode article.post {
		grid-template-columns: 1fr;
	}
	.fusion-blog-shortcode .fusion-image-wrapper img {
		min-height: 150px;
		max-height: 200px;
		border-right: 0;
		border-bottom: 1px solid var(--awb-color3);
	}
	.fusion-blog-shortcode .fusion-post-content {
		padding: 18px 20px;
	}
}

/* ---- a single update ------------------------------------------------ */

.single-post .post-content > p,
.single-post .post-content > ul,
.single-post .post-content > ol {
	max-width: 68ch;
	font-size: 1.02rem;
	line-height: 1.75;
}
.single-post .post-content > h2,
.single-post .post-content > h3 {
	margin-top: 1.6em;
}
.single-post .post-content img {
	border-radius: var(--fb-radius);
}
