/* Blog + single-post styling (ported from WebWave, adapted to Hotsmoke theme tokens). */

body.blog .site-main,
body.hotsmoke-post-archive .site-main,
body.home--news .site-main {
	padding-top: 100px;
	padding-bottom: 60px;
}

/* Hide the generic blog page title (we show each post title in cards). */
body.blog .page-title,
body.home--news .page-title {
	display: none;
}

/* --------------------------------------------------------------------------
   Blog card layout baseline (we don't rely on Bootstrap here).
   -------------------------------------------------------------------------- */
body.blog #primary > .row,
body.hotsmoke-post-archive #primary > .row {
	display: flex;
	flex-wrap: wrap;
	gap: 30px;
	position: relative;
}

body.hotsmoke-post-archive #primary > header.page-header,
body.hotsmoke-post-archive #primary > nav.posts-navigation,
body.hotsmoke-post-archive #primary > nav.navigation {
	width: 100%;
	flex: 0 0 100%;
	max-width: 100%;
}

body.blog .col-12,
body.blog .co-md-4,
body.blog .col-lg-3,
body.hotsmoke-post-archive .col-12,
body.hotsmoke-post-archive .co-md-4,
body.hotsmoke-post-archive .col-lg-3 {
	flex: 0 0 100%;
	max-width: 100%;
}

@media (min-width: 768px) {
	body.blog .co-md-4 {
		/* Fit 3 cards per row (gap is 30px => 2 gaps). */
		flex: 0 0 calc((100% - 60px) / 3);
		max-width: calc((100% - 60px) / 3);
	}

	body.hotsmoke-post-archive .co-md-4 {
		/* Fit 3 cards per row (gap is 30px => 2 gaps). */
		flex: 0 0 calc((100% - 60px) / 3);
		max-width: calc((100% - 60px) / 3);
	}
}

@media (min-width: 992px) {
	body.blog .col-lg-3 {
		/* Fit 4 cards per row (account for .row gap: 30px * 3). */
		flex: 0 0 calc((100% - 90px) / 4);
		max-width: calc((100% - 90px) / 4);
	}

	body.hotsmoke-post-archive .col-lg-3 {
		/* Fit 4 cards per row (account for .row gap: 30px * 3). */
		flex: 0 0 calc((100% - 90px) / 4);
		max-width: calc((100% - 90px) / 4);
	}
}

/* Hide edit link in card meta line. */
body.blog .edit-link,
body.hotsmoke-post-archive .edit-link {
	display: none;
}

/* --------------------------------------------------------------------------
   Blog cards (listing / archive)
   -------------------------------------------------------------------------- */
body.blog .post-thumbnail img,
body.hotsmoke-post-archive .post-thumbnail img {
	border-radius: 10px;
	margin-bottom: 10px;
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
}

body.blog .entry-content,
body.hotsmoke-post-archive .entry-content {
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 3; /* number of lines to show */
	line-clamp: 3;
	-webkit-box-orient: vertical;
	margin-top: 0;
	font-size: 12px;
}

body.blog .entry-content p,
body.hotsmoke-post-archive .entry-content p {
	margin: 0;
	color: #2B2B2B;
	font-weight: 300;
}

body.blog .post-meta,
body.hotsmoke-post-archive .post-meta {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	margin-bottom: 10px;
	white-space: nowrap;
}

body.blog .entry-header,
body.hotsmoke-post-archive .entry-header {
	margin-top: 5px;
}

body.blog .post-meta .cat-links,
body.blog .post-meta .tags-links,
body.blog .post-meta .comments-link,
body.blog .post-meta .posted-on,
body.blog .post-meta .byline,
body.hotsmoke-post-archive .post-meta .cat-links,
body.hotsmoke-post-archive .post-meta .tags-links,
body.hotsmoke-post-archive .post-meta .comments-link,
body.hotsmoke-post-archive .post-meta .posted-on,
body.hotsmoke-post-archive .post-meta .byline {
	font-size: 14px;
	letter-spacing: 2.1px;
	color: #BCBCBC;
}

/* Keep listing meta compact: category + posted date(s) only. */
body.blog .post-meta .byline,
body.hotsmoke-post-archive .post-meta .byline {
	display: none;
}

/* Hide "Posted in" and "Posted on" prefixes, leaving only category title + date. */
body.blog .post-meta .cat-links,
body.hotsmoke-post-archive .post-meta .cat-links,
body.blog .post-meta .posted-on,
body.hotsmoke-post-archive .post-meta .posted-on {
	font-size: 0;
}

