body.nmg-theme:not(.nmg-game-home):is(.blog, .category, .tag, .date, .author, .search) .site-main {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(16px, 1.8vw, 24px);
}

body.nmg-theme:not(.nmg-game-home):is(.blog, .category, .tag, .date, .author, .search) .site-main > .page-header,
body.nmg-theme:not(.nmg-game-home):is(.blog, .category, .tag, .date, .author, .search) .site-main > .nmg-breadcrumbs-wrap,
body.nmg-theme:not(.nmg-game-home):is(.blog, .category, .tag, .date, .author, .search) .site-main > .paging-navigation,
body.nmg-theme:not(.nmg-game-home):is(.blog, .category, .tag, .date, .author, .search) .site-main > .pagination,
body.nmg-theme:not(.nmg-game-home):is(.blog, .category, .tag, .date, .author, .search) .site-main > .no-results { grid-column: 1 / -1; }

body.nmg-theme:not(.nmg-game-home):is(.blog, .category, .tag, .date, .author, .search) .site-main > article {
	overflow: hidden;
	margin: 0;
	border: 1px solid var(--nmg-border);
	border-radius: var(--nmg-radius-lg);
	background: var(--nmg-surface);
	box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
	transition: transform var(--nmg-transition), border-color var(--nmg-transition), background-color var(--nmg-transition);
}

body.nmg-theme:not(.nmg-game-home):is(.blog, .category, .tag, .date, .author, .search) .site-main > article:hover {
	border-color: var(--nmg-border-strong);
	background: var(--nmg-surface-2);
	transform: translateY(-2px);
}

body.nmg-theme:not(.nmg-game-home):is(.blog, .category, .tag, .date, .author, .search) article .inside-article {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 0 18px 20px;
}

body.nmg-theme:not(.nmg-game-home):is(.blog, .category, .tag, .date, .author, .search) article .post-image {
	order: -1;
	margin: 0 -18px 18px;
}

body.nmg-theme:not(.nmg-game-home):is(.blog, .category, .tag, .date, .author, .search) article .post-image img {
	display: block;
	width: 100%;
	aspect-ratio: 40 / 21;
	object-fit: cover;
	background: var(--nmg-surface-2);
}

body.nmg-theme:not(.nmg-game-home):is(.blog, .category, .tag, .date, .author, .search) article .entry-title {
	display: -webkit-box;
	overflow: hidden;
	font-size: clamp(1rem, 1.25vw, 1.2rem);
	line-height: 1.3;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

body.nmg-theme:not(.nmg-game-home):is(.blog, .category, .tag, .date, .author, .search) article .entry-title a { color: var(--nmg-text); text-decoration: none; }
body.nmg-theme .entry-meta { color: var(--nmg-muted); font-size: .8rem; }
body.nmg-theme:not(.nmg-game-home):is(.blog, .category, .tag, .date, .author, .search) article .entry-summary { color: var(--nmg-text-soft); font-size: .9rem; }

body.nmg-theme.single-post .site-main,
body.nmg-theme.page:not(.nmg-game-view) .site-main { max-width: var(--nmg-reading); margin-inline: auto; }


/* Static WordPress pages always use a centered, sidebar-free reading layout. */
body.nmg-theme.page:not(.nmg-game-view) .site-content { display: block; }
body.nmg-theme.page:not(.nmg-game-view) .content-area { width: 100%; }
body.nmg-theme.page:not(.nmg-game-view) .widget-area { display: none !important; }
body.nmg-theme.page:not(.nmg-game-view) .entry-header { margin-bottom: clamp(22px, 3vw, 34px); }
body.nmg-theme.page:not(.nmg-game-view) .entry-title { margin: 0; font-size: clamp(2rem, 5vw, 3rem); }
body.nmg-theme.page:not(.nmg-game-view) .entry-content { overflow-wrap: anywhere; color: var(--nmg-text-soft); }
body.nmg-theme.page:not(.nmg-game-view) .entry-content h2 {
	margin: clamp(34px, 5vw, 52px) 0 14px;
	padding-top: 2px;
	font-size: clamp(1.28rem, 3vw, 1.72rem);
}
body.nmg-theme.page:not(.nmg-game-view) .entry-content h3 { margin: 30px 0 12px; }
body.nmg-theme.page:not(.nmg-game-view) .entry-content p,
body.nmg-theme.page:not(.nmg-game-view) .entry-content ul,
body.nmg-theme.page:not(.nmg-game-view) .entry-content ol { margin-bottom: 1.15rem; }
body.nmg-theme.page:not(.nmg-game-view) .entry-content ul,
body.nmg-theme.page:not(.nmg-game-view) .entry-content ol { padding-left: 1.35rem; }
body.nmg-theme.page:not(.nmg-game-view) .entry-content li { padding-left: .2rem; }
body.nmg-theme.page:not(.nmg-game-view) .entry-content li + li { margin-top: .45rem; }
body.nmg-theme.page:not(.nmg-game-view) .entry-content strong { color: var(--nmg-text); }
body.nmg-theme.page:not(.nmg-game-view) .entry-content em { color: var(--nmg-muted); }
body.nmg-theme.page:not(.nmg-game-view) .entry-content hr { margin: 36px 0; border: 0; border-top: 1px solid var(--nmg-border); }

body.nmg-theme.single-post .inside-article,
body.nmg-theme.page:not(.nmg-game-view) .inside-article {
	border: 1px solid var(--nmg-border);
	border-radius: var(--nmg-radius-lg);
	background: var(--nmg-surface);
	padding: clamp(22px, 4vw, 48px);
}

body.nmg-theme.single-post .featured-image img,
body.nmg-theme.page:not(.nmg-game-view) .featured-image img {
	width: 100%;
	aspect-ratio: 40 / 21;
	object-fit: cover;
	border-radius: var(--nmg-radius);
}

body.nmg-theme .nmg-related-posts { margin-top: 36px; }
body.nmg-theme .nmg-related-posts__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

@media (max-width: 1180px) {
	body.nmg-theme:not(.nmg-game-home):is(.blog, .category, .tag, .date, .author, .search) .site-main { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
	body.nmg-theme:not(.nmg-game-home):is(.blog, .category, .tag, .date, .author, .search) .site-main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
	body.nmg-theme:not(.nmg-game-home):is(.blog, .category, .tag, .date, .author, .search) .site-main { grid-template-columns: 1fr; }
	body.nmg-theme .nmg-related-posts__grid { grid-template-columns: 1fr; }
}

body.nmg-theme .nmg-related-post-card {
	overflow: hidden;
	border: 1px solid var(--nmg-border);
	border-radius: var(--nmg-radius);
	background: var(--nmg-surface);
}
body.nmg-theme .nmg-related-post-card__media { display: block; aspect-ratio: 40 / 21; background: var(--nmg-surface-2); }
body.nmg-theme .nmg-related-post-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
body.nmg-theme .nmg-related-post-card__placeholder { display: grid; place-items: center; width: 100%; height: 100%; color: var(--nmg-muted); font-weight: 800; }
body.nmg-theme .nmg-related-post-card__body { padding: 14px; }
body.nmg-theme .nmg-related-post-card h3 { margin: 0 0 7px; font-size: 1rem; }
body.nmg-theme .nmg-related-post-card h3 a { color: var(--nmg-text); text-decoration: none; }
body.nmg-theme .nmg-related-post-card time { color: var(--nmg-muted); font-size: .78rem; }
