:root {
	--community-primary: #153f66;
	--community-secondary: #0f2b46;
}

.community-hub {
	background: #f7f8fb;
	color: #1f2933;
	padding-bottom: 4rem;
}

.community-hub + footer,
.community-hub + .site-footer,
.community-hub + [role="contentinfo"] {
	margin-top: 0;
}

.community-hub__container {
	margin: 0 auto;
	max-width: 1200px;
	padding: 0 1.5rem;
	position: relative;
	z-index: 1;
}

.community-hub__hero {
	background: linear-gradient(135deg, var(--community-secondary), var(--community-primary));
	color: #fff;
	overflow: hidden;
	padding: 4rem 0;
	position: relative;
}

.community-hub__hero::before,
.community-hub__hero::after {
	background:
		radial-gradient(circle at center, rgba(255, 255, 255, 0.16) 0, rgba(255, 255, 255, 0) 70%);
	content: '';
	pointer-events: none;
	position: absolute;
}

.community-hub__hero::before {
	height: 26rem;
	right: -8rem;
	top: -8rem;
	width: 26rem;
}

.community-hub__hero::after {
	bottom: -12rem;
	height: 22rem;
	left: -8rem;
	opacity: 0.55;
	width: 22rem;
}

.community-hub__hero a {
	color: inherit;
}

.community-hub__hero--single {
	padding: 2.5rem 0 3rem;
}

.community-hub__hero--index,
.community-hub__hero--archive {
	padding: 3rem 0 3.25rem;
}

.community-hub__eyebrow {
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	margin: 0 0 0.75rem;
	text-transform: uppercase;
}

.community-breadcrumbs {
	align-items: center;
	color: rgba(255, 255, 255, 0.8);
	display: flex;
	flex-wrap: wrap;
	font-size: 0.95rem;
	gap: 0.4rem;
	margin: 0 0 1.25rem;
}

.community-breadcrumbs a {
	text-decoration: none;
}

.community-breadcrumbs [aria-current='page'] {
	color: #fff;
	font-weight: 700;
}

.community-breadcrumbs__sep {
	opacity: 0.7;
}

.community-single-hero {
	max-width: 56rem;
}

.community-hero-panel {
	max-width: 64rem;
}

.community-single-hero {
	padding-right: 1rem;
}

.community-hero-panel__title,
.community-single-hero__title {
	color: #fff;
	font-size: clamp(2rem, 4vw, 3.5rem);
	line-height: 1.05;
	margin: 0;
}

.community-hero-panel__links {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1.25rem;
}

.community-hub__lede {
	color: rgba(255, 255, 255, 0.92);
	font-size: 1.125rem;
	line-height: 1.7;
	margin: 1rem 0 0;
	max-width: 56rem;
}

.community-hub__lede p {
	margin: 0;
}

.community-single-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1.25rem;
}

.community-single-hero__media {
	margin-top: 1.5rem;
	max-width: 52rem;
}

.community-hero-panel__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1.25rem;
}

.community-hub__section {
	padding: 3rem 0 0;
}

.community-hub__section-header {
	max-width: 46rem;
	margin-bottom: 1.5rem;
}

.community-hub__section-header h2 {
	font-size: clamp(1.8rem, 3vw, 2.5rem);
	line-height: 1.1;
	margin-bottom: 0.75rem;
	position: relative;
}

.community-hub__section-header h2::after {
	background: linear-gradient(90deg, var(--community-primary), rgba(21, 63, 102, 0.08));
	border-radius: 999px;
	content: '';
	display: block;
	height: 0.3rem;
	margin-top: 0.9rem;
	width: 5.5rem;
}

.community-hub__section-header p {
	color: #52606d;
	font-size: 1.05rem;
	margin: 0;
}

.community-hub__section-header h2,
.community-entry h2,
.community-entry h3,
.community-sidebar__panel h2,
.community-hub__single h1,
.community-hub--archive h1,
.community-hub--index h1 {
	color: var(--community-primary);
}

.community-hub__grid {
	display: grid;
	gap: 1.5rem;
	grid-auto-rows: 1fr;
}

.community-hub__grid--four {
	grid-template-columns: 1fr;
}

@media (min-width: 600px) {
	.community-hub__grid--four {
		grid-template-columns: repeat(2, 1fr);
	}
}

