h1.fg-catalog-title {
	color: inherit;
}

.fg-catalog-navigation {
	margin-top: 1em;
}

.fg-feed-menu,
.fg-pagination {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .5rem .85rem;
	margin: .75rem 0;
}

.fg-feed-menu__list {
	position: relative;
}

.fg-feed-menu__list summary {
	padding: .35rem .6rem;
	border: 1px solid currentColor;
	border-radius: 4px;
	cursor: pointer;
}

.fg-feed-menu__list[open] ul {
	position: absolute;
	z-index: 30;
	top: 100%;
	left: 0;
	box-sizing: border-box;
	min-width: 16rem;
	max-width: min(28rem, 90vw);
	max-height: 18rem;
	margin: .25rem 0 0;
	padding: .35rem 0;
	overflow-y: auto;
	list-style: none;
	background: #fff;
	color: #2c3e50;
	border: 1px solid #999;
	border-radius: 4px;
	box-shadow: 0 4px 12px rgb(0 0 0 / 18%);
}

.fg-feed-menu.fg-catalog-dark .fg-feed-menu__list[open] ul {
	background: #2B394A;
	color: #F4F4F4;
	border-color: #344454;
}

.fg-feed-menu__list li a,
.fg-feed-menu__list li strong {
	display: block;
	padding: .4rem .7rem;
}

.fg-feed-menu__list li a:hover,
.fg-feed-menu__list li strong[aria-current="page"] {
	background: rgb(100 120 140 / 14%);
}

.fg-pagination {
	font-size: .9em;
}

.fg-catalog-grid {
	margin-bottom: 16px;
}

.fg-catalog-description {
	white-space: pre-wrap;
}

.fg-catalog-grid .sego-modern-forum-card {
	display: flex;
	flex-direction: column;
}

