/* Shared page hero, panel, and section-heading structure.
   Theme stylesheets own colors, borders, shadows, and typography. */

.games-hero,
.videos-hero,
.channels-hero,
.site-page-hero,
.help-hero {
	position: relative;
	overflow: hidden;
}

.games-hero,
.videos-hero,
.channels-hero {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.games-hero,
.videos-hero {
	margin-bottom: 16px;
	padding: 20px;
}

.channels-hero {
	margin: 0 0 12px;
	padding: 16px 18px;
}

.site-page-hero,
.help-hero {
	margin: 0 auto 18px;
	padding: 20px;
}

.games-hero::before,
.videos-hero::before,
.channels-hero::before,
.site-page-hero::before,
.help-hero::before {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	height: 4px;
}

.games-hero p,
.videos-hero p,
.channels-hero p,
.site-page-hero p,
.site-page-card p,
.help-hero p,
.help-panel p {
	margin: 0;
	text-align: left;
}

.games-hero p,
.channels-hero p {
	max-width: 680px;
}

.videos-hero-main,
.channels-hero > div {
	width: 100%;
	min-width: 0;
}

.videos-hero-heading,
.channels-hero-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	width: 100%;
}

.videos-hero-side {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 12px;
}

.games-hero-stats,
.channels-hero-stats {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 7px;
}

.videos-hero-stats {
	display: flex;
	gap: 7px;
}

.games-hero-stats > div,
.games-hero-stats > span,
.videos-hero-stats span,
.videos-section-count,
.channels-hero-stats span {
	display: inline-flex;
	align-items: baseline;
	gap: 5px;
	min-height: 36px;
	padding: 7px 10px;
}

.channels-hero-stats span {
	padding-right: 11px;
	padding-left: 11px;
}

.channels-lineup-stats {
	align-self: center;
}

.home-content-grid {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	gap: 14px;
	align-items: start;
}

.home-panel {
	min-width: 0;
	padding: 18px;
	text-align: left;
}

.home-panel h2 {
	margin: 0 0 12px;
}

.home-forum-video-panel {
	margin-bottom: 14px;
}

.home-panel-heading,
.videos-section-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
}

.videos-section-heading {
	gap: 14px;
	margin-bottom: 14px;
}

.home-panel-heading h2 {
	margin: 0;
}

.home-panel-heading p {
	margin: 7px 0 0;
	line-height: 1.45;
}

.home-panel-heading > a,
.videos-section-count {
	flex: 0 0 auto;
}

.site-page-grid,
.help-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: 12px;
	margin: 0 auto;
}

.site-page-card,
.help-panel {
	display: flex;
	flex-direction: column;
	align-content: start;
	gap: 8px;
	padding: 14px;
}

.site-page-card a.site-button,
.help-panel a.site-button,
.help-panel a:not(.site-button) {
	align-self: flex-start;
	margin-top: auto;
}

.site-page-card a.site-button,
.help-panel a.site-button {
	width: fit-content;
	max-width: 100%;
}

.help-panel a:not(.site-button) {
	padding: 10px 14px;
	text-decoration: none;
}

.site-page-hero h1,
.site-page-hero h2,
.site-page-card h3,
.help-hero h1,
.help-hero h2,
.help-panel h3,
.videos-section-heading h1,
.videos-section-heading h2 {
	text-align: left;
	overflow-wrap: anywhere;
}

@media screen and (max-width: 920px) {
	.site-page-grid,
	.help-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media screen and (max-width: 620px) {
	.site-page-grid,
	.help-grid {
		grid-template-columns: 1fr;
	}

	.help-page {
		padding-top: 18px;
	}

	.site-page-card a.site-button,
	.help-panel a {
		align-self: stretch;
		width: 100%;
		text-align: center;
	}
}
