/* === Electric Future — Grid Layout v2 === */
/* ── Outer magazine grid ── */
.home .site-main,
.blog .site-main {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3px;
	background: #060d1a;
	padding: 3px 3px 0;
}

/* Featured post: full width */
.home .site-main > article:first-child,
.blog .site-main > article:first-child {
	grid-column: 1 / -1;
}

/* Pagination nav: full width */
.home .site-main > .navigation,
.blog .site-main > .navigation {
	grid-column: 1 / -1;
	background: #0a1628;
	padding: 1.5rem 2rem;
}

/* ── Card base ── */
.home .site-main > article,
.blog .site-main > article {
	background: #0a1628;
	overflow: hidden;
	margin: 0;
	display: flex;
	flex-direction: column;
	border-top: 2px solid rgba(14,165,233,0.15);
}

.home .site-main > article:first-child,
.blog .site-main > article:first-child {
	border-top: 3px solid #0ea5e9;
}

/* ── IMAGE TO TOP: pull thumbnail above header ── */
.home .site-main > article .post-thumbnail,
.blog .site-main > article .post-thumbnail {
	order: -1;
	margin: 0;
	overflow: hidden;
	flex-shrink: 0;
	line-height: 0;
}

.home .site-main > article .post-thumbnail img,
.blog .site-main > article .post-thumbnail img {
	width: 100%;
	height: 240px;
	object-fit: cover;
	display: block;
	transition: transform .4s ease;
}

/* Featured hero: taller image */
.home .site-main > article:first-child .post-thumbnail img,
.blog .site-main > article:first-child .post-thumbnail img {
	height: 480px;
}

article:hover .post-thumbnail img {
	transform: scale(1.04);
}

/* ── Title: 3-line clamp for uniform card height ── */
.home .site-main > article .entry-header,
.blog .site-main > article .entry-header {
	padding: 1.1rem 1.3rem .4rem !important;
	max-width: 100% !important;
	flex-shrink: 0;
	min-height: 5.5rem;
}

.home .site-main > article .entry-title,
.blog .site-main > article .entry-title {
	font-size: 1.2rem !important;
	line-height: 1.4 !important;
	margin: 0 !important;
	display: -webkit-box;
	overflow: hidden;
}

/* Featured title: bigger, no clamp */
.home .site-main > article:first-child .entry-header,
.blog .site-main > article:first-child .entry-header {
	min-height: 0;
	padding: 1.4rem 1.8rem .6rem !important;
}

.home .site-main > article:first-child .entry-title,
.blog .site-main > article:first-child .entry-title {
	font-size: 2rem !important;
	line-height: 1.2 !important;
	overflow: visible;
	display: block;
}

/* ── Excerpt: 3-line clamp, grows to fill space ── */
.home .site-main > article .entry-content,
.home .site-main > article .entry-summary,
.blog .site-main > article .entry-content,
.blog .site-main > article .entry-summary {
	padding: 0 1.3rem .8rem !important;
	font-size: .88rem !important;
	line-height: 1.6 !important;
	opacity: .75;
	flex: 1;
}

.home .site-main > article .entry-content p,
.home .site-main > article .entry-summary p,
.blog .site-main > article .entry-content p,
.blog .site-main > article .entry-summary p {
	display: -webkit-box;
	overflow: hidden;
	margin: 0;
}

/* ── Meta: pinned to bottom of card ── */
.home .site-main > article .entry-meta,
.blog .site-main > article .entry-meta {
	padding: .5rem 1.3rem !important;
	font-size: .72rem !important;
	opacity: .45;
	letter-spacing: .02em;
	flex-shrink: 0;
	border-top: 1px solid rgba(255,255,255,0.05);
	margin-top: auto;
}

.home .site-main > article .entry-footer,
.blog .site-main > article .entry-footer {
	padding: .3rem 1.3rem .7rem !important;
	font-size: .72rem !important;
	opacity: .4;
	flex-shrink: 0;
}

/* Hide tag clutter on index */
.home .site-main .entry-footer .tags-links,
.blog .site-main .entry-footer .tags-links,
.home .site-main .entry-meta .cat-links,
.blog .site-main .entry-meta .cat-links {
	display: none;
}

/* ── Continue reading link ── */
.home .site-main .more-link,
.blog .site-main .more-link {
	font-size: .78rem;
	opacity: .6;
	letter-spacing: .05em;
	text-transform: uppercase;
}

/* ── Mobile: single column ── */
@media (max-width: 768px) {
	.home .site-main,
	  .blog .site-main {
		grid-template-columns: 1fr;
	}
	
	.home .site-main > article:first-child,
	  .blog .site-main > article:first-child {
		grid-column: 1;
	}
	
	.home .site-main > article .post-thumbnail img,
	  .blog .site-main > article .post-thumbnail img {
		height: 200px;
	}
	
	.home .site-main > article:first-child .post-thumbnail img,
	  .blog .site-main > article:first-child .post-thumbnail img {
		height: 300px;
	}
	
	.home .site-main > article .entry-header,
	  .blog .site-main > article .entry-header {
		min-height: 0;
	}
}

/* ── Lone last article: full width if unpaired ── */
.home .site-main > article:last-of-type:nth-child(even),
.blog .site-main > article:last-of-type:nth-child(even) {
	grid-column: 1 / -1;
}

.home .site-main > article:last-child:nth-child(even) .post-thumbnail img,
.blog .site-main > article:last-child:nth-child(even) .post-thumbnail img {
	height: 360px;
}

.home .site-main > article:last-child:nth-child(even) .entry-title,
.blog .site-main > article:last-child:nth-child(even) .entry-title {
	font-size: 1.6rem !important;
}