.fmg-community {
	--fmg-accent: #7ab38b;
	--fmg-ink: #242424;
	--fmg-text: #615f5a;
	--fmg-muted: #807d77;
	--fmg-line: #dedbd4;
	--fmg-surface: #fff;
	--fmg-warm: #f7f5f0;
	background: #fbfaf7;
	border: 1px solid var(--fmg-line);
	color: var(--fmg-text);
	font-family: inherit;
	line-height: 1.5;
	margin: 2rem auto;
	max-width: 1480px;
	padding: clamp(1rem, 3vw, 2.5rem);
}

.fmg-community *,
.fmg-community *::before,
.fmg-community *::after {
	box-sizing: border-box;
}

.fmg-community__header {
	border-bottom: 1px solid var(--fmg-line);
	margin-bottom: 1.4rem;
	padding-bottom: 1.4rem;
}

.fmg-community__eyebrow {
	color: var(--fmg-accent);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	margin: 0 0 0.3rem;
	text-transform: uppercase;
}

.fmg-community__title {
	color: var(--fmg-ink);
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(1.8rem, 4vw, 3rem);
	font-weight: 400;
	line-height: 1.12;
	margin: 0;
}

.fmg-community__intro {
	font-size: 1rem;
	margin: 0.7rem 0 0;
	max-width: 760px;
}

.fmg-community__cta {
	margin: 1rem 0 0;
}

.fmg-community__button {
	background-color: #7ab38b;
	border: 1px solid #7ab38b;
	border-radius: 0;
	color: #fff;
	display: inline-flex;
	font-size: 0.8rem;
	font-weight: 600;
	justify-content: center;
	line-height: 1.2;
	min-height: 43px;
	padding: 0.7rem 0.95rem;
	text-decoration: none;
}

.fmg-community__button:hover,
.fmg-community__button:focus {
	background-color: #659e76;
	border-color: #659e76;
	color: #fff;
}

.fmg-community__button--quiet {
	background: #f7f7f7;
	border-color: #e5e5e5;
	color: #333;
	width: 100%;
}

.fmg-community__button--quiet:hover,
.fmg-community__button--quiet:focus {
	background: #ededed;
	border-color: #d7d7d7;
	color: #333;
}

.fmg-community__sort {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0 0 1.2rem;
}

.fmg-community__sort a {
	background: #fff;
	border: 1px solid var(--fmg-line);
	color: var(--fmg-ink);
	font-size: 0.78rem;
	font-weight: 600;
	padding: 0.45rem 0.8rem;
	text-decoration: none;
}

.fmg-community__sort a[aria-current="page"] {
	background: #f2f7f3;
	border-color: #7ab38b;
	box-shadow: inset 3px 0 #7ab38b;
}

.fmg-community__empty {
	background: var(--fmg-warm);
	margin: 0;
	padding: 1.2rem;
}

.fmg-community__grid {
	display: grid;
	gap: 1.1rem;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	list-style: none;
	margin: 0;
	padding: 0;
}

.fmg-community__card {
	background: var(--fmg-surface);
	border: 1px solid var(--fmg-line);
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.fmg-card-state {
	display: none;
}

.fmg-community__preview {
	aspect-ratio: 300 / 470;
	background: #fbfaf7;
	display: block;
	overflow: hidden;
	position: relative;
}

.fmg-community__preview canvas,
.fmg-community__preview img,
.fmg-community__placeholder {
	display: block;
	height: auto;
	object-fit: contain;
	width: 100%;
}

.fmg-community__preview canvas {
	position: relative;
	z-index: 1;
}

.fmg-community__fallback {
	inset: 0;
	opacity: 0.35;
	position: absolute;
}

.fmg-community__card.has-live-preview .fmg-community__fallback {
	display: none;
}

.fmg-community__placeholder {
	background: linear-gradient(180deg, #f4f0e8, #dedbd4);
}

.fmg-community__body {
	display: grid;
	gap: 0.55rem;
	padding: 0.85rem 0.9rem 1rem;
}

.fmg-community__meta h3 {
	color: var(--fmg-ink);
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.15rem;
	font-weight: 400;
	margin: 0;
}

.fmg-community__meta p {
	color: var(--fmg-muted);
	font-size: 0.78rem;
	margin: 0.15rem 0 0;
}

.fmg-community__facts {
	align-items: center;
	color: var(--fmg-muted);
	display: flex;
	flex-wrap: wrap;
	font-size: 0.72rem;
	gap: 0.45rem;
	margin: 0;
}

.fmg-community__swatches {
	display: inline-flex;
	gap: 0.2rem;
}

.fmg-community__swatches i {
	border: 1px solid #cfcbc3;
	display: block;
	height: 12px;
	width: 12px;
}

.fmg-community__actions {
	display: grid;
	gap: 0.45rem;
}

.fmg-community__vote {
	align-items: center;
	background: #fff;
	border: 1px solid var(--fmg-line);
	color: var(--fmg-ink);
	cursor: pointer;
	display: inline-flex;
	font: inherit;
	font-size: 0.78rem;
	font-weight: 700;
	gap: 0.4rem;
	justify-content: center;
	min-height: 40px;
	padding: 0.4rem 0.7rem;
}

.fmg-community__vote svg {
	fill: none;
	height: 16px;
	stroke: #7ab38b;
	stroke-width: 1.8;
	width: 16px;
}

.fmg-community__vote.is-voted,
.fmg-community__vote[aria-pressed="true"] {
	background: #f2f7f3;
	border-color: #7ab38b;
}

.fmg-community__vote.is-voted svg,
.fmg-community__vote[aria-pressed="true"] svg {
	fill: #7ab38b;
}

.fmg-community__vote:disabled {
	opacity: 0.7;
}

.fmg-community__pagination {
	margin-top: 1.6rem;
}

.fmg-community__pagination .page-numbers {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.fmg-community__pagination a,
.fmg-community__pagination span {
	border: 1px solid var(--fmg-line);
	color: var(--fmg-ink);
	display: inline-block;
	font-size: 0.78rem;
	min-width: 36px;
	padding: 0.4rem 0.6rem;
	text-align: center;
	text-decoration: none;
}

.fmg-community__pagination .current {
	background: #f2f7f3;
	border-color: #7ab38b;
}

.fmg-community .screen-reader-text {
	clip: rect(0, 0, 0, 0);
	clip-path: inset(50%);
	height: 1px;
	overflow: hidden;
	position: absolute;
	width: 1px;
}

@media (max-width: 640px) {
	.fmg-community {
		padding: 1rem;
	}
}