.fg-catalog-grid .fg-catalog-membership {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 6px 12px;
	margin-top: auto;
	color: var(--fg-member-color, #326744);
}

.fg-catalog-membership button {
	padding: 2px 0;
	border: 0;
	background: transparent;
	color: var(--fg-leave-color, #a04444);
	font: inherit;
	cursor: pointer;
}

.fg-catalog-membership button:hover {
	text-decoration: underline;
}

.fg-catalog-dark {
	--fg-member-color: #a1c5a8;
	--fg-leave-color: #efa7a7;
}

.fg-manage h1 {
	color: inherit;
}

.fg-manage-section {
	margin-top: 1.5em;
}

.fg-manage-section h2 {
	margin-bottom: 0.75em;
}

.fg-manage-section > ul {
	padding-inline-start: 1.5em;
}

.fg-manage-add {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
}

.fg-manage-add input {
	max-width: 100%;
	padding: 0.4em 0.6em;
}

.fg-user-picker {
	position: relative;
	display: inline-flex;
	max-width: 100%;
}

.fg-user-search {
	box-sizing: border-box;
	min-height: 2.2em;
	min-width: 16em;
	max-width: 100%;
	padding: 0.4em 0.6em;
	border: 1px solid #8a8a8a;
	border-radius: 3px;
	background: #fff;
	color: #2c3e50;
	cursor: text;
	white-space: nowrap;
	word-break: keep-all;
	overflow: hidden;
}

.fg-user-list {
	position: absolute;
	z-index: 20;
	top: calc(100% + 0.2em);
	left: 0;
	width: 100%;
	max-height: 18em;
	overflow-y: auto;
	background: #fff;
	border: 1px solid #8a8a8a;
	border-radius: 3px;
	box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.fg-user-option {
	display: block;
	width: 100%;
	padding: 0.45em 0.6em;
	border: 0;
	background: transparent;
	color: inherit;
	text-align: left;
	cursor: pointer;
}

.fg-user-option:hover,
.fg-user-option.is-active {
	background: #e8eef5;
}

.fg-manage-bulk {
	margin-top: 1rem;
}

.fg-manage-bulk summary {
	cursor: pointer;
}

/* Keep the group management form compact and consistent with the forum UI. */
.fg-manage {
	box-sizing: border-box;
	width: min(100% - 2rem, 60rem);
	margin: clamp(1rem, 3vw, 2rem) auto 3rem;
	color: #2c3e50;
}

.fg-manage h1 {
	margin: 0 0 1.25rem;
	font-size: clamp(1.5rem, 2.5vw, 1.9rem);
	line-height: 1.25;
}

.fg-manage-section {
	box-sizing: border-box;
	margin: 1rem 0 0;
	padding: clamp(1rem, 2.5vw, 1.5rem);
	border: 1px solid #d9e0e7;
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 2px 10px rgb(35 52 68 / 6%);
}

.fg-manage-section h2 {
	margin: 0 0 1rem;
	padding-bottom: .65rem;
	border-bottom: 1px solid #e1e6eb;
	font-size: 1.25rem;
	line-height: 1.3;
}

.fg-manage-section form > p {
	margin: .75rem 0 1rem;
}

.fg-manage-section label,
.fg-manage-section legend {
	color: #3c5065;
	font-weight: 500;
}

.fg-manage-section input[type="text"],
.fg-manage-section textarea,
.fg-manage-section .fg-user-search {
	box-sizing: border-box;
	max-width: 100%;
	padding: .6rem .75rem;
	border: 1px solid #bdc8d2;
	border-radius: 6px;
	background: #fff;
	color: #263746;
	font: inherit;
}


.fg-manage-section textarea {
	display: block;
	width: 100%;
	min-height: 7rem;
	resize: vertical;
}

.fg-manage-section input[type="text"]:focus,
.fg-manage-section textarea:focus,
.fg-manage-section .fg-user-search:focus {
	border-color: #4b9cbd;
	outline: 2px solid rgb(75 156 189 / 20%);
}

.fg-manage-section fieldset {
	margin: 1rem 0;
	padding: .8rem 1rem;
	border: 1px solid #d9e0e7;
	border-radius: 8px;
}

.fg-manage-section fieldset p {
	margin: .45rem 0;
}

.fg-manage-section input[type="checkbox"],
.fg-manage-section input[type="radio"] {
	margin-inline-end: .35rem;
	accent-color: #3486a8;
}

.fg-manage .button1,
.fg-manage .button2 {
	min-height: 2.5rem;
	padding: .5rem .9rem;
	border: 1px solid #2f789a;
	border-radius: 6px;
	background: #347f9f;
	color: #fff;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.fg-manage .button2 {
	border-color: #c5ced6;
	background: #edf1f4;
	color: #304253;
}

.fg-manage .button1:hover,
.fg-manage .button1:focus-visible {
	background: #286b88;
}

.fg-manage .button2:hover,
.fg-manage .button2:focus-visible {
	background: #e0e7ec;
}

.fg-manage [role="status"] {
	margin: 0 0 1rem;
	padding: .8rem 1rem;
	border: 1px solid #c4dfe8;
	border-radius: 8px;
	background: #eef8fb;
	color: #28586d;
}

.fg-manage-section > ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.fg-manage-section > ul > li {
	padding: .8rem 0;
	border-bottom: 1px solid #e1e6eb;
}

.fg-manage-section > ul > li:last-child {
	border-bottom: 0;
}

.fg-manage-section > ul form {
	display: inline-flex;
	flex-wrap: wrap;
	gap: .4rem;
	margin-inline-start: .5rem;
}

.fg-manage-bulk {
	padding: .75rem 0;
}

@media (max-width: 600px) {
	.fg-manage {
		width: min(100% - 1rem, 60rem);
	}

	.fg-manage-section {
		padding: 1rem;
	}

	.fg-manage-add {
		align-items: stretch;
	}

	.fg-user-picker,
	.fg-user-search {
		width: 100%;
		min-width: 0;
	}
}
