/* Related posts reuse the blog card without the archive's single-card layout. */
.blog-related {
	margin-top: 1.5rem;
	padding-block: 2rem 3rem;
	border-top: 1px solid var(--color-border);
}

.blog-related > h2 {
	margin: 0 0 1.25rem;
}

.blog-related__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1.5rem;
}

.blog-related .blog-card {
	min-width: 0;
	overflow-wrap: anywhere;
}

.blog-related .blog-card__body { padding: 1.25rem; }
.blog-related .blog-card__title { font-size: clamp(1.25rem, 2vw, 1.5rem); }

@media (min-width: 48rem) {
	.blog-related__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 64rem) {
	.blog-related__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Blog index */

.blog-hero {
	padding: var(--space-4) 0 3rem;
	border-bottom: 1px solid var(--color-border);
}

.blog-hero__inner {
	max-width: 74rem;
}

.blog-hero .game-label {
	margin-bottom: .75rem;
}

.blog-hero h1 {
	margin-top: 0;
	margin-bottom: 1rem;
	font-size: clamp(3rem, 9vw, 5.2rem);
}

.blog-hero__lede {
	max-width: 38rem;
	margin: 0;
	color: var(--color-muted);
	font-size: clamp(1rem, 2vw, 1.15rem);
}

.blog-feed {
	padding-block: 3rem 5rem;
}

.blog-category-nav {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	margin-bottom: 1.5rem;
}

.blog-category-nav a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: .375rem .75rem;
	border: 1px solid var(--color-border);
	border-radius: .6rem;
	background: var(--color-surface);
	color: var(--color-text);
	font-size: .8125rem;
	font-weight: 650;
	text-decoration: none;
}

.blog-category-nav a:hover,
.blog-category-nav a[aria-current="page"] {
	border-color: var(--color-border-purple);
	background: var(--color-primary-soft);
	color: var(--color-secondary);
}

.blog-category-nav a:focus-visible {
	outline: 2px solid var(--color-primary);
	outline-offset: 3px;
}

.blog-grid {
	display: grid;
	gap: 2rem;
}

.blog-card {
	overflow: hidden;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	background:
		linear-gradient(145deg, rgb(255 255 255 / 2%), transparent),
		var(--color-surface);
	box-shadow: var(--shadow-sm);
}

.blog-card__image {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--color-surface);
}

.blog-card__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.blog-card:hover .blog-card__image img {
	transform: scale(1.015);
}

.blog-card__body {
	padding: clamp(1.25rem, 3vw, 2rem);
}

.blog-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: .45rem;
	margin-bottom: .8rem;
	color: var(--color-muted);
	font-size: .76rem;
}

.blog-card__meta a {
	color: var(--color-primary-strong);
	font-weight: 750;
	text-decoration: none;
}

.blog-card__title {
	max-width: 22ch;
	margin-bottom: .9rem;
	font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.blog-card__title a {
	color: var(--color-text);
	text-decoration: none;
}

.blog-card__title a:hover {
	color: #d9cbff;
}

.blog-card__excerpt {
	max-width: 48rem;
	color: var(--color-muted);
}

.blog-card__excerpt p {
	margin-bottom: 1rem;
}

.blog-card__read {
	display: inline-flex;
	gap: .45rem;
	align-items: center;
	color: var(--color-text);
	font-size: .88rem;
	font-weight: 750;
	text-decoration: none;
}

.blog-card__read span {
	color: var(--color-primary-strong);
}

.blog-pagination {
	margin-top: 2.5rem;
}

.blog-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
}

.blog-pagination .page-numbers {
	display: inline-flex;
	min-width: 2.5rem;
	min-height: 2.5rem;
	align-items: center;
	justify-content: center;
	padding: .45rem .8rem;
	border: 1px solid var(--color-border);
	border-radius: .5rem;
	background: var(--color-surface);
	color: var(--color-muted);
	text-decoration: none;
}

.blog-pagination .page-numbers.current,
.blog-pagination a.page-numbers:hover {
	border-color: var(--color-border-purple);
	background: var(--color-primary-soft);
	color: var(--color-text);
}