body.blog .post-meta .cat-links a,
body.blog .post-meta .posted-on a,
body.hotsmoke-post-archive .post-meta .cat-links a,
body.hotsmoke-post-archive .post-meta .posted-on a {
	font-size: 14px;
	letter-spacing: 2.1px;
	color: #BCBCBC;
	white-space: nowrap;
}

/* Listing meta: show only the published date. */
body.blog .post-meta time.updated,
body.hotsmoke-post-archive .post-meta time.updated {
	display: none;
}

body.blog .entry-title,
body.hotsmoke-post-archive .entry-title {
	font-size: 22px;
	font-weight: 500;
	letter-spacing: 0;
	line-height: 1.2;
	margin-top: 5px;
	margin-bottom: 10px;
}

body.blog .entry-footer,
body.hotsmoke-post-archive .entry-footer {
	margin-top: 20px;
	text-align: left;
}

body.blog .action-buttons,
body.hotsmoke-post-archive .action-buttons {
	margin-top: 30px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

body.blog .action-buttons .time,
body.hotsmoke-post-archive .action-buttons .time {
	font-weight: 400;
	font-size: 14px;
	border: 1px solid #BCBCBC;
	color: var(--color-white);
	background: #BCBCBC;
	border-radius: 10px;
	padding: 10px;
	letter-spacing: 2.1px;
	display: flex;
	align-items: center;
	width: fit-content;
	transition: all ease-in-out 0.3s;
}

body.blog .action-buttons a,
body.hotsmoke-post-archive .action-buttons a {
	outline: none;
	background-color: transparent;
	font-weight: 400;
	font-size: 14px;
	border: 1px solid #BCBCBC;
	border-radius: 10px;
	padding: 10px;
	color: #BCBCBC;
	letter-spacing: 2.1px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	transition: all ease-in-out 0.3s;
	position: relative;
}

body.blog .action-buttons a:after,
body.hotsmoke-post-archive .action-buttons a:after {
	content: '';
	height: 1px;
	width: 30px;
	background-color: #BCBCBC;
	margin-left: 20px;
	display: block;
	transition: all ease-in-out 0.3s;
}

body.blog .action-buttons a:hover,
body.hotsmoke-post-archive .action-buttons a:hover {
	background-color: #BCBCBC;
	color: var(--color-white);
	font-weight: 500;
}

body.blog .action-buttons a:hover:after,
body.hotsmoke-post-archive .action-buttons a:hover:after {
	background-color: var(--color-white);
}

/* Featured card (1st item on desktop): full-width + image emphasis. */
body.blog #primary > .row > article:nth-child(1),
body.hotsmoke-post-archive #primary > .row > article:nth-child(1) {
	flex: 0 0 100%;
	max-width: 100%;
	display: flex;
	flex-direction: row-reverse;
	gap: 35px;
	justify-content: space-between;
	align-items: center;
}
body.blog #primary > .row > article:nth-child(1) .action-buttons a,
body.hotsmoke-post-archive #primary > .row > article:nth-child(1) .action-buttons a {
	max-width:150px;
}
body.blog #primary > .row > article:nth-child(1) .post-meta,
body.hotsmoke-post-archive #primary > .row > article:nth-child(1) .post-meta {
	justify-content: space-between;
}

body.blog #primary > .row > article:nth-child(1) .entry-content,
body.hotsmoke-post-archive #primary > .row > article:nth-child(1) .entry-content {
	font-size: 12px;
}

body.blog #primary > .row > article:nth-child(1) .post-thumbnail,
body.hotsmoke-post-archive #primary > .row > article:nth-child(1) .post-thumbnail {
	flex: 0 0 50%;
	max-width: 50%;
	max-width: 50%;
}

body.blog #primary > .row > article:nth-child(1) .post-thumbnail img,
body.hotsmoke-post-archive #primary > .row > article:nth-child(1) .post-thumbnail img {
	border-radius: 15px;
	margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Single post
   -------------------------------------------------------------------------- */
body.single-post .site-main {
	padding-top: 0;
	position: relative;
}

body.single-post #primary {
	position: relative;
}

body.single-post .post-navigation {
	display: none;
}

body.single-post .post-thumbnail {
	width: calc(100vw - 15px);
	position: absolute;
	left: 0;
	top: 0;
}

body.single-post .post-thumbnail img {
	width: 100%;
	max-height: 400px;
	object-fit: cover;
}