.community-hub__stack {
	display: grid;
	gap: 1.5rem;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.community-card,
.community-listing,
.community-sidebar__panel {
	background: #fff;
	border: 1px solid #d7dce3;
	border-radius: 1rem;
	box-shadow: 0 12px 28px rgba(15, 43, 70, 0.08);
	transition:
		box-shadow 180ms ease,
		border-color 180ms ease,
		transform 180ms ease;
}

.community-card:hover,
.community-listing:hover,
.community-sidebar__panel:hover {
	border-color: rgba(21, 63, 102, 0.22);
	box-shadow: 0 20px 44px rgba(15, 43, 70, 0.12);
	transform: translateY(-3px);
}

.community-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.community-card__content,
.community-listing__content,
.community-sidebar__panel {
	padding: 1.5rem;
}

.community-card__content {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 0.15rem;
}

.community-card__media,
.community-listing__media,
.community-entry__featured-image {
	aspect-ratio: 16 / 9;
	background: #0f172a;
	display: block;
	overflow: hidden;
	position: relative;
	width: 100%;
}

.community-card__media {
	aspect-ratio: auto;
	height: 260px;
}

.community-card__media::after,
.community-listing__media::after,
.community-entry__featured-image::after {
	background: linear-gradient(180deg, rgba(15, 23, 42, 0) 45%, rgba(15, 23, 42, 0.18) 100%);
	content: '';
	inset: 0;
	pointer-events: none;
	position: absolute;
}

.community-card__media--video::after,
.community-listing__media--video::after,
.community-card__media--logo::after {
	display: none;
}

.community-card__media.community-card__media--logo {
	align-items: center;
	background: #f0f2f5;
	display: flex;
	height: auto;
	justify-content: center;
	overflow: visible;
	padding: 1.5rem;
}

.community-card__media.community-card__media--logo img {
	display: block;
	height: auto;
	max-height: 200px;
	max-width: 100%;
	object-fit: contain;
	width: auto;
}

.community-card__media img,
.community-card__media iframe,
.community-listing__media img,
.community-listing__media iframe,
.community-entry__featured-image img,
.community-gallery__item img {
	display: block;
	height: 100%;
	transition: transform 260ms ease;
	width: 100%;
}

.community-card__media img,
.community-listing__media img,
.community-entry__featured-image img {
	object-fit: cover;
}

.community-card__media iframe,
.community-listing__media iframe {
	border: 0;
}

.community-card__media video,
.community-embed__frame video {
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.community-card:hover .community-card__media img,
.community-listing:hover .community-listing__media img,
.community-entry:hover .community-entry__featured-image img,
.community-gallery__item:hover img {
	transform: scale(1.04);
}

.community-card__kicker {
	align-self: flex-start;
	background: rgba(21, 63, 102, 0.08);
	border-radius: 999px;
	color: var(--community-primary);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	margin: 0 0 0.6rem;
	padding: 0.45rem 0.75rem;
	text-transform: uppercase;
}

.community-listing__title {
	font-size: 1.25rem;
	line-height: 1.3;
}

.community-listing__meta {
	color: #5b6773;
	font-size: 0.9rem;
	margin: 0 0 0.5rem;
}

.community-listing__content > .community-button {
	align-self: flex-start;
	margin-top: auto;
	padding-top: 1rem;
}

.community-card__title,
.community-listing__title,
.community-sidebar__panel h2 {
	margin: 0 0 0.75rem;
}

.community-card__title a,
.community-listing__title a,
.community-link {
	color: var(--community-primary);
	text-decoration: none;
	transition: color 160ms ease;
}

.community-link--light {
	color: #fff;
	font-weight: 600;
}

.community-link--pill {
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.28);
	border-radius: 999px;
	display: inline-flex;
	padding: 0.7rem 1rem;
}

.community-link--pill:hover {
	background: rgba(255, 255, 255, 0.2);
	opacity: 1;
}

.community-card__excerpt,
.community-listing__excerpt,
.community-meta dd {
	color: #52606d;
	line-height: 1.7;
}

.community-card__excerpt p {
	margin: 0;
}

.community-listing__excerpt p {
	margin: 0;
}

.community-card__links {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: auto;
	padding-top: 1rem;
}

.community-button {
	align-items: center;
	background: var(--community-primary);
	border: 1px solid var(--community-primary);
	border-radius: 999px;
	color: #fff;
	display: inline-flex;
	justify-content: center;
	line-height: 1.2;
	min-height: 2.75rem;
	padding: 0.75rem 1.2rem;
	text-decoration: none;
	transition:
		background-color 160ms ease,
		border-color 160ms ease,
		box-shadow 160ms ease,
		color 160ms ease,
		transform 160ms ease;
}

.community-button:focus,
.community-button:hover {
	background: var(--community-secondary);
	border-color: var(--community-secondary);
	box-shadow: 0 10px 22px rgba(15, 43, 70, 0.18);
	color: #fff;
	transform: translateY(-1px);
}

.community-button:hover,
.community-link:hover {
	opacity: 0.9;
}

.community-button--light {
	background: rgba(255, 255, 255, 0.12);
	border-color: rgba(255, 255, 255, 0.32);
	color: #fff;
}

.community-button--light:focus,
.community-button--light:hover {
	background: #fff;
	border-color: #fff;
	color: var(--community-primary);
}

.community-listing {
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.community-listing__content {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 1.5rem;
}

.community-listing__media img,
.community-entry__featured-image img,
.community-gallery__item img {
	display: block;
	height: auto;
	width: 100%;
}

.community-hub__single-layout {
	display: grid;
	gap: 2rem;
	grid-template-columns: 1fr;
	margin-bottom: 200px;
}

.community-entry {
	background: #fff;
	border: 1px solid #d7dce3;
	border-radius: 1rem;
	overflow: hidden;
	box-shadow: 0 18px 38px rgba(15, 43, 70, 0.08);
}

.community-entry__details {
	border-top: 1px solid #e4e9ef;
	padding: clamp(1.5rem, 2vw, 2rem);
}

.community-entry__actions {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 0.9rem 1rem;
	margin-top: 1.5rem;
}

.community-partner-logo {
	margin: 0 0 1rem;
}

.community-partner-logo img {
	display: block;
	height: auto;
	max-height: 96px;
	max-width: 220px;
	width: auto;
}

.community-gallery,
.community-embed,
.community-related-links {
	padding: 0 1.5rem 1.5rem;
}

.community-gallery__grid {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.community-gallery__item {
	aspect-ratio: 4 / 3;
	border-radius: 0.75rem;
	overflow: hidden;
	position: relative;
}

.community-gallery__item--hidden {
	display: none;
}

.community-gallery__link {
	display: block;
	height: 100%;
	width: 100%;
}

.community-gallery__item img {
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.community-gallery__actions {
	margin-top: 1rem;
	text-align: center;
}

.community-embed__frame iframe {
	border: 0;
	display: block;
	height: 100%;
	width: 100%;
}

.community-embed__frame {
	aspect-ratio: 16 / 9;
	background: #000;
	border-radius: 0.75rem;
	box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
	overflow: hidden;
	width: 100%;
}

.community-lightbox {
	align-items: center;
	display: flex;
	inset: 0;
	justify-content: center;
	padding: 1.5rem;
	position: fixed;
	z-index: 9999;
}

.community-lightbox[hidden] {
	display: none;
}

.community-lightbox__backdrop {
	background: rgba(15, 23, 42, 0.8);
	inset: 0;
	position: absolute;
}

.community-lightbox__dialog {
	max-width: min(90vw, 1100px);
	position: relative;
	width: 100%;
	z-index: 1;
}

.community-lightbox__image {
	border-radius: 0.75rem;
	display: block;
	height: auto;
	max-height: 85vh;
	max-width: 100%;
	margin: 0 auto;
}

.community-lightbox__close {
	background: rgba(15, 23, 42, 0.8);
	border: 0;
	border-radius: 999px;
	color: #fff;
	cursor: pointer;
	padding: 0.65rem 1rem;
	position: absolute;
	right: 1rem;
	top: 1rem;
	z-index: 2;
}

.community-meta {
	margin: 0 0 1.5rem;
}

.community-meta__row {
	border-top: 1px solid #e4e9ef;
	padding: 0.9rem 0;
}

.community-meta__row--description h3 {
	font-size: 1rem;
	margin: 0 0 0.75rem;
}

.community-meta__content > :first-child {
	margin-top: 0;
}

.community-meta__content > :last-child {
	margin-bottom: 0;
}

.community-meta__content p {
	margin: 0 0 1rem;
}

.community-meta__content p:last-child {
	margin-bottom: 0;
}

.community-award-summary {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	margin: 0 0 1.5rem;
}

.community-award-summary__item {
	border-top: 1px solid #e4e9ef;
	padding-top: 0.9rem;
}

.community-award-summary__label,
.community-award-summary__value {
	display: block;
}

.community-award-summary__label {
	font-weight: 700;
	margin-bottom: 0.35rem;
}

.community-award-image {
	margin: 0 0 1.5rem;
	text-align: center;
}

.community-award-image img {
	display: block;
	height: auto;
	margin: 0 auto;
	max-width: 100%;
}

.community-meta__row:first-child {
	border-top: 0;
	padding-top: 0;
}

.community-meta dt {
	font-weight: 700;
	margin-bottom: 0.35rem;
}

.community-meta dd {
	margin: 0;
}

.community-empty-state {
	background: #fff;
	border: 1px solid #d7dce3;
	border-radius: 1rem;
	box-shadow: 0 14px 32px rgba(15, 43, 70, 0.08);
	padding: 2rem;
	text-align: center;
}

.community-pagination {
	margin-top: 1.5rem;
}

.community-pagination .page-numbers {
	align-items: center;
	background: #fff;
	border: 1px solid #d7dce3;
	border-radius: 999px;
	color: var(--community-primary);
	display: inline-flex;
	font-weight: 600;
	gap: 0.25rem;
	justify-content: center;
	margin-right: 0.45rem;
	min-height: 2.5rem;
	min-width: 2.5rem;
	padding: 0 0.95rem;
	text-decoration: none;
}

.community-pagination .page-numbers.current,
.community-pagination .page-numbers:hover {
	background: var(--community-primary);
	border-color: var(--community-primary);
	color: #fff;
}

@media (min-width: 768px) {
	.community-listing {
		max-width: 400px;
	}
}

@media (max-width: 782px) {
	.community-hub__single-layout {
		grid-template-columns: 1fr;
	}

	.community-hero-panel,
	.community-single-hero {
		padding-right: 0;
	}

	.community-breadcrumbs {
		font-size: 0.875rem;
	}
}