/* Dynamic author card; image space is reserved before loading. */
.blog-author { margin-top: 2rem; }
.blog-author__card {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
	padding: 1rem;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	background: var(--color-surface);
}
.blog-author__avatar {
	display: block;
	flex: 0 0 68px;
	width: 68px;
	height: 68px;
	border-radius: 50%;
	object-fit: cover;
}
.blog-author__text { min-width: 0; overflow-wrap: anywhere; }
.blog-author h2 { margin: 0 0 .35rem; color: var(--color-muted); font-size: .75rem; line-height: 1.4; letter-spacing: 0; font-weight: 500; }
.blog-author__name { margin: 0; color: var(--color-text); font-size: 1rem; font-weight: 750; line-height: 1.4; }
.blog-author__bio { margin: .5rem 0 0; color: var(--color-muted); font-size: .875rem; line-height: 1.6; }
@media (min-width: 48rem) {
	.blog-author__card { gap: 1.25rem; padding: 1.25rem; }
	.blog-author__avatar { flex-basis: 96px; width: 96px; height: 96px; }
}

/* Single article */

/* Scope widths to article sections, never to the breadcrumb/navigation container. */
.blog-article { --article-reading-width: 50rem; --article-layout-width: var(--article-reading-width); }
.blog-article--wide,
.blog-article--has-sidebar { --article-layout-width: var(--container); }
.blog-article .blog-article__content,
.blog-article .blog-article__figure,
.blog-article .blog-article__heading,
.blog-article .blog-article__hero,
.blog-article .blog-author,
.blog-article .blog-article__footer {
	width: min(100% - var(--page-gutter) * 2, var(--article-layout-width));
	max-width: var(--article-layout-width);
}

.blog-single {
	padding-bottom: 2rem;
}

.blog-article__header {
	padding: 1rem 0 2rem;
}

.blog-article__breadcrumb-wrap {
	margin-bottom: 2rem;
}

.blog-article__heading {
	overflow-wrap: anywhere;
}

.blog-article__header h1 {
	max-width: 17ch;
	margin: 0 0 1.35rem;
	font-size: clamp(2.5rem, 6vw, 4.7rem);
}

.blog-article--wide .blog-article__header:not(.blog-article__hero) h1 { max-width: none; }

.blog-article__meta {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	align-items: center;
	color: var(--color-muted);
	font-size: .85rem;
}

.blog-byline__author {
	min-width: 0;
	overflow-wrap: anywhere;
}

.blog-byline__link,
.blog-article__meta-category {
	color: #bea6ff;
	font-weight: 650;
	text-decoration: underline;
	text-decoration-color: rgb(190 166 255 / 45%);
	text-underline-offset: .18em;
}

.blog-byline__link:hover,
.blog-article__meta-category:hover {
	color: #d4c2ff;
	text-decoration-color: currentColor;
}

.blog-article__figure {
	margin-block: 0 2.75rem;
}

.blog-article__caption {
	margin-top: .65rem;
	color: #a5aab8;
	font-size: .8125rem;
	line-height: 1.5;
	overflow-wrap: anywhere;
}

.blog-article__caption a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: .18em;
}

.blog-article__media {

	aspect-ratio: 16 / 9;
	overflow: hidden;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	background: var(--color-surface);
	box-shadow: var(--shadow-sm);

}

.blog-article__media img {

	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	border: 0;
	border-radius: 0;
	box-shadow: none;

}

.blog-article__content {
	min-width: 0;
	overflow-wrap: anywhere;
	color: #c7cbd5;
	font-size: clamp(1rem, 2vw, 1.08rem);
	line-height: 1.75;
}

.blog-article__content p {
	margin-bottom: 1.35rem;
}

.blog-article__content h2 {
	margin-top: 2.7rem;
	margin-bottom: 1rem;
	color: var(--color-text);
}

.blog-article__content h3 {
	margin-top: 2rem;
	color: var(--color-text);
}

.blog-article__content a:where(:not(.rtps-explore .button)) {
	color: #bea6ff;
}

.blog-article__content strong {
	color: var(--color-text);
}

.blog-article__content img {
	margin: 2rem 0;
	border-radius: var(--radius-md);
}