body.single-post .top-data {
	max-width: 1440px;
	margin: auto;
	padding: 440px 15px 0 15px;
}

body.single-post .top-data .post-meta {
	display: flex;
	justify-content: space-between;
	border-bottom: 1px solid #DADADA;
	padding-bottom: 5px;
	margin-bottom: 30px;
}

body.single-post .top-data .post-meta * {
	font-size: 14px;
	letter-spacing: 2.1px;
	color: #BCBCBC;
}

body.single-post .post-data-wrap {
	display: flex;
	gap: 50px;
	align-items: flex-start;
	max-width: 1440px;
	margin: auto;
	padding: 0 15px 0 15px;
}

body.single-post .entry-header {
	width: 350px;
	position: sticky;
	top: 50px;
}

body.single-post .entry-title {
	letter-spacing: 0;
	font-weight: 500;
	margin-top: 10px;
	margin-bottom: 0;
	font-size: 24px;
	padding-bottom: 40px;
	margin-bottom: 40px;
	border-bottom: 1px solid #DADADA;
}

body.single-post .published-wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-bottom: 40px;
	margin-bottom: 40px;
	border-bottom: 1px solid #DADADA;
}

body.single-post .published-wrap > * {
	margin-bottom: 0;
	color: #939696;
	font: 300 normal normal 16px/19px 'Inter', sans-serif;
}

body.single-post .published-wrap .published-by {
	margin-right: 54px;
	margin-top:0;
}

body.single-post .published-wrap img {
	width: 200px;
}

body.single-post .social-share {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

body.single-post .social-share .socials {
	display: flex;
	gap: 20px;
	align-items: center;
}

body.single-post .social-share .socials img {
	height: 25px;
	width: auto;
}

body.single-post .social-share h3 {
	color: #939696;
	font: 300 normal normal 16px/19px 'Inter', sans-serif;
	letter-spacing: 0;
	margin-bottom: 0;
}

body.single-post .entry-content {
	color: #4E4E4E;
	letter-spacing: 0;
	font: 300 normal normal 15px/25px 'Inter', sans-serif;
	width: calc(100% - 400px);
	margin-top: 0;
}

body.single-post .entry-content img {
	border-radius: 15px;
}

body.single-post .entry-footer {
	margin-top: 50px;
	text-align: center;
}

/* --------------------------------------------------------------------------
   Responsive tweaks (ported from WebWave, simplified)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
	body.single-post #primary,
	body.single-post #secondary {
		width: 100%;
		max-width: 100%;
		float: none;
	}

	body.single-post #secondary {
		margin-top: 30px;
		padding: 0 15px;
	}

	body.single-post .post-data-wrap {
		display: block;
		gap: 0;
	}

	body.single-post .entry-header {
		width: 100%;
		position: static;
		top: auto;
		margin-bottom: 20px;
	}

	body.single-post .entry-content {
		width: 100%;
	}

	body.single-post .entry-title {
		font-size: 20px;
	}

	body.single-post .published-wrap > *,
	body.single-post .social-share h3 {
		font-size: 14px;
	}

	body.single-post .post-thumbnail {
		width: 100vw;
		position: relative;
		left: 0;
	}

	body.single-post .top-data {
		padding-top: 20px;
	}

	body.single-post .entry-title,
	body.single-post .published-wrap {
		padding-bottom: 20px;
		margin-bottom: 20px;
	}

	body.blog #primary > .row > article:nth-child(1) {
		flex-direction: column;
		gap: 10px;
		margin-bottom: 50px;
	}

	body.hotsmoke-post-archive #primary > .row > article:nth-child(1) {
		flex-direction: column;
		gap: 10px;
		margin-bottom: 50px;
	}

	body.blog .action-buttons {
		margin-top: 15px;
	}

	body.hotsmoke-post-archive .action-buttons {
		margin-top: 15px;
	}

	body.blog #primary > .row > article:nth-child(1) .post-thumbnail {
		max-width: 100%;
	}

	body.hotsmoke-post-archive #primary > .row > article:nth-child(1) .post-thumbnail {
		max-width: 100%;
	}

	body.blog .action-buttons .time,
	body.blog #primary > .row > article:nth-child(1) .action-buttons a {
		font-size: 12px;
		padding: 5px 10px;
	}

	body.hotsmoke-post-archive .action-buttons .time,
	body.hotsmoke-post-archive #primary > .row > article:nth-child(1) .action-buttons a {
		font-size: 12px;
		padding: 5px 10px;
	}
}

