.adam-community {
	--adam-community-accent: var(--adam-accent, #607608);
	--adam-community-dark: #152026;
	--adam-community-muted: #5c6870;
	background: #f5f7f8;
	color: var(--adam-community-dark);
	min-height: 70vh;
}

.adam-community-container {
	margin: 0 auto;
	max-width: 1200px;
	padding: 32px 20px;
}

.adam-community-header {
	padding: 38px 0 18px;
}

.adam-community-header.adam-public-hero {
	padding-bottom: clamp(72px, 9vw, 102px);
	padding-top: clamp(48px, 8vw, 88px);
}

.adam-community-header__media {
	inset: 0;
	position: absolute;
}

.adam-community-header__media .adam-generated-placeholder {
	object-fit: cover;
}

.adam-community-header .adam-community-container {
	padding-bottom: 0;
	padding-top: 0;
}

.adam-community-header > span {
	color: var(--adam-community-accent);
	font-size: .8rem;
	font-weight: 800;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.adam-community-header h1 {
	font-size: clamp(2.2rem, 6vw, 4.6rem);
	line-height: 1;
	margin: 10px 0 14px;
}

.adam-community-filters label {
	display: grid;
	font-size: .85rem;
	font-weight: 700;
	gap: 6px;
}

.adam-community-filters input:not([type="checkbox"]):not([type="radio"]),
.adam-community-filters select {
	border: 1px solid #d7dde0;
	border-radius: 8px;
	min-height: 44px;
	padding: 8px 10px;
}

.adam-community-filters .adam-community-check {
	align-content: center;
	display: flex;
}

.adam-community-grid {
	display: grid;
	gap: 22px;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
	margin: 24px 0;
}

.adam-community-card {
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 8px 28px rgba(21, 32, 38, .08);
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.adam-community-card__media {
	align-items: center;
	background: linear-gradient(135deg, #eef1f2, #fff);
	display: flex;
	height: 190px;
	justify-content: center;
	padding: 24px;
}

.adam-community-card__media img {
	height: 100%;
	object-fit: contain;
	width: 100%;
}

.adam-community-card__media .adam-generated-placeholder {
	height: calc(100% + 48px);
	margin: -24px;
	width: calc(100% + 48px);
}

.adam-community-card__team-logo {
	--adam-team-logo-size: 142px;
	border-radius: 14px;
}

.adam-community-card__media .adam-community-card__team-logo .adam-generated-placeholder {
	height: 100%;
	margin: 0;
	object-fit: contain;
	width: 100%;
}

.adam-community-card__placeholder {
	background: var(--adam-community-accent);
	border-radius: 50%;
	height: 72px;
	opacity: .15;
	width: 72px;
}

.adam-community-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 22px;
}

.adam-community-card h2 {
	font-size: 1.35rem;
	margin: 8px 0;
}

.adam-community-card h2 a {
	color: inherit;
	text-decoration: none;
}

.adam-community-card__meta {
	color: var(--adam-community-muted);
	font-size: .85rem;
	font-weight: 700;
	text-transform: uppercase;
}

.adam-community-card__actions,
.adam-contact-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: auto;
}

.adam-community-button,
.adam-contact-button {
	align-items: center;
	background: var(--adam-community-accent);
	border: 0;
	border-radius: 9px;
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	font-weight: 750;
	gap: 8px;
	justify-content: center;
	min-height: 44px;
	padding: 10px 16px;
	text-decoration: none;
}

.adam-community-button--ghost {
	background: #e9edef;
	color: var(--adam-community-dark);
}

.adam-community-badge {
	align-self: flex-start;
	background: #fff0d7;
	border-radius: 999px;
	color: #7e4e00;
	display: inline-block;
	font-size: .75rem;
	font-weight: 800;
	padding: 5px 10px;
	text-transform: uppercase;
}

.adam-community-pagination {
	display: flex;
	gap: 8px;
	justify-content: center;
	padding: 12px 0 40px;
}

.adam-community-pagination :is(button, a) {
	align-items: center;
	background: #fff;
	border: 1px solid #d7dde0;
	border-radius: 7px;
	display: inline-flex;
	justify-content: center;
	min-height: 42px;
	min-width: 42px;
	text-decoration: none;
}

.adam-community-pagination [aria-current="page"] {
	background: var(--adam-community-dark);
	color: #fff;
}

.adam-community-hero {
	background: #111b20;
	color: #fff;
	position: relative;
}

.adam-community-hero__cover {
	height: clamp(240px, 38vw, 500px);
}

.adam-community-hero__cover img,
.adam-community-hero__cover .adam-generated-placeholder {
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.adam-community-hero__content {
	align-items: end;
	bottom: 0;
	display: flex;
	gap: 24px;
	position: absolute;
	right: 0;
	left: 0;
}

.adam-community-hero__content h1 {
	font-size: clamp(2.2rem, 6vw, 4.5rem);
	line-height: 1;
	margin: 8px 0;
}

.adam-community-hero__logo {
	background: #fff;
	border-radius: 18px;
	height: 140px;
	object-fit: contain;
	padding: 12px;
	width: 140px;
}

svg.adam-community-hero__logo {
	padding: 0;
}

.adam-community-content {
	display: grid;
	gap: 22px;
}

.adam-community-section {
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 8px 28px rgba(21, 32, 38, .06);
	padding: clamp(22px, 4vw, 42px);
}

.adam-community-lead {
	font-size: 1.2rem;
	font-weight: 600;
}

.adam-community-benefits {
	border-left: 5px solid var(--adam-community-accent);
}

.adam-community-gallery {
	display: grid;
	gap: 10px;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.adam-community-gallery img {
	aspect-ratio: 4 / 3;
	border-radius: 10px;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.adam-community-map-frame {
	border: 0;
	border-radius: 12px;
	height: 400px;
	width: 100%;
}

.adam-community-connections {
	display: grid;
	gap: 10px;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.adam-community-connections a {
	background: #f1f4f5;
	border-radius: 10px;
	color: inherit;
	display: grid;
	padding: 16px;
	text-decoration: none;
}

.adam-community-connections span {
	color: var(--adam-community-muted);
	font-size: .8rem;
	text-transform: uppercase;
}

.adam-community-lightbox {
	align-items: center;
	background: rgba(0, 0, 0, .9);
	display: flex;
	inset: 0;
	justify-content: center;
	padding: 30px;
	position: fixed;
	z-index: 99999;
}

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

.adam-community-lightbox img {
	max-height: 80vh;
	max-width: 90vw;
}

.adam-community-lightbox button {
	background: transparent;
	border: 0;
	color: #fff;
	font-size: 3rem;
	position: absolute;
	right: 20px;
	top: 10px;
}

@media (max-width: 600px) {
	.adam-community-hero__logo {
		height: 90px;
		width: 90px;
	}
	.adam-community-hero__content {
		align-items: flex-start;
		flex-direction: column;
		gap: 10px;
	}
	.adam-contact-button,
	.adam-community-button {
		flex: 1 1 150px;
	}
}