.blog-article__content blockquote {
	margin: 2rem 0;
	padding: 1rem 1.25rem;
	border-left: 3px solid var(--color-primary);
	background: var(--color-primary-soft);
	color: #d6d1df;
}

.blog-article__footer {
	margin-top: 1rem;
}

.blog-back {
	color: var(--color-muted);
	font-size: .9rem;
	font-weight: 700;
	text-decoration: none;
}

.blog-back:hover {
	color: var(--color-text);
}

.blog-category .blog-hero__inner {
	max-width: 74rem;
}

.blog-category .game-label {
	margin-bottom: .75rem;
}

.blog-category__description p {
	margin: 0;
}

.blog-category__description p + p {
	margin-top: .75rem;
}

@media (min-width: 48rem) {
	.blog-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.blog-grid > .blog-card:first-child:nth-last-child(1) {
		grid-column: 1 / -1;
		display: grid;
		grid-template-columns: minmax(0, 1.15fr) minmax(18rem, .85fr);
	}

	.blog-grid > .blog-card:first-child:nth-last-child(1) .blog-card__image {
		aspect-ratio: auto;
		min-height: 25rem;
	}

	.blog-grid > .blog-card:first-child:nth-last-child(1) .blog-card__body {
		display: flex;
		flex-direction: column;
		justify-content: center;
	}
}


@media (prefers-reduced-motion: reduce) {
	.blog-card__image img {
		transition: none;
	}

	.blog-card:hover .blog-card__image img {
		transform: none;
	}
}

