/* Approved Gamesport article layout. Scoped to single posts so the homepage,
   categories, menus and archive pages keep their current design. */
body.single-post {
	--gs-article-ink: #10194d;
	--gs-article-muted: #52618a;
	--gs-article-blue: #2145ee;
	--gs-article-line: #d6e3fb;
	color: var(--gs-article-ink);
	background: #fff;
}

body.single-post #main.site-main .site-shell {
	width: min(1260px, calc(100% - 48px));
	max-width: none;
	margin: 0 auto;
}

body.single-post .article-page,
body.single-post .article-layout,
body.single-post .article-main {
	width: 100%;
	max-width: none;
	min-width: 0;
}

body.single-post .article-header {
	width: min(100%, 1040px);
	max-width: 1040px;
	margin: clamp(26px, 4vw, 48px) auto 20px;
}

body.single-post .article-header h1 {
	max-width: 100%;
	margin: 12px 0 10px;
	color: var(--gs-article-ink);
	font-size: clamp(38px, 5vw, 62px);
	font-weight: 900;
	line-height: 1.02;
	letter-spacing: -.04em;
}

body.single-post .article-header .article-deck {
	max-width: 950px;
	margin: 0 0 18px;
	color: #465477;
	font-size: clamp(17px, 1.7vw, 22px);
	line-height: 1.45;
}

body.single-post .article-header .article-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px 16px;
	color: #52618a;
}

body.single-post .article-layout {
	display: block !important;
}

body.single-post .article-sidebar {
	display: none !important;
}

body.single-post .article-hero {
	width: 100%;
	max-width: 1180px;
	margin: 0 auto 25px;
	overflow: hidden;
	border: 1px solid #dce6f8;
	border-radius: 20px;
	background: #eef4ff;
	box-shadow: 0 12px 34px rgba(20, 43, 105, .12);
}

body.single-post .article-hero img {
	display: block;
	width: 100%;
	height: clamp(340px, 49vw, 650px);
	max-height: 650px;
	object-fit: cover;
	object-position: center;
	cursor: zoom-in;
}

body.single-post .article-body {
	width: min(100%, 900px);
	max-width: 900px;
	margin: 0 auto;
	color: #202b4b;
	font-size: clamp(17px, 1.45vw, 19px);
	line-height: 1.75;
}

body.single-post .article-body p {
	margin: 0 0 1.2em;
}

body.single-post .article-body h2 {
	margin: 1.8em 0 .6em;
	padding-left: 14px;
	border-left: 5px solid var(--gs-article-blue);
	color: var(--gs-article-ink);
	font-size: clamp(25px, 2.8vw, 34px);
	font-weight: 900;
	line-height: 1.16;
}

body.single-post .article-body h3 {
	margin: 1.6em 0 .5em;
	color: var(--gs-article-ink);
	font-size: clamp(21px, 2.2vw, 27px);
	font-weight: 850;
	line-height: 1.2;
}

body.single-post .article-body figure,
body.single-post .article-body .wp-block-image {
	margin: 28px 0;
}

body.single-post .article-body figure img,
body.single-post .article-body .wp-block-image img {
	max-width: 100%;
	height: auto;
	border: 1px solid var(--gs-article-line);
	border-radius: 14px;
	box-shadow: 0 8px 22px rgba(20, 43, 105, .1);
	cursor: zoom-in;
}

body.single-post .article-body figcaption {
	margin-top: 8px;
	color: #667293;
	font-size: 14px;
}

/* No generic banner placements in this approved article layout. */
body.single-post .article-sidebar .paid-ad,
body.single-post .article-body .paid-ad {
	display: none !important;
}