/* Independent post layout and featured-image presentation. */
.blog-article > .blog-article__breadcrumb-wrap { padding-top: var(--space-4); margin-bottom: 1rem; }
.blog-article__main, .blog-article__sidebar { min-width: 0; }
.blog-article__lead {
	max-width: var(--article-layout-width);
	margin-bottom: 1.5rem;
	color: #c7cbd5;
	font-size: clamp(1.125rem, 2.2vw, 1.35rem);
	line-height: 1.6;
}
.blog-article__lead p { margin: 0 0 .75rem; }
.blog-article__hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	display: grid;
	align-items: center;
	padding: clamp(1.5rem, 3vw, 2.5rem);
	margin-bottom: 2.75rem;
	border-radius: var(--radius-sm);
	background: #10131c;
}
.blog-article__hero .blog-article__heading { width: 100%; max-width: none; min-width: 0; margin: 0; }
.blog-article__hero .blog-article__lead { max-width: var(--article-reading-width); }
/* Article itself is unconstrained; cap 100vw to its available width to exclude scrollbars. */
:is(.blog-article--wide, .blog-article--has-sidebar) > .blog-article__hero {
	width: 100vw;
	max-width: 100%;
	margin-inline: 0;
	padding-inline: 0;
	border-radius: 0;
}
:is(.blog-article--wide, .blog-article--has-sidebar) > .blog-article__hero .blog-article__heading {
	width: min(100% - var(--hero-inline-gutter, max(var(--page-gutter), 1rem)) * 2, var(--container));
	max-width: var(--container);
	margin-inline: auto;
}
/* Wide heroes keep the breadcrumb over the image beyond the mobile breakpoint. */
@media (min-width: 768px) {
	.blog-article--wide.blog-article--has-hero { position: relative; }
	.blog-article--wide.blog-article--has-hero > .blog-article__breadcrumb-wrap {
		position: absolute;
		inset: 0 0 auto;
		z-index: 1;
		padding-top: var(--space-4);
		margin-bottom: 0;
	}
	.blog-article--wide > .blog-article__hero { padding-top: calc(clamp(2.125rem, 3vw, 2.5rem) + var(--space-2)); }
}
.blog-article__hero-image {
	position: absolute;
	inset: 0;
	z-index: -2;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.blog-article__hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(110deg, rgb(8 11 19 / 93%), rgb(8 11 19 / 79%));
}
.blog-article__hero h1 { max-width: 60rem; margin-bottom: 1rem; color: #fff; font-size: clamp(2rem, 4vw, 3.25rem); }
.blog-article__hero .blog-article__lead,
.blog-article__hero .blog-article__meta { color: #f0f1f5; }
.blog-article__hero a { color: #e0d3ff; }
.blog-article__content > :is(table, pre),
.blog-article__content .wp-block-table { max-width: 100%; overflow-x: auto; }
.blog-article__content > table { display: block; }
.blog-article__content :is(img, video, iframe, svg, canvas) { max-width: 100%; }
.blog-article--has-sidebar .blog-article__columns { display: grid; gap: 2rem; }
.blog-article--has-sidebar .blog-article__main > .container,
.blog-article--has-sidebar .blog-article__heading { width: 100%; }
.blog-article__sidebar { overflow-wrap: anywhere; }
@media (min-width: 64rem) {
	.blog-article--standard > .blog-article__hero {
		width: min(100% - var(--page-gutter) * 2, 65rem);
		max-width: 65rem;
		border: 1px solid rgb(140 92 255 / 22%);
		box-shadow: 0 0 2rem rgb(140 92 255 / 7%);
	}
	.blog-article--standard > .blog-article__hero .blog-article__heading {
		max-width: var(--article-reading-width);
		margin-inline: auto;
	}
	.blog-article--has-sidebar .blog-article__columns { grid-template-columns: minmax(0, 1fr) 18rem; align-items: start; }
}
@media (max-width: 767px) {
	.blog-article__header h1 { font-size: clamp(2rem, 7vw, 3rem); }
	/* Inset heroes already have the page gutter; full-bleed heroes apply it to the heading. */
	.blog-article__hero { --hero-inline-gutter: var(--page-gutter); padding: 1.5rem 0; }
	.blog-article__hero::after {
		content: "";
		position: absolute;
		inset: auto 0 0;
		height: 1px;
		background: rgb(140 92 255 / 20%);
		box-shadow: 0 -2px 8px rgb(140 92 255 / 8%);
		pointer-events: none;
	}
	/* Overlay the breadcrumb on the image, reserving space above the heading. */
	.blog-article--has-hero { position: relative; }
	.blog-article--has-hero > .blog-article__breadcrumb-wrap {
		position: absolute;
		inset: 0 0 auto;
		z-index: 1;
		padding: var(--space-4) 0;
		margin-bottom: 0;
	}
	.blog-article--has-hero > .blog-article__hero {
		padding-top: 4rem;
		border-top-left-radius: 0;
		border-top-right-radius: 0;
	}
}

/* Keep the long Boyd partnership headline compact on mobile only. */
@media (max-width: 767px) {
	.postid-850 .blog-article__hero h1 { font-size: clamp(1.8rem, 6.3vw, 2.7rem); }
	.postid-850 .blog-article__hero .blog-article__lead { font-size: 1.0625rem; line-height: 1.5; }
}

/* Final editorial layout for the September 29 games roundup only. */
.postid-974 .skip-link:not(:focus-visible) {
	width: 1px; height: 1px; padding: 0; overflow: hidden;
	clip-path: inset(50%); white-space: nowrap; transform: none;
}
.postid-974 .skip-link:focus-visible {
	width: auto; height: auto; clip-path: none; transform: none;
	z-index: 1000001;
}
.postid-974 .news-game-summary { margin-block: 1.25rem; }
.postid-974 .news-game-summary table { width: 100%; table-layout: fixed; border-collapse: collapse; line-height: 1.45; }
.postid-974 .news-game-summary :is(th, td) { padding: .6rem .5rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--color-border); }
.postid-974 .news-game-summary th { color: var(--color-text); }
.postid-974 .news-game-summary th:first-child { width: 30%; }
.postid-974 .news-game-summary th:nth-child(2) { width: 22%; }
.postid-974 .news-game-sources { color: var(--color-muted); font-size: .875rem; }
@media (max-width: 767px) {
	.postid-974 .news-game-summary th:is(:first-child, :nth-child(2)) { width: 28%; }
	.postid-974 .blog-article__content > :is(p, ul, ol) { margin-bottom: 1rem; }
	.postid-974 .blog-article__content > figure.wp-block-image { margin-bottom: 1.125rem !important; }
	.postid-974 .blog-article__content img { margin-top: 1.5rem; }
}