.gs-article-buy {
	position: relative;
	display: grid;
	grid-template-columns: minmax(220px, 1fr) minmax(210px, 270px) 154px;
	align-items: center;
	gap: 24px;
	width: min(100%, 1180px);
	min-height: 154px;
	box-sizing: border-box;
	margin: 18px auto 24px;
	padding: 22px 28px;
	border: 1px solid #bed3ff;
	border-radius: 20px;
	background: linear-gradient(110deg, #eff5ff 0%, #e0ebff 100%);
	box-shadow: 0 10px 26px rgba(31, 70, 173, .11);
}

.gs-article-buy__prompt {
	display: flex;
	align-items: center;
	gap: 16px;
	min-width: 0;
}

.gs-article-buy__icon {
	display: grid;
	flex: 0 0 58px;
	width: 58px;
	height: 58px;
	place-items: center;
	border-radius: 14px;
	background: #d6e5ff;
	color: var(--gs-article-blue);
	font-size: 29px;
}

.gs-article-buy__title {
	margin: 0;
	color: var(--gs-article-ink);
	font-size: clamp(19px, 2.1vw, 26px);
	font-weight: 900;
	line-height: 1.2;
}

.gs-article-buy__game {
	display: block;
	margin-top: 5px;
	color: var(--gs-article-muted);
	font-size: 14px;
	line-height: 1.35;
}

.gs-article-buy__action {
	text-align: center;
}

.gs-article-buy__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	min-height: 58px;
	box-sizing: border-box;
	padding: 12px 18px;
	border: 0;
	border-radius: 14px;
	background: var(--gs-article-blue);
	box-shadow: 0 8px 18px rgba(33, 69, 238, .2);
	color: #fff !important;
	font-size: 17px;
	font-weight: 900;
	line-height: 1.15;
	text-decoration: none !important;
	transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.gs-article-buy__button:hover,
.gs-article-buy__button:focus-visible {
	transform: translateY(-2px);
	background: #123bd7;
	box-shadow: 0 12px 24px rgba(33, 69, 238, .28);
}

.gs-article-buy__disclosure {
	display: block;
	margin-top: 7px;
	color: #5d6b90;
	font-size: 12px;
	line-height: 1.3;
}

.gs-game-box {
	position: relative;
	display: block;
	width: 142px;
	height: 188px;
	justify-self: end;
	perspective: 900px;
	text-decoration: none !important;
}

.gs-game-box__model {
	position: absolute;
	inset: 0 8px 0 0;
	transform: rotateY(-16deg) rotateX(1deg);
	transform-style: preserve-3d;
	transition: transform .35s cubic-bezier(.2,.75,.25,1), filter .35s ease;
}

.gs-game-box:hover .gs-game-box__model,
.gs-game-box:focus-visible .gs-game-box__model {
	transform: rotateY(-25deg) rotateX(2deg) translateY(-5px) scale(1.035);
	filter: drop-shadow(0 16px 15px rgba(16, 25, 77, .24));
}

.gs-game-box__front {
	position: absolute;
	inset: 0 0 0 13px;
	overflow: hidden;
	border: 1px solid rgba(255,255,255,.75);
	border-radius: 3px 9px 9px 3px;
	background: linear-gradient(145deg, #dce9ff, #9cbaff);
	box-shadow: inset 2px 0 2px rgba(255,255,255,.35), 9px 10px 18px rgba(19,36,92,.2);
	transform: translateZ(10px);
}

.gs-game-box__cover {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.gs-game-box__front::after {
	position: absolute;
	inset: 0;
	background: linear-gradient(115deg, rgba(255,255,255,.22), transparent 31%, transparent 74%, rgba(13,35,110,.22));
	content: "";
	pointer-events: none;
}

.gs-game-box__title {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	display: -webkit-box;
	max-height: 50px;
	padding: 20px 8px 8px;
	overflow: hidden;
	background: linear-gradient(transparent, rgba(5, 15, 53, .88));
	color: #fff;
	font-size: 12px;
	font-weight: 900;
	line-height: 1.2;
	text-shadow: 0 1px 4px rgba(0,0,0,.6);
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.gs-game-box__spine {
	position: absolute;
	top: 2px;
	bottom: 2px;
	left: 0;
	width: 14px;
	border-radius: 3px 0 0 3px;
	background: linear-gradient(90deg, #17265f, #4268d9 55%, #192968);
	box-shadow: inset 2px 0 3px rgba(255,255,255,.25);
	transform: rotateY(-90deg) translateZ(3px);
	transform-origin: left center;
}

.gs-gallery-trigger {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: -10px 0 26px;
	padding: 9px 14px;
	border: 1px solid #bed3ff;
	border-radius: 999px;
	background: #eff5ff;
	color: var(--gs-article-blue);
	font: inherit;
	font-size: 14px;
	font-weight: 800;
	cursor: pointer;
}

.gs-gallery-trigger:hover,
.gs-gallery-trigger:focus-visible {
	background: #dce9ff;
}

.gs-article-lightbox {
	width: min(94vw, 1200px);
	max-width: none;
	max-height: 92vh;
	box-sizing: border-box;
	padding: 50px 66px 28px;
	border: 1px solid #d5e3ff;
	border-radius: 18px;
	background: #0c1435;
	color: #fff;
	box-shadow: 0 24px 80px rgba(0,0,0,.45);
}

.gs-article-lightbox::backdrop {
	background: rgba(6, 13, 37, .82);
	backdrop-filter: blur(4px);
}

.gs-article-lightbox__image {
	display: block;
	width: 100%;
	max-height: calc(92vh - 116px);
	margin: 0 auto;
	object-fit: contain;
}

.gs-article-lightbox__caption {
	margin: 12px 0 0;
	color: #dce6ff;
	font-size: 14px;
	text-align: center;
}

.gs-article-lightbox__button {
	position: absolute;
	display: grid;
	width: 42px;
	height: 42px;
	place-items: center;
	border: 1px solid rgba(255,255,255,.25);
	border-radius: 50%;
	background: rgba(255,255,255,.12);
	color: #fff;
	font: inherit;
	font-size: 24px;
	cursor: pointer;
}

.gs-article-lightbox__button:hover,
.gs-article-lightbox__button:focus-visible {
	background: rgba(255,255,255,.24);
}

.gs-article-lightbox__close { top: 12px; right: 12px; }
.gs-article-lightbox__prev { top: 50%; left: 12px; transform: translateY(-50%); }
.gs-article-lightbox__next { top: 50%; right: 12px; transform: translateY(-50%); }

body.single-post .comments-area {
	width: min(100%, 960px);
	max-width: 960px;
	box-sizing: border-box;
	margin: clamp(38px, 6vw, 68px) auto 30px;
	padding: clamp(20px, 3.2vw, 34px);
	border: 1px solid #cbdcff;
	border-radius: 20px;
	background: linear-gradient(135deg, #f8fbff, #eef4ff);
	box-shadow: 0 8px 24px rgba(20, 43, 105, .06);
}

body.single-post .comments-area > h2,
body.single-post .comments-area #reply-title {
	color: var(--gs-article-ink);
	font-size: clamp(23px, 2.7vw, 31px);
	font-weight: 900;
}

body.single-post .comments-area textarea,
body.single-post .comments-area input[type="text"],
body.single-post .comments-area input[type="email"],
body.single-post .comments-area input[type="url"] {
	width: 100%;
	min-height: 48px;
	box-sizing: border-box;
	border: 1px solid #bfd0f2;
	border-radius: 10px;
	background: #fff;
	color: var(--gs-article-ink);
	font: inherit;
}

body.single-post .comments-area textarea {
	min-height: 130px;
	padding: 12px 14px;
}

body.single-post .comments-area input[type="submit"] {
	min-height: 48px;
	padding: 10px 22px;
	border: 0;
	border-radius: 10px;
	background: var(--gs-article-blue);
	color: #fff;
	font: inherit;
	font-weight: 850;
	cursor: pointer;
}

@media (max-width: 760px) {
	body.single-post #main.site-main .site-shell {
		width: min(100% - 28px, 680px);
	}

	body.single-post .article-header {
		margin-top: 24px;
	}

	body.single-post .article-header h1 {
		font-size: clamp(34px, 9vw, 48px);
	}

	body.single-post .article-hero {
		margin-bottom: 20px;
		border-radius: 15px;
	}

	body.single-post .article-hero img {
		height: auto;
		aspect-ratio: 16 / 9;
	}

	.gs-article-buy {
		grid-template-columns: minmax(0, 1fr) 112px;
		gap: 12px 14px;
		min-height: 0;
		margin-top: 16px;
		padding: 18px;
		border-radius: 17px;
	}

	.gs-article-buy__prompt {
		grid-column: 1;
		gap: 11px;
	}

	.gs-article-buy__icon {
		flex-basis: 46px;
		width: 46px;
		height: 46px;
		border-radius: 12px;
		font-size: 23px;
	}

	.gs-article-buy__title {
		font-size: clamp(17px, 4.8vw, 21px);
	}

	.gs-article-buy__game {
		font-size: 12px;
	}

	.gs-article-buy__action {
		grid-column: 1;
		grid-row: 2;
	}

	.gs-article-buy__button {
		min-height: 48px;
		padding: 10px 12px;
		font-size: 14px;
	}

	.gs-article-buy__disclosure {
		font-size: 11px;
	}

	.gs-game-box {
		grid-column: 2;
		grid-row: 1 / span 3;
		width: 102px;
		height: 140px;
		align-self: center;
	}

	.gs-article-lightbox {
		width: 96vw;
		padding: 48px 46px 20px;
		border-radius: 14px;
	}

	.gs-article-lightbox__button {
		width: 36px;
		height: 36px;
	}

	body.single-post .comments-area {
		padding: 20px 16px;
		border-radius: 16px;
	}
}

@media (max-width: 420px) {
	.gs-article-buy {
		grid-template-columns: minmax(0, 1fr) 88px;
		padding: 14px;
	}

	.gs-game-box {
		width: 84px;
		height: 118px;
	}

	.gs-article-buy__icon {
		flex-basis: 40px;
		width: 40px;
		height: 40px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.gs-game-box__model,
	.gs-article-buy__button {
		transition: none;
	}

	.gs-game-box:hover .gs-game-box__model,
	.gs-game-box:focus-visible .gs-game-box__model,
	.gs-article-buy__button:hover,
	.gs-article-buy__button:focus-visible {
		transform: none;
	}
}
