/* ==========================================================================
   Community OS – design system
   All colors come from the WoltLab style variables, so dark mode and
   customer styles apply automatically. The only own color is the identity
   color of a space (`--communityos-space-color`, set inline per space).
   ========================================================================== */

/* --- Tokens --------------------------------------------------------------- */
:root {
	--communityos-gap-xs: 4px;
	--communityos-gap-s: 8px;
	--communityos-gap-m: 12px;
	--communityos-gap-l: 16px;
	--communityos-gap-xl: 24px;
	/* vertical rhythm: between notices and blocks, and between cards of a list */
	--communityos-stack: 20px;
	--communityos-gap-list: 12px;
	--communityos-radius: var(--wcfBorderRadiusContainer, 8px);
	--communityos-radius-pill: 999px;
	--communityos-transition: 150ms ease;
	--communityos-card-background: var(--wcfContentContainerBackground);
	--communityos-card-border: var(--wcfContentContainerBorder);
	--communityos-card-shadow-hover: var(--wcfBoxShadowCard);
	--communityos-focus-ring: 0 0 0 2px var(--wcfContentBackground), 0 0 0 4px var(--wcfButtonPrimaryBackground);
}

@media (max-width: 544px) {
	:root {
		--communityos-stack: 16px;
		--communityos-gap-list: 10px;
	}
}

/* --- Vertical rhythm -------------------------------------------------------
   Notices, cards and boxes never touch each other. The core only spaces a
   notice (margin-top) and a section (30-40px); a plain block right after the
   page header or after a notice starts without any distance. The rules are
   limited to the pages of the app (data-application) and to its own
   containers, so core pages stay untouched. */
body[data-application="communityos"] .content > :is(woltlab-core-notice, .info, .success, .warning, .error) {
	margin-top: var(--communityos-stack);
}

body[data-application="communityos"] .content > .contentHeader + :not(.section, .sectionContainer, form, .contentInteraction, woltlab-core-notice, .info, .success, .warning, .error, script, style, template),
body[data-application="communityos"] .content > :is(woltlab-core-notice, .info, .success, .warning, .error) + :not(.section, .sectionContainer, form, woltlab-core-notice, .info, .success, .warning, .error, script, style, template),
body[data-application="communityos"] .content > :is(woltlab-core-notice, .info, .success, .warning, .error) + [hidden] + :not(.section, .sectionContainer, form, woltlab-core-notice, .info, .success, .warning, .error, script, style, template) {
	margin-top: var(--communityos-stack);
}

/* Columns and lists of the app space their children with gap; a notice in
   there must not add its own margin on top. */
:is(
	.communityosDiscussionLayout__main,
	.communityosDiscussionLayout__aside,
	.communityosCommunityLayout__main,
	.communityosCommunityLayout__aside,
	.communityosPosts,
	.communityosCardList,
	.communityosDiscussionList
) > :is(woltlab-core-notice, .info, .success, .warning, .error) {
	margin-bottom: 0;
	margin-top: 0;
}

/* Inside cards and boxes: no extra space above a leading notice, a steady
   distance below every notice. */
:is(.communityosCard, .communityosSideCard, .communityosSpacePanel, .communityosPaywall, .communityosKnowledgeWrite) > :is(woltlab-core-notice, .info, .success, .warning, .error):first-child {
	margin-top: 0;
}

:is(.communityosCard, .communityosSideCard, .communityosSpacePanel, .communityosPaywall) > :where(woltlab-core-notice, .info, .success, .warning, .error) + * {
	margin-top: var(--communityos-gap-m);
}

/* Space identity color with the primary color of the style as fallback. */
.communityosSpaceCard,
.communityosSpaceHeader,
.communityosSpaceIcon,
.communityosSpaceTag,
.communityosTopicSpaces__item {
	--communityos-accent: var(--communityos-space-color, var(--wcfButtonPrimaryBackground));
}

/* --- Cards ---------------------------------------------------------------- */
.communityosCardList {
	display: flex;
	flex-direction: column;
	gap: var(--communityos-gap-list);
	list-style: none;
	margin: 0;
	padding: 0;
}

.communityosCard {
	background-color: var(--communityos-card-background);
	border: 1px solid var(--communityos-card-border);
	border-radius: var(--communityos-radius);
	color: var(--wcfContentText);
	padding: var(--communityos-gap-l);
	position: relative;
	transition:
		border-color var(--communityos-transition),
		box-shadow var(--communityos-transition),
		transform var(--communityos-transition);
}

.communityosCard--interactive:hover,
.communityosDiscussionCard:hover {
	border-color: var(--wcfContentBorderInner);
	box-shadow: var(--communityos-card-shadow-hover);
}

.communityosCard--interactive:hover {
	transform: translateY(-1px);
}

.communityosCard:focus-within {
	border-color: var(--wcfButtonPrimaryBackground);
}

/* The whole card is clickable through the title link; buttons stay above it. */
.communityosCard__stretchedLink::after {
	border-radius: var(--communityos-radius);
	content: "";
	inset: 0;
	position: absolute;
	z-index: 0;
}

.communityosCard__stretchedLink:focus-visible {
	outline: none;
}

.communityosCard__stretchedLink:focus-visible::after {
	box-shadow: var(--communityos-focus-ring);
}

.communityosCard a:not(.communityosCard__stretchedLink),
.communityosCard button,
.communityosCard .button {
	position: relative;
	z-index: 1;
}

/* --- Chips & badges ------------------------------------------------------- */
.communityosChips {
	display: flex;
	flex-wrap: wrap;
	gap: var(--communityos-gap-xs) 6px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.communityosChip {
	align-items: center;
	background-color: var(--wcfButtonBackground);
	border: 1px solid transparent;
	border-radius: var(--communityos-radius-pill);
	color: var(--wcfButtonText);
	display: inline-flex;
	font-size: var(--wcfFontSizeSmall);
	gap: var(--communityos-gap-xs);
	line-height: 1.4;
	max-width: 100%;
	padding: 2px 10px;
	overflow-wrap: anywhere;
}

.communityosChip fa-icon {
	color: inherit;
}

.communityosChip--solved {
	background-color: var(--wcfStatusSuccessBackground);
	border-color: var(--wcfStatusSuccessBorder);
	color: var(--wcfStatusSuccessText);
}

.communityosChip--open {
	background-color: var(--wcfStatusInfoBackground);
	border-color: var(--wcfStatusInfoBorder);
	color: var(--wcfStatusInfoText);
}

.communityosChip--pinned,
.communityosChip--expert {
	background-color: var(--wcfStatusWarningBackground);
	border-color: var(--wcfStatusWarningBorder);
	color: var(--wcfStatusWarningText);
}

.communityosChip--closed {
	background-color: transparent;
	border-color: var(--wcfContentBorderInner);
	color: var(--wcfContentDimmedText);
}

.communityosChip--deleted {
	background-color: var(--wcfStatusErrorBackground);
	border-color: var(--wcfStatusErrorBorder);
	color: var(--wcfStatusErrorText);
}

.communityosChip--new,
.communityosChip--knowledge {
	background-color: var(--wcfButtonPrimaryBackground);
	color: var(--wcfButtonPrimaryText);
}

.communityosChip--link {
	text-decoration: none;
	transition:
		background-color var(--communityos-transition),
		color var(--communityos-transition);
}

.communityosChip--link:hover,
.communityosChip--link:focus-visible {
	background-color: var(--wcfButtonBackgroundActive);
	color: var(--wcfButtonTextActive);
	text-decoration: none;
}

.communityosChips--large .communityosChip {
	font-size: var(--wcfFontSizeDefault);
	padding: 6px 14px;
}

.communityosChips--subtle .communityosChip {
	background-color: transparent;
	border-color: var(--wcfContentBorderInner);
	color: var(--wcfContentDimmedText);
	border-radius: var(--communityos-radius);
}

.communityosChip__text {
	min-width: 0;
	overflow-wrap: anywhere;
}

/* Small tag with the color of a space, e.g. in the feed. */
.communityosSpaceTag {
	align-items: center;
	color: var(--wcfContentText);
	display: inline-flex;
	font-weight: 600;
	gap: 6px;
}

.communityosSpaceTag::before {
	background-color: var(--communityos-accent);
	border-radius: 50%;
	content: "";
	flex: 0 0 auto;
	height: 8px;
	width: 8px;
}

/* Unread marker */
.communityosUnreadDot {
	background-color: var(--wcfButtonPrimaryBackground);
	border-radius: 50%;
	display: inline-block;
	flex: 0 0 auto;
	height: 8px;
	margin-top: 0.55em;
	width: 8px;
}

/* --- Meta lines & stats --------------------------------------------------- */
.communityosMeta {
	align-items: center;
	color: var(--wcfContentDimmedText);
	display: flex;
	flex-wrap: wrap;
	font-size: var(--wcfFontSizeSmall);
	gap: var(--communityos-gap-xs) var(--communityos-gap-m);
	list-style: none;
	margin: 0;
	padding: 0;
}

.communityosMeta__item {
	align-items: center;
	display: inline-flex;
	gap: var(--communityos-gap-xs);
}

.communityosMeta a {
	color: inherit;
}

.communityosStats {
	display: flex;
	gap: var(--communityos-gap-m);
	list-style: none;
	margin: 0;
	padding: 0;
}

.communityosStat {
	align-items: center;
	color: var(--wcfContentDimmedText);
	display: inline-flex;
	gap: var(--communityos-gap-xs);
}

.communityosStat__value {
	color: var(--wcfContentText);
	font-variant-numeric: tabular-nums;
	font-weight: 600;
}

/* --- Avatars -------------------------------------------------------------- */
.communityosAvatarStack {
	align-items: center;
	display: inline-flex;
	flex-direction: row;
}

.communityosAvatarStack__item {
	border-radius: 50%;
	box-shadow: 0 0 0 2px var(--communityos-card-background);
	display: inline-flex;
}

.communityosAvatarStack__item + .communityosAvatarStack__item {
	margin-inline-start: -8px;
}

.communityosAvatarStack__item img {
	border-radius: 50%;
	display: block;
}

.communityosAvatarStack__more {
	color: var(--wcfContentDimmedText);
	font-size: var(--wcfFontSizeSmall);
	margin-inline-start: 6px;
}

.communityosAvatarFallback {
	align-items: center;
	background-color: var(--wcfButtonBackground);
	border-radius: 50%;
	color: var(--wcfButtonText);
	display: inline-flex;
	height: 40px;
	justify-content: center;
	width: 40px;
}

.communityosAvatarFallback--knowledge {
	background-color: var(--wcfButtonPrimaryBackground);
	color: var(--wcfButtonPrimaryText);
}

/* --- Space icon tile ------------------------------------------------------ */
.communityosSpaceIcon {
	align-items: center;
	background-color: var(--wcfButtonBackground);
	background-color: color-mix(in srgb, var(--communityos-accent) 16%, transparent);
	border-radius: var(--communityos-radius);
	color: var(--communityos-accent);
	display: inline-flex;
	flex: 0 0 auto;
	height: 48px;
	justify-content: center;
	width: 48px;
}

.communityosSpaceIcon fa-icon {
	color: inherit;
}

.communityosSpaceIcon--small {
	border-radius: var(--wcfBorderRadius);
	height: 32px;
	width: 32px;
}

.communityosSpaceIcon--large {
	border-radius: calc(var(--communityos-radius) * 1.5);
	height: 80px;
	width: 80px;
}

/* --- Empty states --------------------------------------------------------- */
.communityosEmpty {
	align-items: center;
	border: 1px dashed var(--wcfContentBorderInner);
	border-radius: var(--communityos-radius);
	display: flex;
	flex-direction: column;
	gap: var(--communityos-gap-s);
	margin: var(--communityos-gap-l) 0;
	padding: 40px var(--communityos-gap-l);
	text-align: center;
}

.communityosEmpty__icon {
	align-items: center;
	background-color: var(--wcfButtonBackground);
	border-radius: 50%;
	color: var(--wcfContentDimmedText);
	display: inline-flex;
	height: 88px;
	justify-content: center;
	margin-bottom: var(--communityos-gap-s);
	width: 88px;
}

.communityosEmpty--success .communityosEmpty__icon {
	background-color: var(--wcfStatusSuccessBackground);
	color: var(--wcfStatusSuccessText);
}

.communityosEmpty__title {
	color: var(--wcfContentHeadlineText);
	font-size: var(--wcfFontSizeHeadline);
	font-weight: 600;
	max-width: 60ch;
}

.communityosEmpty__text {
	color: var(--wcfContentDimmedText);
	max-width: 60ch;
}

.communityosEmpty__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--communityos-gap-s);
	justify-content: center;
	margin-top: var(--communityos-gap-s);
}

/* --- Segmented control & tabs -------------------------------------------- */
.communityosSegmented {
	background-color: var(--wcfButtonBackground);
	border-radius: var(--communityos-radius-pill);
	display: inline-flex;
	gap: 2px;
	max-width: 100%;
	overflow-x: auto;
	padding: 3px;
	scrollbar-width: none;
}

.communityosSegmented::-webkit-scrollbar {
	display: none;
}

.communityosSegmented__item {
	align-items: center;
	border-radius: var(--communityos-radius-pill);
	color: var(--wcfButtonText);
	display: inline-flex;
	flex: 0 0 auto;
	font-size: var(--wcfFontSizeSmall);
	font-weight: 600;
	gap: 6px;
	padding: 6px 14px;
	text-decoration: none;
	transition:
		background-color var(--communityos-transition),
		color var(--communityos-transition);
	white-space: nowrap;
}

.communityosSegmented__item:hover {
	color: var(--wcfButtonTextActive);
	text-decoration: none;
}

.communityosSegmented__item.active {
	background-color: var(--wcfContentBackground);
	box-shadow: 0 1px 3px rgb(0 0 0 / 15%);
	color: var(--wcfContentText);
}

.communityosTabs {
	border-bottom: 1px solid var(--wcfContentBorderInner);
	margin: var(--communityos-gap-l) 0;
	overflow-x: auto;
	scrollbar-width: none;
}

.communityosTabs::-webkit-scrollbar {
	display: none;
}

.communityosTabs__list {
	display: flex;
	gap: var(--communityos-gap-xs);
	list-style: none;
	margin: 0;
	padding: 0;
}

.communityosTabs__link {
	align-items: center;
	border-bottom: 2px solid transparent;
	color: var(--wcfContentDimmedText);
	display: inline-flex;
	font-weight: 600;
	gap: var(--communityos-gap-s);
	margin-bottom: -1px;
	padding: 10px 14px;
	text-decoration: none;
	transition:
		border-color var(--communityos-transition),
		color var(--communityos-transition);
	white-space: nowrap;
}

.communityosTabs__link:hover {
	color: var(--wcfContentText);
	text-decoration: none;
}

.communityosTabs__link.active {
	border-bottom-color: var(--wcfButtonPrimaryBackground);
	color: var(--wcfContentText);
}

.communityosTabs__count {
	background-color: var(--wcfButtonBackground);
	border-radius: var(--communityos-radius-pill);
	color: var(--wcfButtonText);
	font-size: var(--wcfFontSizeSmall);
	font-variant-numeric: tabular-nums;
	padding: 0 8px;
}

/* Visible keyboard focus for all interactive parts. */
.communityosChip--link:focus-visible,
.communityosSegmented__item:focus-visible,
.communityosTabs__link:focus-visible,
.communityosDiscussionCard__link:focus-visible,
.communityosHero__input:focus-visible {
	box-shadow: var(--communityos-focus-ring);
	outline: none;
}

/* --- Skeleton (loading placeholder) -------------------------------------- */
.communityosSkeleton {
	animation: communityosSkeletonPulse 1.4s ease-in-out infinite;
	background-color: var(--wcfButtonBackground);
	border-radius: var(--wcfBorderRadius);
	display: block;
	height: 1em;
}

@keyframes communityosSkeletonPulse {
	50% {
		opacity: 0.5;
	}
}

/* ==========================================================================
   Space overview
   ========================================================================== */
.communityosHero {
	background-color: var(--communityos-card-background);
	background-image: linear-gradient(
		135deg,
		color-mix(in srgb, var(--wcfButtonPrimaryBackground) 12%, transparent),
		transparent 60%
	);
	border: 1px solid var(--communityos-card-border);
	border-radius: calc(var(--communityos-radius) * 1.5);
	display: flex;
	flex-direction: column;
	gap: var(--communityos-gap-l);
	margin-bottom: var(--communityos-gap-xl);
	padding: var(--communityos-gap-xl);
}

.communityosHero__title {
	color: var(--wcfContentHeadlineText);
	font-size: var(--wcfFontSizeTitle);
	font-weight: 600;
	line-height: 1.25;
}

.communityosHero__description {
	color: var(--wcfContentDimmedText);
	margin-top: var(--communityos-gap-xs);
	max-width: 65ch;
}

.communityosHero__search {
	align-items: center;
	display: flex;
	gap: var(--communityos-gap-s);
	max-width: 720px;
	position: relative;
}

.communityosHero__searchIcon {
	color: var(--wcfInputPlaceholder);
	left: 14px;
	pointer-events: none;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
}

.communityosHero__input {
	background-color: var(--wcfInputBackground);
	border: 1px solid var(--wcfInputBorder);
	border-radius: var(--communityos-radius-pill);
	color: var(--wcfInputText);
	flex: 1 1 auto;
	font-size: var(--wcfFontSizeDefault);
	min-width: 0;
	padding: 10px 16px 10px 40px;
	width: 100%;
}

.communityosHero__input:focus {
	border-color: var(--wcfInputBorderActive);
}

.communityosHero__search .button {
	border-radius: var(--communityos-radius-pill);
	flex: 0 0 auto;
}

.communityosSpaceList {
	display: grid;
	gap: var(--communityos-gap-l);
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}

.communityosSpaceCard {
	display: flex;
	flex-direction: column;
	gap: var(--communityos-gap-m);
}

.communityosSpaceCard::before {
	background-color: var(--communityos-accent);
	border-radius: var(--communityos-radius) var(--communityos-radius) 0 0;
	content: "";
	height: 3px;
	left: -1px;
	position: absolute;
	right: -1px;
	top: -1px;
}

.communityosSpaceCard__header {
	align-items: flex-start;
	display: flex;
	gap: var(--communityos-gap-m);
}

.communityosSpaceCard__heading {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.communityosSpaceCard__title {
	font-size: var(--wcfFontSizeHeadline);
	font-weight: 600;
	line-height: 1.3;
	overflow-wrap: anywhere;
}

.communityosSpaceCard__link {
	color: var(--wcfContentHeadlineText);
	text-decoration: none;
}

.communityosSpaceCard:hover .communityosSpaceCard__link {
	color: var(--wcfContentLinkActive);
}

.communityosSpaceCard__description {
	color: var(--wcfContentText);
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	overflow: hidden;
}

.communityosSpaceCard__footer {
	align-items: center;
	border-top: 1px solid var(--wcfContentBorderInner);
	display: flex;
	flex-wrap: wrap;
	gap: var(--communityos-gap-s);
	justify-content: space-between;
	margin-top: auto;
	padding-top: var(--communityos-gap-m);
}

.communityosSpaceCard__experts {
	align-items: center;
	color: var(--wcfContentDimmedText);
	display: inline-flex;
	font-size: var(--wcfFontSizeSmall);
	gap: var(--communityos-gap-s);
}

.communityosSpaceCard__follow {
	margin-inline-start: auto;
}

/* ==========================================================================
   Space page
   ========================================================================== */
.communityosSpaceHeader__icon {
	color: var(--communityos-accent, var(--communityos-space-color, var(--wcfContentLink)));
	flex: 0 0 auto;
}

.communityosSpace__description {
	white-space: pre-line;
}

.communityosSpaceHeader__meta fa-icon {
	color: var(--wcfContentDimmedText);
}

.communityosFilterBar {
	margin-bottom: var(--communityos-gap-l);
}

.communityosSpacePanel {
	margin-top: 0;
}

.communityosKnowledgeCard {
	align-items: flex-start;
	display: flex;
	gap: var(--communityos-gap-m);
}

.communityosKnowledgeCard__icon {
	align-items: center;
	background-color: var(--wcfStatusWarningBackground);
	border-radius: var(--wcfBorderRadius);
	color: var(--wcfStatusWarningText);
	display: inline-flex;
	flex: 0 0 auto;
	height: 36px;
	justify-content: center;
	width: 36px;
}

.communityosKnowledgeCard__main {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.communityosKnowledgeCard__title {
	font-size: var(--wcfFontSizeHeadline);
	font-weight: 600;
	overflow-wrap: anywhere;
}

.communityosKnowledgeCard__title a {
	color: var(--wcfContentHeadlineText);
}

.communityosKnowledgeCard__excerpt {
	color: var(--wcfContentDimmedText);
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	overflow: hidden;
}

/* Experts of a space */
.communityosSpaceExperts__list {
	display: grid;
	gap: var(--communityos-gap-s);
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
	list-style: none;
	margin: 0;
	padding: 0;
}

.communityosSpaceExperts__item {
	align-items: center;
	display: flex;
	gap: var(--communityos-gap-m);
	padding: var(--communityos-gap-m);
}

.communityosSpaceExperts__item img {
	border-radius: 50%;
}

.communityosSpaceExperts__main {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	min-width: 0;
}

.communityosSpaceExperts__name {
	font-weight: 600;
}

.communityosSpaceExperts__meta {
	color: var(--wcfContentDimmedText);
	display: flex;
	flex-wrap: wrap;
	font-size: var(--wcfFontSizeSmall);
	gap: var(--communityos-gap-m);
}

.communityosSpaceExperts__score {
	background-color: var(--wcfButtonBackground);
	border-radius: var(--communityos-radius-pill);
	color: var(--wcfButtonText);
	font-variant-numeric: tabular-nums;
	font-weight: 600;
	padding: 2px 10px;
}

/* ==========================================================================
   Discussion card (space list, feed, unanswered questions)
   ========================================================================== */
/* The lists are the containers, so the cards adapt to the space they get. */
.communityosDiscussionList,
.communityosCardList {
	container-type: inline-size;
}

.communityosDiscussionList {
	display: flex;
	flex-direction: column;
	gap: var(--communityos-gap-list);
}

.communityosDiscussionCard {
	align-items: start;
	column-gap: var(--communityos-gap-m);
	display: grid;
	grid-template-areas:
		"avatar main aside"
		"avatar why why";
	grid-template-columns: auto minmax(0, 1fr) auto;
	padding: var(--communityos-gap-m) var(--communityos-gap-l);
}

.communityosDiscussionCard--pinned {
	border-inline-start: 3px solid var(--wcfStatusWarningBorder);
}

.communityosDiscussionCard--deleted {
	opacity: 0.7;
}

.communityosDiscussionCard__avatar {
	grid-area: avatar;
}

.communityosDiscussionCard__avatar img {
	border-radius: 50%;
	display: block;
}

.communityosDiscussionCard__main {
	display: flex;
	flex-direction: column;
	gap: 6px;
	grid-area: main;
	min-width: 0;
}

.communityosDiscussionCard__header {
	align-items: flex-start;
	display: flex;
	gap: var(--communityos-gap-s);
}

.communityosDiscussionCard__title {
	font-size: var(--wcfFontSizeHeadline);
	font-weight: 600;
	line-height: 1.35;
	min-width: 0;
	overflow-wrap: anywhere;
}

.communityosDiscussionCard__link {
	border-radius: var(--wcfBorderRadius);
	color: var(--wcfContentHeadlineText);
}

.communityosDiscussionCard__link:hover {
	color: var(--wcfContentLinkActive);
}

.communityosDiscussionCard--unread .communityosDiscussionCard__title {
	font-weight: 700;
}

.communityosDiscussionCard__excerpt {
	color: var(--wcfContentDimmedText);
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	overflow: hidden;
	overflow-wrap: anywhere;
}

.communityosDiscussionCard__aside {
	align-items: flex-end;
	display: flex;
	flex-direction: column;
	gap: var(--communityos-gap-s);
	grid-area: aside;
}

@container (max-width: 520px) {
	.communityosDiscussionCard {
		grid-template-areas:
			"avatar main"
			"avatar aside"
			"why why";
		grid-template-columns: auto minmax(0, 1fr);
	}

	.communityosDiscussionCard__aside {
		align-items: center;
		flex-direction: row;
		justify-content: space-between;
		margin-top: var(--communityos-gap-s);
	}
}

/* ==========================================================================
   Feed
   ========================================================================== */
.communityosFeedToolbar {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: var(--communityos-gap-s) var(--communityos-gap-m);
	justify-content: space-between;
	margin-bottom: var(--communityos-gap-m);
}

.communityosFeed__description {
	color: var(--wcfContentDimmedText);
	font-size: var(--wcfFontSizeSmall);
	margin-bottom: var(--communityos-gap-l);
	max-width: 80ch;
}

.communityosFeedItem__why {
	align-items: center;
	border-top: 1px dashed var(--wcfContentBorderInner);
	display: flex;
	flex-wrap: wrap;
	gap: 6px var(--communityos-gap-s);
	grid-area: why;
	margin-top: var(--communityos-gap-m);
	padding-top: var(--communityos-gap-s);
}

.communityosFeedItem__whyLabel {
	align-items: center;
	color: var(--wcfContentDimmedText);
	display: inline-flex;
	font-size: var(--wcfFontSizeSmall);
	gap: var(--communityos-gap-xs);
}

.communityosFeedItem__points {
	color: var(--wcfContentDimmedText);
	font-variant-numeric: tabular-nums;
	font-weight: 600;
	white-space: nowrap;
}

/* Signal settings, shown in a dialog */
.communityosFeedSignals__description {
	color: var(--wcfContentDimmedText);
	margin-bottom: var(--communityos-gap-m);
}

.communityosFeedSignals__list {
	display: flex;
	flex-direction: column;
	gap: var(--communityos-gap-s);
	list-style: none;
	margin: 0;
	padding: 0;
}

.communityosFeedSignals__label {
	align-items: flex-start;
	border: 1px solid var(--wcfContentBorderInner);
	border-radius: var(--communityos-radius);
	cursor: pointer;
	display: flex;
	gap: var(--communityos-gap-m);
	padding: var(--communityos-gap-m);
	transition: border-color var(--communityos-transition);
}

.communityosFeedSignals__label:hover,
.communityosFeedSignals__label:focus-within {
	border-color: var(--wcfButtonPrimaryBackground);
}

.communityosFeedSignals__label input {
	margin-top: 3px;
}

.communityosFeedSignals__text {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.communityosFeedSignals__text small {
	color: var(--wcfContentDimmedText);
}

/* ==========================================================================
   Unanswered questions in the member's topics
   ========================================================================== */
.communityosTopicSpaces {
	display: grid;
	gap: var(--communityos-gap-s);
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
	list-style: none;
	margin: 0;
	padding: 0;
}

.communityosTopicSpaces__item {
	align-items: center;
	display: flex;
	gap: var(--communityos-gap-m);
	padding: var(--communityos-gap-m);
}

.communityosTopicSpaces__main {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.communityosTopicSpaces__title {
	color: var(--wcfContentHeadlineText);
	font-weight: 600;
	overflow-wrap: anywhere;
}

.communityosTopicSpaces__experts {
	flex: 0 0 auto;
	font-size: var(--wcfFontSizeSmall);
}

.communityosUnanswered__limit {
	color: var(--wcfContentDimmedText);
	font-size: var(--wcfFontSizeSmall);
	margin-top: 10px;
}

/* --- Small screens -------------------------------------------------------- */
@media (max-width: 544px) {
	.communityosHero {
		padding: var(--communityos-gap-l);
	}

	.communityosHero__search {
		flex-wrap: wrap;
	}

	.communityosHero__search .button {
		width: 100%;
	}

	.communityosHero__searchIcon {
		top: 22px;
	}

	.communityosCard {
		padding: var(--communityos-gap-m);
	}

	.communityosSpaceIcon--large {
		height: 56px;
		width: 56px;
	}

	.communityosTopicSpaces__item {
		flex-wrap: wrap;
	}
}

/* --- Reduced motion ------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	.communityosCard,
	.communityosChip--link,
	.communityosSegmented__item,
	.communityosTabs__link,
	.communityosFeedSignals__label {
		transition: none;
	}

	.communityosCard--interactive:hover {
		transform: none;
	}

	.communityosSkeleton {
		animation: none;
	}
}

/* ==========================================================================
   Further components
   ========================================================================== */
.communityosHealthFilter > ul {
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
}

.communityosHealthFilter__space {
	align-items: center;
	display: inline-flex;
	gap: 6px;
}

.communityosHealthKpis {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.communityosHealthKpi {
	background-color: var(--wcfContentContainerBackground);
	border: 1px solid var(--wcfContentContainerBorder);
	border-radius: var(--wcfBorderRadius);
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 16px;
}

.communityosHealthKpi__label {
	color: var(--wcfContentDimmedText);
	font-size: var(--wcfFontSizeSmall);
}

.communityosHealthKpi__value {
	font-size: 28px;
	font-weight: 600;
	line-height: 1.2;
}

.communityosHealthKpi__trend {
	align-items: center;
	display: flex;
	gap: 4px;
	font-size: var(--wcfFontSizeSmall);
	min-height: 1.5em;
}

.communityosHealthKpi__trend--good {
	color: var(--wcfStatusSuccessText);
}

.communityosHealthKpi__trend--bad {
	color: var(--wcfStatusErrorText);
}

.communityosHealthKpi__trend--neutral {
	color: var(--wcfContentDimmedText);
}

.communityosHealthKpi__previous,
.communityosHealthKpi__hint {
	color: var(--wcfContentDimmedText);
	font-size: var(--wcfFontSizeSmall);
}

.communityosHealthKpi__hint {
	font-style: italic;
}

.communityosHealthChart {
	align-items: flex-end;
	border-bottom: 1px solid var(--wcfContentContainerBorder);
	display: flex;
	gap: 2px;
	height: 160px;
}

.communityosHealthChart__column {
	align-items: flex-end;
	display: flex;
	flex: 1 1 0;
	height: 100%;
	min-width: 0;
}

.communityosHealthChart__bar {
	background-color: var(--wcfContentLink);
	border-radius: 2px 2px 0 0;
	width: 100%;
}

.communityosHealthChart__column:hover .communityosHealthChart__bar {
	opacity: 0.75;
}

.communityosHealthChart__axis {
	color: var(--wcfContentDimmedText);
	display: flex;
	font-size: var(--wcfFontSizeSmall);
	justify-content: space-between;
	margin-top: 4px;
}

.communityosHealthFunnel {
	display: flex;
	flex-direction: column;
	gap: 10px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.communityosHealthFunnel__step {
	align-items: center;
	display: grid;
	gap: 12px;
	grid-template-columns: minmax(140px, 200px) 1fr minmax(110px, auto);
}

.communityosHealthFunnel__track {
	background-color: var(--wcfContentContainerBackground);
	border: 1px solid var(--wcfContentContainerBorder);
	border-radius: var(--wcfBorderRadius);
	display: block;
	height: 20px;
	overflow: hidden;
}

.communityosHealthFunnel__bar {
	background-color: var(--wcfContentLink);
	display: block;
	height: 100%;
}

.communityosHealthFunnel__value {
	font-weight: 600;
	text-align: right;
}

.communityosHealthFunnel__conversion {
	color: var(--wcfContentDimmedText);
	font-size: var(--wcfFontSizeSmall);
	font-weight: 400;
	margin-left: 6px;
}

@media (max-width: 544px) {
	.communityosHealthFunnel__step {
		grid-template-columns: 1fr;
		gap: 4px;
	}

	.communityosHealthFunnel__value {
		text-align: left;
	}
}

/* Expertise profile tab */
.communityosExpertise__summary {
	display: grid;
	gap: 10px;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	margin-bottom: 20px;
}

.communityosExpertise__stat {
	align-items: center;
	background-color: var(--wcfContentContainerBackground);
	border: 1px solid var(--wcfContentContainerBorder);
	border-radius: var(--wcfBorderRadius);
	column-gap: 10px;
	display: grid;
	grid-template-areas: "icon value" "icon label";
	grid-template-columns: auto 1fr;
	padding: 10px 15px;
}

.communityosExpertise__statIcon {
	color: var(--wcfContentLink);
	grid-area: icon;
}

.communityosExpertise__statValue {
	font-size: var(--wcfFontSizeHeadline);
	grid-area: value;
}

.communityosExpertise__statLabel {
	color: var(--wcfContentDimmedText);
	font-size: var(--wcfFontSizeSmall);
	grid-area: label;
}

.communityosExpertise__trust--4 .communityosExpertise__statIcon {
	color: var(--wcfStatusSuccessText);
}

.communityosExpertise__topics {
	display: flex;
	flex-direction: column;
	gap: 15px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.communityosExpertise__topicHeader {
	align-items: baseline;
	display: flex;
	gap: 10px;
	justify-content: space-between;
}

.communityosExpertise__topicTitle a {
	color: var(--wcfContentLink);
}

.communityosExpertise__topicScore {
	font-variant-numeric: tabular-nums;
	font-weight: 600;
}

.communityosExpertise__bar {
	background-color: var(--wcfContentContainerBorder);
	border-radius: 999px;
	height: 6px;
	margin: 5px 0;
	overflow: hidden;
}

.communityosExpertise__barFill {
	background-color: var(--wcfContentLink);
	border-radius: 999px;
	display: block;
	height: 100%;
}

.communityosExpertise__topicMeta {
	color: var(--wcfContentDimmedText);
	font-size: var(--wcfFontSizeSmall);
}

.communityosSimilar {
	background-color: var(--wcfContentContainerBackground);
	border: 1px solid var(--wcfContentBorderInner);
	border-radius: var(--wcfBorderRadius);
	margin-top: 10px;
	padding: 12px 16px;
}

.communityosSimilar__title {
	color: var(--wcfContentText);
	font-size: var(--wcfFontSizeDefault);
	font-weight: 600;
	margin-bottom: 8px;
}

.communityosSimilar__list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.communityosSimilar__item {
	min-width: 0;
}

.communityosSimilar__link {
	font-weight: 600;
	overflow-wrap: anywhere;
}

.communityosSimilar__meta {
	align-items: center;
	display: inline-flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-left: 8px;
}

.communityosSimilar__type {
	color: var(--wcfContentDimmedText);
	font-size: var(--wcfFontSizeSmall);
}

.communityosSimilar__excerpt {
	color: var(--wcfContentDimmedText);
	font-size: var(--wcfFontSizeSmall);
	margin-top: 2px;
	overflow-wrap: anywhere;
}

.communityosSimilar__more {
	display: inline-block;
	font-size: var(--wcfFontSizeSmall);
	margin-top: 10px;
}

/* Pilot key figures (ACP) */
.communityosPilotCriterion {
	border-top-width: 4px;
}

.communityosPilotCriterion--reached {
	border-top-color: var(--wcfStatusSuccessBorder);
}

.communityosPilotCriterion--close {
	border-top-color: var(--wcfStatusWarningBorder);
}

.communityosPilotCriterion--missed {
	border-top-color: var(--wcfStatusErrorBorder);
}

.communityosPilotCriterion__head {
	align-items: center;
	display: flex;
	gap: 8px;
}

.communityosPilotCriterion__light {
	background-color: var(--wcfContentDimmedText);
	border-radius: 50%;
	flex: 0 0 auto;
	height: 12px;
	width: 12px;
}

.communityosPilotCriterion--reached .communityosPilotCriterion__light {
	background-color: var(--wcfStatusSuccessText);
}

.communityosPilotCriterion--close .communityosPilotCriterion__light {
	background-color: var(--wcfStatusWarningText);
}

.communityosPilotCriterion--missed .communityosPilotCriterion__light {
	background-color: var(--wcfStatusErrorText);
}

.communityosPilotCriterion__status {
	font-size: var(--wcfFontSizeSmall);
	font-weight: 600;
}

.communityosPilotCriterion--reached .communityosPilotCriterion__status {
	color: var(--wcfStatusSuccessText);
}

.communityosPilotCriterion--close .communityosPilotCriterion__status {
	color: var(--wcfStatusWarningText);
}

.communityosPilotCriterion--missed .communityosPilotCriterion__status {
	color: var(--wcfStatusErrorText);
}

.communityosPilotCriterion--none .communityosPilotCriterion__status {
	color: var(--wcfContentDimmedText);
}

.communityosPilotCriterion__target {
	font-size: var(--wcfFontSizeSmall);
}

.communityosPilotCriteria__summary {
	margin-top: 12px;
}

.communityosPilotBar {
	align-items: center;
	display: flex;
	gap: 8px;
	min-width: 140px;
}

.communityosPilotBar__track {
	background-color: var(--wcfContentContainerBackground);
	border: 1px solid var(--wcfContentContainerBorder);
	border-radius: var(--wcfBorderRadius);
	display: block;
	flex: 1 1 auto;
	height: 10px;
	overflow: hidden;
}

.communityosPilotBar__fill {
	background-color: var(--wcfContentLink);
	display: block;
	height: 100%;
}

.communityosPilotBar__value {
	flex: 0 0 auto;
	font-variant-numeric: tabular-nums;
	min-width: 4.5em;
	text-align: right;
}

/* Related discussions and knowledge articles */
/* Moderation */
.communityosModerationCase__details {
	margin-top: 10px;
}

.communityosModerationCase__text {
	overflow-wrap: anywhere;
	white-space: pre-line;
}

.communityosModerationCase__excerpt {
	border-left: 3px solid var(--wcfContentBorderInner);
	color: var(--wcfContentDimmedText);
	margin: 10px 0;
	overflow-wrap: anywhere;
	padding-left: 10px;
}

.communityosModerationCase__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.communityosModerationNotice {
	margin-bottom: 10px;
}

.communityosModerationNotice__note {
	display: block;
	margin-top: 5px;
	overflow-wrap: anywhere;
	white-space: pre-line;
}

.communityosModerationNotice .button {
	margin-top: 8px;
}

/* Live updates */
.communityosRealtimeNotice {
	align-items: center;
	background-color: var(--wcfButtonPrimaryBackground);
	border-radius: 999px;
	bottom: 20px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
	color: var(--wcfButtonPrimaryText);
	display: flex;
	left: 50%;
	max-width: calc(100vw - 20px);
	position: fixed;
	transform: translateX(-50%);
	z-index: 200;
}

.communityosRealtimeNotice[hidden] {
	display: none;
}

.communityosRealtimeNotice__action,
.communityosRealtimeNotice__close {
	background: transparent;
	border: 0;
	color: inherit;
	cursor: pointer;
	font-size: var(--wcfFontSizeDefault);
}

.communityosRealtimeNotice__action {
	overflow: hidden;
	padding: 10px 6px 10px 18px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.communityosRealtimeNotice__close {
	padding: 10px 14px 10px 6px;
}

.communityosRealtimeNotice fa-icon {
	color: inherit;
	pointer-events: none;
}

.communityosRealtimePresence {
	color: var(--wcfContentDimmedText);
}

/* API & MCP */
.communityosApiTokens code,
.communityosApiDoc code {
	overflow-wrap: anywhere;
}

.communityosApiNewToken__row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.communityosApiNewToken__value {
	flex: 1 1 320px;
	font-family: var(--wcfFontFamilyMonospace, monospace);
}

.communityosApiDoc__list {
	list-style: disc;
	margin: 10px 0 10px 20px;
}

.communityosApiDoc__exampleTitle {
	font-weight: 600;
	margin: 20px 0 5px;
}

.communityosApiDoc__code {
	background-color: var(--wcfContentContainerBackground);
	border: 1px solid var(--wcfContentBorderInner);
	border-radius: var(--wcfBorderRadius);
	font-family: var(--wcfFontFamilyMonospace, monospace);
	font-size: 13px;
	overflow-x: auto;
	padding: 10px;
	white-space: pre;
}

/* OAuth consent and app lists */
.communityosOAuthClients code,
.communityosOAuthGrants code {
	overflow-wrap: anywhere;
}

.communityosOAuthConsent {
	max-width: 640px;
}

.communityosOAuthConsent__app {
	background-color: var(--wcfContentContainerBackground);
	border: 1px solid var(--wcfContentContainerBorder);
	border-radius: var(--wcfBorderRadius);
	margin-bottom: 20px;
	padding: 15px 20px;
}

.communityosOAuthConsent__name {
	font-size: var(--wcfFontSizeHeadline, 18px);
	font-weight: 600;
}

.communityosOAuthConsent__publisher,
.communityosOAuthConsent__hint,
.communityosOAuthConsent__redirect {
	color: var(--wcfContentDimmedText);
}

.communityosOAuthConsent__scopes {
	display: grid;
	gap: 8px;
	margin: 15px 0;
}

.communityosOAuthConsent__scope {
	border-left: 3px solid var(--wcfButtonPrimaryBackground);
	display: grid;
	gap: 2px;
	padding: 4px 0 4px 12px;
}

.communityosOAuthConsent__scopeDescription {
	color: var(--wcfContentDimmedText);
}

/* Chat */
.communityosChat__toolbar {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 12px;
}

.communityosChat__toolbarHint {
	color: var(--wcfContentDimmedText);
	flex: 1 0 100%;
}

.communityosChat__selection {
	align-items: center;
	display: inline-flex;
	gap: 8px;
}

.communityosChatSummaries__list {
	display: flex;
	flex-direction: column;
	gap: 16px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.communityosChatSummary {
	background-color: var(--wcfContentContainerBackground);
	border: 1px solid var(--wcfContentContainerBorder);
	border-radius: var(--wcfBorderRadius);
	padding: 16px;
}

.communityosChatSummary__title {
	font-size: var(--wcfFontSizeHeadline);
	font-weight: 600;
}

.communityosChatSummary__meta {
	color: var(--wcfContentDimmedText);
	font-size: var(--wcfFontSizeSmall);
	margin-bottom: 8px;
}

.communityosChatSummary__label {
	font-weight: 600;
	margin-top: 8px;
}

.communityosChatSummary__text {
	white-space: pre-line;
}

.communityosChatSummary__actions {
	margin-top: 12px;
}

/* ------------------------------------------------------------------
 * Reading & search experience: cards, chips, two-column discussions,
 * AI-first ask page. Colors only from the style's variables, tints via
 * color-mix() so that dark styles and customer styles keep working.
 * ------------------------------------------------------------------ */
.communityosDiscussionLayout,
.communityosAskHero,
.communityosAsk__sticky,
.communityosAnswer,
.communityosAskResults,
.communityosDiscussionHeader {
	--communityos-radius: var(--wcfBorderRadiusContainer, var(--wcfBorderRadius));
	--communityos-accent-soft: var(--wcfStatusInfoBackground);
	--communityos-accent-soft: color-mix(in srgb, var(--wcfContentLink) 12%, transparent);
}

/* Chips */
.communityosChips {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.communityosChips > li {
	max-width: 100%;
	min-width: 0;
}

.communityosChip {
	align-items: center;
	background-color: var(--wcfContentBackground);
	border: 1px solid var(--wcfContentBorderInner);
	border-radius: 999px;
	color: var(--wcfContentDimmedText);
	display: inline-flex;
	font-size: var(--wcfFontSizeSmall);
	gap: 5px;
	line-height: 1.5;
	max-width: 100%;
	overflow: hidden;
	padding: 2px 10px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

a.communityosChip:hover,
a.communityosChip:focus-visible {
	border-color: var(--wcfContentLink);
	color: var(--wcfContentLink);
	text-decoration: none;
}

.communityosChip--success {
	background-color: var(--wcfStatusSuccessBackground);
	border-color: var(--wcfStatusSuccessBorder);
	color: var(--wcfStatusSuccessText);
}

.communityosChip--open,
.communityosChip--info {
	background-color: var(--wcfStatusInfoBackground);
	border-color: var(--wcfStatusInfoBorder);
	color: var(--wcfStatusInfoText);
}

.communityosChip--warning {
	background-color: var(--wcfStatusWarningBackground);
	border-color: var(--wcfStatusWarningBorder);
	color: var(--wcfStatusWarningText);
}

.communityosChip--knowledge {
	border-color: var(--wcfContentLink);
	color: var(--wcfContentLink);
}

.communityosChip--space {
	color: var(--wcfContentText);
}

.communityosChip--space fa-icon {
	color: var(--communityos-space-color, var(--wcfContentLink));
}

.communityosChips--small .communityosChip {
	padding: 0 8px;
}

.communityosAiBadge {
	background-color: var(--communityos-accent-soft, var(--wcfStatusInfoBackground));
	color: var(--wcfContentLink);
	font-weight: 600;
}

/* Discussion header */
.communityosDiscussionHeader .communityosChips {
	margin-bottom: 8px;
}

.communityosDiscussionHeader__meta {
	align-items: center;
}

.communityosDiscussionHeader__author {
	align-items: center;
	display: inline-flex;
	gap: 6px;
}

.communityosDiscussionHeader__avatar img,
.communityosPost__avatar img,
.communityosReply__avatar img,
.communityosAcceptedCard__author img {
	border-radius: 50%;
	display: block;
}

.dropdownMenu li > .communityosMenuItem--danger {
	color: var(--wcfStatusErrorText);
}

/* Two columns from desktop on, stacked below */
.communityosDiscussionLayout {
	display: grid;
	gap: 24px;
	grid-template-columns: minmax(0, 1fr);
}

.communityosDiscussionLayout__main {
	display: flex;
	flex-direction: column;
	gap: 20px;
	min-width: 0;
}

.communityosDiscussionLayout__main > .section,
.communityosDiscussionLayout__main > woltlab-core-notice {
	margin-bottom: 0;
	margin-top: 0;
}

.communityosDiscussionLayout__aside {
	display: flex;
	flex-direction: column;
	gap: 16px;
	min-width: 0;
}

@media (min-width: 1025px) {
	.communityosDiscussionLayout {
		align-items: start;
		grid-template-columns: minmax(0, 1fr) 300px;
	}
}

/* Posts as cards */
.communityosPosts {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.communityosPost {
	background-color: var(--wcfContentContainerBackground);
	border: 1px solid var(--wcfContentContainerBorder);
	border-radius: var(--communityos-radius);
	box-shadow: var(--wcfBoxShadowCard, none);
	display: flex;
	gap: 16px;
	padding: 20px;
	scroll-margin-top: 70px;
}

.communityosPost--first {
	border-top: 3px solid var(--wcfContentLink);
}

.communityosPost--accepted {
	border-color: var(--wcfStatusSuccessBorder);
	box-shadow: 0 0 0 1px var(--wcfStatusSuccessBorder);
}

.communityosPost--deleted {
	opacity: 0.6;
}

.communityosPost__votes {
	align-items: center;
	display: flex;
	flex: 0 0 44px;
	flex-direction: column;
	gap: 4px;
}

.communityosVote {
	align-items: center;
	background-color: transparent;
	border: 1px solid var(--wcfContentBorderInner);
	border-radius: 50%;
	color: var(--wcfContentDimmedText);
	cursor: pointer;
	display: inline-flex;
	height: 40px;
	justify-content: center;
	padding: 0;
	transition: background-color 0.12s ease, border-color 0.12s ease, color 0.12s ease;
	width: 40px;
}

.communityosVote:hover {
	border-color: var(--wcfContentLink);
	color: var(--wcfContentLink);
}

.communityosVote:focus-visible,
.communityosPost__menuToggle:focus-visible,
.communityosAnswer__feedbackButton:focus-visible,
.communityosAnswer__citation:focus-visible {
	outline: 2px solid var(--wcfContentLink);
	outline-offset: 2px;
}

.communityosVote--active,
.communityosVote--active:hover {
	background-color: var(--wcfButtonPrimaryBackground);
	border-color: var(--wcfButtonPrimaryBackground);
	color: var(--wcfButtonPrimaryText);
}

.communityosPost__voteCount {
	color: var(--wcfContentText);
	font-size: var(--wcfFontSizeHeadline);
	font-variant-numeric: tabular-nums;
	font-weight: 600;
	line-height: 1.2;
	padding: 2px 0;
}

.communityosPost__acceptedMark {
	color: var(--wcfStatusSuccessText);
	margin-top: 6px;
}

.communityosPost:not(.communityosPost--accepted) .communityosPost__acceptedMark {
	display: none;
}

.communityosPost__main {
	flex: 1 1 auto;
	min-width: 0;
}

.communityosPost__header {
	align-items: flex-start;
	display: flex;
	gap: 12px;
	margin-bottom: 12px;
}

.communityosPost__avatar {
	flex: 0 0 auto;
}

.communityosPost__byline {
	align-items: center;
	color: var(--wcfContentDimmedText);
	display: flex;
	flex: 1 1 auto;
	flex-wrap: wrap;
	font-size: var(--wcfFontSizeSmall);
	gap: 4px 8px;
	min-height: 40px;
	min-width: 0;
}

.communityosPost__author {
	color: var(--wcfContentText);
	font-size: var(--wcfFontSizeDefault);
	font-weight: 600;
	overflow-wrap: anywhere;
}

.communityosPost__time {
	color: var(--wcfContentDimmedText);
}

.communityosPost__time:hover {
	color: var(--wcfContentDimmedLinkActive, var(--wcfContentLinkActive));
}

.communityosTrustBadge {
	background-color: var(--wcfContentBackground);
	border: 1px solid var(--wcfContentBorderInner);
	color: var(--wcfContentDimmedText);
}

.communityosTrustBadge--3 {
	background-color: var(--wcfStatusInfoBackground);
	border-color: var(--wcfStatusInfoBorder);
	color: var(--wcfStatusInfoText);
}

.communityosTrustBadge--4 {
	background-color: var(--wcfStatusSuccessBackground);
	border-color: var(--wcfStatusSuccessBorder);
	color: var(--wcfStatusSuccessText);
}

.communityosAuthorBadge {
	background-color: transparent;
	border: 1px solid var(--wcfContentLink);
	color: var(--wcfContentLink);
}

.communityosPost__menu {
	flex: 0 0 auto;
	margin-left: auto;
}

.communityosPost__menuToggle {
	align-items: center;
	background-color: transparent;
	border: 0;
	border-radius: 50%;
	color: var(--wcfContentDimmedText);
	cursor: pointer;
	display: inline-flex;
	height: 36px;
	justify-content: center;
	padding: 0;
	width: 36px;
}

.communityosPost__menuToggle:hover,
.dropdownOpen > .communityosPost__menuToggle {
	background-color: var(--wcfButtonBackground);
	color: var(--wcfButtonText);
}

.communityosPost__message {
	overflow-wrap: anywhere;
}

.communityosPost__edited {
	color: var(--wcfContentDimmedText);
	font-size: var(--wcfFontSizeSmall);
	margin-top: 12px;
}

.communityosPost__footer {
	border-top: 1px solid var(--wcfContentBorderInner);
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 16px;
	padding-top: 12px;
}

.communityosPost:not(.communityosPost--accepted) .communityosAccept {
	background-color: var(--wcfStatusSuccessBackground);
	border: 1px solid var(--wcfStatusSuccessBorder);
	color: var(--wcfStatusSuccessText);
}

.communityosPost:not(.communityosPost--accepted) .communityosAccept:hover {
	border-color: var(--wcfStatusSuccessText);
}

.communityosPosts__heading {
	align-items: baseline;
	display: flex;
	flex-wrap: wrap;
	font-size: var(--wcfFontSizeSection);
	font-weight: 600;
	gap: 4px 12px;
	margin-top: 8px;
}

.communityosPosts__sort {
	color: var(--wcfContentDimmedText);
	font-size: var(--wcfFontSizeSmall);
	font-weight: 400;
}

/* Accepted answer right below the question */
.communityosAcceptedCard {
	background-color: var(--wcfStatusSuccessBackground);
	border: 1px solid var(--wcfStatusSuccessBorder);
	border-radius: var(--communityos-radius);
	color: var(--wcfStatusSuccessText);
	padding: 16px 20px;
}

.communityosAcceptedCard__header {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 12px;
	margin-bottom: 8px;
}

.communityosAcceptedCard__title {
	flex: 1 1 auto;
	font-size: var(--wcfFontSizeHeadline);
	font-weight: 600;
}

.communityosAcceptedCard__author {
	align-items: center;
	display: inline-flex;
	font-size: var(--wcfFontSizeSmall);
	gap: 6px;
}

.communityosAcceptedCard__author a,
.communityosAcceptedCard__author a:hover {
	color: inherit;
}

.communityosAcceptedCard__excerpt {
	-webkit-box-orient: vertical;
	display: -webkit-box;
	-webkit-line-clamp: 4;
	line-clamp: 4;
	overflow: hidden;
	overflow-wrap: anywhere;
}

.communityosAcceptedCard__jump {
	align-items: center;
	color: var(--wcfStatusSuccessLink, inherit);
	display: inline-flex;
	font-weight: 600;
	gap: 6px;
	margin-top: 10px;
}

.communityosAcceptedCard__jump:hover {
	color: var(--wcfStatusSuccessLinkActive, inherit);
}

/* "Your answer" */
.communityosReply {
	background-color: var(--wcfContentContainerBackground);
	border: 1px solid var(--wcfContentContainerBorder);
	border-radius: var(--communityos-radius);
	box-shadow: var(--wcfBoxShadowCard, none);
	padding: 20px;
}

.communityosReply__header {
	align-items: center;
	display: flex;
	gap: 10px;
	margin-bottom: 4px;
}

.communityosReply__title {
	color: var(--wcfContentDimmedText);
	font-size: var(--wcfFontSizeDefault);
	font-weight: 400;
}

/* Sidebar cards */
.communityosSideCard {
	background-color: var(--wcfContentContainerBackground);
	border: 1px solid var(--wcfContentContainerBorder);
	border-radius: var(--communityos-radius);
	margin: 0;
	min-width: 0;
	padding: 16px;
}

.communityosSideCard__title {
	align-items: center;
	color: var(--wcfContentHeadlineText, var(--wcfContentText));
	display: flex;
	flex-wrap: wrap;
	font-size: var(--wcfFontSizeDefault);
	font-weight: 600;
	gap: 8px;
	margin-bottom: 10px;
}

.communityosSideCard__hint {
	color: var(--wcfContentDimmedText);
	font-size: var(--wcfFontSizeSmall);
	margin: 8px 0;
}

.communityosSideCard__link {
	display: block;
	font-weight: 600;
	margin-top: 6px;
	overflow-wrap: anywhere;
}

.communityosSideCard--actions .communityosFollow {
	justify-content: center;
	width: 100%;
}

.communityosSideCard--actions .communityosSideCard__hint {
	margin-bottom: 0;
}

.communityosSideCard--knowledge {
	border-left: 3px solid var(--wcfContentLink);
}

.communityosSummary {
	border-top: 3px solid var(--wcfContentLink);
}

.communityosSummary__body {
	line-height: 1.6;
	overflow-wrap: anywhere;
}

.communityosSummary__body > * + * {
	margin-top: 8px;
}

.communityosSummary .button {
	margin-top: 12px;
}

.communityosSummary[aria-busy="true"] {
	opacity: 0.6;
}

/* Participants as an avatar stack */
.communityosAvatarStack {
	display: flex;
	flex-wrap: wrap;
	list-style: none;
	margin: 0;
	padding: 0 0 0 8px;
	row-gap: 6px;
}

.communityosAvatarStack__item {
	margin-left: -8px;
	position: relative;
}

.communityosAvatarStack__item img {
	border: 2px solid var(--wcfContentContainerBackground);
	border-radius: 50%;
	display: block;
}

.communityosAvatarStack__item a:hover,
.communityosAvatarStack__item a:focus-visible {
	position: relative;
	z-index: 1;
}

.communityosAvatarStack__more {
	align-items: center;
	background-color: var(--wcfButtonBackground);
	border: 2px solid var(--wcfContentContainerBackground);
	border-radius: 999px;
	color: var(--wcfButtonText);
	display: inline-flex;
	font-size: var(--wcfFontSizeSmall);
	font-weight: 600;
	height: 36px;
	justify-content: center;
	min-width: 36px;
	padding: 0 6px;
}

/* Related content (sidebar) */
.communityosRelated__list {
	display: flex;
	flex-direction: column;
	gap: 12px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.communityosRelated__item {
	align-items: flex-start;
	display: flex;
	gap: 8px;
}

.communityosRelated__icon {
	color: var(--wcfContentDimmedText);
	flex: 0 0 auto;
	padding-top: 2px;
}

.communityosRelated__item--knowledge .communityosRelated__icon {
	color: var(--wcfContentLink);
}

.communityosRelated__body {
	align-items: flex-start;
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.communityosRelated__link {
	font-weight: 600;
	overflow-wrap: anywhere;
}

/* Knowledge article: reading width and table of contents */
.communityosReadingCard {
	background-color: var(--wcfContentContainerBackground);
	border: 1px solid var(--wcfContentContainerBorder);
	border-radius: var(--communityos-radius);
	box-shadow: var(--wcfBoxShadowCard, none);
	margin: 0;
	padding: 28px 32px;
}

.communityosKnowledge__content {
	line-height: 1.7;
	max-width: 72ch;
}

.communityosKnowledge__content :is(h2, h3) {
	scroll-margin-top: 70px;
}

.communityosKnowledge__topics {
	margin-top: 20px;
}

.communityosToc__list {
	border-left: 2px solid var(--wcfContentBorderInner);
	display: flex;
	flex-direction: column;
	gap: 6px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.communityosToc__item a {
	border-left: 2px solid transparent;
	color: var(--wcfContentDimmedText);
	display: block;
	margin-left: -2px;
	overflow-wrap: anywhere;
	padding-left: 10px;
}

.communityosToc__item a:hover,
.communityosToc__item a:focus-visible {
	border-left-color: var(--wcfContentLink);
	color: var(--wcfContentLink);
	text-decoration: none;
}

.communityosToc__item--h3 a {
	font-size: var(--wcfFontSizeSmall);
	padding-left: 22px;
}

/* Ask page: hero */
.communityosAskScope {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 15px;
}

.communityosAskScope__reset {
	font-size: var(--wcfFontSizeSmall);
}

.communityosAskHero {
	align-items: center;
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin: 0 auto 32px;
	max-width: 760px;
	padding: 24px 0 8px;
	text-align: center;
}

.communityosAskHero__icon {
	align-items: center;
	background-color: var(--communityos-accent-soft, var(--wcfStatusInfoBackground));
	border-radius: 50%;
	color: var(--wcfContentLink);
	display: inline-flex;
	height: 64px;
	justify-content: center;
	width: 64px;
}

.communityosAskHero__lead {
	color: var(--wcfContentDimmedText);
	font-size: var(--wcfFontSizeHeadline);
	max-width: 60ch;
}

.communityosAskHero__examples {
	align-items: center;
	display: flex;
	flex-direction: column;
	gap: 8px;
	max-width: 100%;
}

.communityosAskHero__examplesLabel {
	color: var(--wcfContentDimmedText);
	font-size: var(--wcfFontSizeSmall);
}

.communityosChips--examples {
	justify-content: center;
}

.communityosChip--example {
	color: var(--wcfContentText);
	font-size: var(--wcfFontSizeDefault);
	padding: 6px 14px;
	text-align: left;
	white-space: normal;
}

.communityosChip--example fa-icon {
	color: var(--wcfContentLink);
}

.communityosAskHero__hint {
	align-items: center;
	color: var(--wcfContentDimmedText);
	display: flex;
	flex-wrap: wrap;
	font-size: var(--wcfFontSizeSmall);
	gap: 6px;
	justify-content: center;
}

.communityosKbdButton {
	background: none;
	border: 0;
	cursor: pointer;
	padding: 0;
}

.communityosKbdButton kbd {
	background-color: var(--wcfContentContainerBackground);
	border: 1px solid var(--wcfContentBorderInner);
	border-bottom-width: 2px;
	border-radius: 4px;
	color: var(--wcfContentText);
	font-family: inherit;
	font-size: var(--wcfFontSizeSmall);
	padding: 1px 6px;
}

.communityosKbdButton:hover kbd,
.communityosKbdButton:focus-visible kbd {
	border-color: var(--wcfContentLink);
	color: var(--wcfContentLink);
}

/* Ask page: search field (hero and sticky bar) */
.communityosAsk__form {
	align-items: center;
	background-color: var(--wcfInputBackground);
	border: 1px solid var(--wcfInputBorder);
	border-radius: 999px;
	box-shadow: var(--wcfBoxShadowCard, none);
	display: flex;
	gap: 8px;
	margin: 0;
	max-width: 100%;
	padding: 4px 4px 4px 16px;
	width: 100%;
}

.communityosAsk__form:focus-within {
	border-color: var(--wcfInputBorderActive);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--wcfInputBorderActive) 25%, transparent);
}

.communityosAsk__inputIcon {
	color: var(--wcfInputPlaceholder);
	display: inline-flex;
	flex: 0 0 auto;
}

.communityosAsk__form input.communityosAsk__input,
.communityosAsk__form input.communityosAsk__input:focus {
	background-color: transparent;
	border: 0;
	box-shadow: none;
	color: var(--wcfInputText);
	flex: 1 1 auto;
	min-width: 0;
	outline: none;
	padding: 8px 4px;
	width: auto;
}

.communityosAsk__submit.button {
	border-radius: 999px;
	flex: 0 0 auto;
}

.communityosAsk__form--hero {
	padding: 6px 6px 6px 20px;
}

.communityosAsk__form--hero input.communityosAsk__input {
	font-size: var(--wcfFontSizeHeadline);
	padding: 10px 4px;
}

.communityosAsk__sticky {
	background-color: var(--wcfContentBackground);
	margin: 0 0 20px;
	padding: 8px 0;
	position: sticky;
	top: 50px;
	z-index: 10;
}

/* Ask page: AI answer card */
.communityosAnswer {
	background-color: var(--wcfContentContainerBackground);
	border: 1px solid var(--wcfContentContainerBorder);
	border-radius: var(--communityos-radius);
	border-top: 3px solid var(--wcfContentLink);
	box-shadow: var(--wcfBoxShadowCard, none);
	padding: 20px 24px;
}

.communityosAnswer__header {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 6px 10px;
	margin-bottom: 14px;
}

.communityosAnswer__headerIcon {
	align-items: center;
	background-color: var(--communityos-accent-soft, var(--wcfStatusInfoBackground));
	border-radius: 50%;
	color: var(--wcfContentLink);
	display: inline-flex;
	height: 32px;
	justify-content: center;
	width: 32px;
}

.communityosAnswer__title {
	font-size: var(--wcfFontSizeHeadline);
	font-weight: 600;
}

.communityosAnswer__basis {
	color: var(--wcfContentDimmedText);
	font-size: var(--wcfFontSizeSmall);
}

.communityosAnswer__body {
	line-height: 1.7;
	max-width: 80ch;
	overflow-wrap: anywhere;
}

.communityosAnswer__intro {
	align-items: flex-start;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.communityosAnswer__state {
	border-left: 3px solid var(--wcfStatusInfoBorder);
	color: var(--wcfContentText);
	padding-left: 12px;
}

.communityosAnswer__state--warning {
	border-left-color: var(--wcfStatusWarningBorder);
}

.communityosAnswer__state--error {
	border-left-color: var(--wcfStatusErrorBorder);
}

.communityosAnswer__citation {
	align-items: center;
	background-color: var(--communityos-accent-soft, var(--wcfStatusInfoBackground));
	border-radius: 999px;
	color: var(--wcfContentLink);
	display: inline-flex;
	font-size: 11px;
	font-weight: 600;
	height: 18px;
	justify-content: center;
	line-height: 1;
	margin: 0 1px 0 3px;
	min-width: 18px;
	padding: 0 5px;
	position: relative;
	text-decoration: none;
	top: -2px;
}

.communityosAnswer__citation:hover,
.communityosAnswer__citation:focus-visible {
	background-color: var(--wcfContentLink);
	color: var(--wcfContentBackground);
	text-decoration: none;
}

.communityosCitationPreview {
	background-color: var(--wcfContentContainerBackground);
	border: 1px solid var(--wcfContentContainerBorder);
	border-radius: var(--wcfBorderRadius);
	box-shadow: var(--wcfBoxShadow, 0 4px 16px rgba(0, 0, 0, 0.2));
	color: var(--wcfContentText);
	display: flex;
	flex-direction: column;
	gap: 4px;
	max-width: min(360px, calc(100vw - 16px));
	padding: 12px 14px;
	pointer-events: none;
	position: absolute;
	z-index: 400;
}

.communityosCitationPreview__meta {
	color: var(--wcfContentDimmedText);
	font-size: var(--wcfFontSizeSmall);
}

.communityosCitationPreview__title {
	font-weight: 600;
	overflow-wrap: anywhere;
}

.communityosCitationPreview__excerpt {
	color: var(--wcfContentDimmedText);
	font-size: var(--wcfFontSizeSmall);
	overflow-wrap: anywhere;
}

.communityosAnswer__sources {
	border-top: 1px solid var(--wcfContentBorderInner);
	margin-top: 16px;
	padding-top: 12px;
}

.communityosAnswer__sourcesTitle {
	color: var(--wcfContentDimmedText);
	display: block;
	font-size: var(--wcfFontSizeSmall);
	font-weight: 600;
	margin-bottom: 8px;
}

.communityosAnswer__sourceList {
	display: grid;
	gap: 8px;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	list-style: none;
	margin: 0;
	padding: 0;
}

.communityosAnswer__sourceLink {
	align-items: flex-start;
	border: 1px solid var(--wcfContentBorderInner);
	border-radius: var(--wcfBorderRadius);
	color: var(--wcfContentText);
	display: flex;
	gap: 8px;
	height: 100%;
	padding: 8px 10px;
}

.communityosAnswer__sourceLink:hover,
.communityosAnswer__sourceLink:focus-visible {
	border-color: var(--wcfContentLink);
	text-decoration: none;
}

.communityosAnswer__sourceNumber {
	align-items: center;
	background-color: var(--communityos-accent-soft, var(--wcfStatusInfoBackground));
	border-radius: 999px;
	color: var(--wcfContentLink);
	display: inline-flex;
	flex: 0 0 auto;
	font-size: 11px;
	font-weight: 600;
	height: 18px;
	justify-content: center;
	min-width: 18px;
}

.communityosAnswer__sourceIcon {
	color: var(--wcfContentDimmedText);
	flex: 0 0 auto;
}

.communityosAnswer__source--knowledge .communityosAnswer__sourceIcon {
	color: var(--wcfContentLink);
}

.communityosAnswer__sourceBody {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.communityosAnswer__sourceTitle {
	font-weight: 600;
	overflow-wrap: anywhere;
}

.communityosAnswer__sourceMeta {
	color: var(--wcfContentDimmedText);
	font-size: var(--wcfFontSizeSmall);
}

.communityosAnswer__feedback {
	align-items: center;
	color: var(--wcfContentDimmedText);
	display: flex;
	flex-wrap: wrap;
	font-size: var(--wcfFontSizeSmall);
	gap: 4px;
	margin-top: 16px;
}

.communityosAnswer__feedback[hidden] {
	display: none;
}

.communityosAnswer__feedbackButton {
	align-items: center;
	background-color: transparent;
	border: 1px solid transparent;
	border-radius: 50%;
	color: var(--wcfContentDimmedText);
	cursor: pointer;
	display: inline-flex;
	height: 32px;
	justify-content: center;
	padding: 0;
	width: 32px;
}

.communityosAnswer__feedbackButton:hover {
	border-color: var(--wcfContentBorderInner);
	color: var(--wcfContentLink);
}

/* Loading skeleton instead of a spinner */
.communityosSkeleton {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.communityosSkeleton > span {
	background-color: var(--wcfContentBorderInner);
	background-image: linear-gradient(90deg, transparent 0, color-mix(in srgb, var(--wcfContentContainerBackground) 60%, transparent) 50%, transparent 100%);
	background-repeat: no-repeat;
	background-size: 200% 100%;
	border-radius: 999px;
	display: block;
	height: 12px;
	animation: communityosSkeleton 1.4s ease-in-out infinite;
}

.communityosSkeleton > span:nth-child(2) {
	width: 92%;
}

.communityosSkeleton > span:nth-child(3) {
	width: 96%;
}

.communityosSkeleton > span:nth-child(4) {
	width: 60%;
}

@keyframes communityosSkeleton {
	from {
		background-position: 150% 0;
	}

	to {
		background-position: -50% 0;
	}
}

/* Ask page: results as cards */
.communityosAskResults .sectionTitle {
	align-items: center;
	display: flex;
	gap: 8px;
}

.communityosAsk__results {
	display: flex;
	flex-direction: column;
	gap: 12px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.communityosResultCard {
	background-color: var(--wcfContentContainerBackground);
	border: 1px solid var(--wcfContentContainerBorder);
	border-radius: var(--communityos-radius);
	display: flex;
	gap: 14px;
	padding: 16px;
	position: relative;
	transition: border-color 0.12s ease;
}

.communityosResultCard:hover,
.communityosResultCard:focus-within {
	border-color: var(--wcfContentLink);
}

.communityosResultCard__icon {
	align-items: center;
	background-color: var(--wcfContentBackground);
	border: 1px solid var(--wcfContentBorderInner);
	border-radius: 50%;
	color: var(--wcfContentDimmedText);
	display: inline-flex;
	flex: 0 0 auto;
	height: 40px;
	justify-content: center;
	width: 40px;
}

.communityosResultCard--knowledge .communityosResultCard__icon {
	background-color: var(--communityos-accent-soft, var(--wcfStatusInfoBackground));
	border-color: transparent;
	color: var(--wcfContentLink);
}

.communityosResultCard__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.communityosAsk__resultTitle {
	font-size: var(--wcfFontSizeHeadline);
	font-weight: 600;
	overflow-wrap: anywhere;
}

/* The whole card is clickable, the title link stays the only link. */
.communityosAsk__resultTitle::after {
	content: "";
	inset: 0;
	position: absolute;
}

.communityosAsk__resultExcerpt {
	color: var(--wcfContentDimmedText);
	overflow-wrap: anywhere;
}

/* Empty and error states */
.communityosEmptyState {
	align-items: center;
	background-color: var(--wcfContentContainerBackground);
	border: 1px dashed var(--wcfContentBorderInner);
	border-radius: var(--communityos-radius);
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 32px 20px;
	text-align: center;
}

.communityosEmptyState__icon {
	color: var(--wcfContentDimmedText);
	opacity: 0.6;
}

.communityosEmptyState__title {
	font-size: var(--wcfFontSizeHeadline);
	font-weight: 600;
}

.communityosEmptyState__text {
	color: var(--wcfContentDimmedText);
	max-width: 60ch;
}

.communityosEmptyState .button {
	margin-top: 8px;
}

/* Small screens */
@media (max-width: 544px) {
	.communityosPost,
	.communityosReply,
	.communityosAnswer {
		padding: 14px;
	}

	.communityosPost {
		gap: 10px;
	}

	.communityosPost__votes {
		flex-basis: 36px;
	}

	.communityosVote {
		height: 34px;
		width: 34px;
	}

	.communityosPost__avatar img {
		height: 32px;
		width: 32px;
	}

	.communityosPost__byline {
		min-height: 32px;
	}

	.communityosReadingCard {
		padding: 18px 16px;
	}

	.communityosAskHero {
		padding-top: 8px;
	}

	.communityosAskHero__lead {
		font-size: var(--wcfFontSizeDefault);
	}

	.communityosAsk__form,
	.communityosAsk__form--hero {
		padding-left: 12px;
	}

	.communityosAsk__form--hero input.communityosAsk__input {
		font-size: var(--wcfFontSizeDefault);
	}

	.communityosAsk__sticky {
		top: 50px;
	}

	.communityosResultCard {
		gap: 10px;
		padding: 12px;
	}

	.communityosResultCard__icon {
		height: 32px;
		width: 32px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.communityosSkeleton > span {
		animation: none;
	}

	.communityosVote,
	.communityosResultCard {
		transition: none;
	}
}

/* ==========================================================================
   Polish after the first look in the browser (1.0.19)
   ========================================================================== */

/* The core styles input[type="search"] more specifically than a single class. */
.communityosHero__search .communityosHero__input {
	border-radius: var(--communityos-radius-pill);
	padding: 10px 16px 10px 40px;
}

/* The list component of the core draws a heavy accent line under its toolbar. */
.communityosSpaceOverview .listView__header,
.communityosSpacePanel .listView__header {
	border-bottom: 0;
	margin-bottom: var(--communityos-gap-s);
}

.communityosAsk__sticky {
	margin-top: 8px;
}

/* Tabs and segmented controls scroll sideways on phones instead of squeezing their items. */
.communityosTabs__list > li,
.communityosSegmented__item {
	flex: 0 0 auto;
}

.communityosTabs__link {
	white-space: nowrap;
}

/* --- Digest: "Since your last visit" ---------------------------------------- */
.communityosDigestBanner {
	border-left: 4px solid var(--wcfButtonPrimaryBackground);
	margin-bottom: var(--communityos-gap-xl);
}

.communityosDigestBanner__header {
	align-items: flex-start;
	display: flex;
	gap: var(--communityos-gap-m);
}

.communityosDigestBanner__icon {
	align-items: center;
	background-color: var(--wcfStatusInfoBackground);
	border-radius: 50%;
	color: var(--wcfStatusInfoText);
	display: inline-flex;
	flex: 0 0 auto;
	height: 36px;
	justify-content: center;
	width: 36px;
}

.communityosDigestBanner__heading {
	flex: 1 1 auto;
	min-width: 0;
}

.communityosDigestBanner__title {
	font-size: var(--wcfFontSizeHeadline);
	font-weight: 600;
	line-height: 1.3;
	margin: 0;
}

.communityosDigestBanner__since {
	color: var(--wcfContentDimmedText);
	font-size: var(--wcfFontSizeSmall);
	margin: 2px 0 0;
}

.communityosDigestBanner__close {
	background: none;
	border: 0;
	border-radius: var(--communityos-radius);
	color: var(--wcfContentDimmedText);
	cursor: pointer;
	flex: 0 0 auto;
	padding: 6px;
}

.communityosDigestBanner__close:hover,
.communityosDigestBanner__close:focus-visible {
	background-color: var(--wcfButtonBackground);
	color: var(--wcfButtonText);
}

.communityosDigestBanner__close:focus-visible {
	box-shadow: var(--communityos-focus-ring);
	outline: none;
}

.communityosDigestBanner__close fa-icon {
	pointer-events: none;
}

.communityosDigestBanner__list {
	display: flex;
	flex-direction: column;
	gap: var(--communityos-gap-m);
	list-style: none;
	margin: var(--communityos-gap-l) 0 0;
	padding: 0;
}

.communityosDigestBanner__item {
	align-items: flex-start;
	display: flex;
	gap: var(--communityos-gap-m);
}

.communityosDigestBanner__type {
	align-items: center;
	background-color: var(--wcfButtonBackground);
	border-radius: var(--communityos-radius);
	color: var(--wcfButtonText);
	display: inline-flex;
	flex: 0 0 auto;
	height: 28px;
	justify-content: center;
	width: 28px;
}

.communityosDigestBanner__type--solved {
	background-color: var(--wcfStatusSuccessBackground);
	color: var(--wcfStatusSuccessText);
}

.communityosDigestBanner__type--knowledge {
	background-color: var(--wcfButtonPrimaryBackground);
	color: var(--wcfButtonPrimaryText);
}

.communityosDigestBanner__type--help {
	background-color: var(--wcfStatusWarningBackground);
	color: var(--wcfStatusWarningText);
}

.communityosDigestBanner__main {
	flex: 1 1 auto;
	min-width: 0;
}

.communityosDigestBanner__link {
	font-weight: 600;
	overflow-wrap: anywhere;
}

.communityosDigestBanner__meta {
	margin-top: 2px;
}

.communityosDigestBanner__more {
	font-size: var(--wcfFontSizeSmall);
	margin: var(--communityos-gap-m) 0 0;
}

.communityosDigestUnsubscribe__settings {
	color: var(--wcfContentDimmedText);
	font-size: var(--wcfFontSizeSmall);
	margin-top: var(--communityos-gap-l);
}

@media (max-width: 544px) {
	.communityosDigestBanner__reason {
		display: none;
	}
}

/* ==========================================================================
   Events
   Date tiles, event cards, the event page (facts, RSVP, follow-up) and the
   "next event" teaser. Colors only from the style's variables.
   ========================================================================== */
.communityosEvent,
.communityosEventCard,
.communityosNextEvent,
.communityosSpaceCard__event {
	--communityos-event-accent: var(--wcfButtonPrimaryBackground);
	--communityos-event-accent-text: var(--wcfButtonPrimaryText);
}

/* --- Date tile ------------------------------------------------------------ */
.communityosDateTile {
	align-items: center;
	background-color: var(--wcfContentBackground);
	border: 1px solid var(--wcfContentBorderInner);
	border-radius: var(--communityos-radius);
	display: inline-flex;
	flex-direction: column;
	flex-shrink: 0;
	line-height: 1.1;
	min-width: 52px;
	overflow: hidden;
	text-align: center;
}

.communityosDateTile__month {
	align-self: stretch;
	background-color: var(--communityos-event-accent, var(--wcfButtonPrimaryBackground));
	color: var(--communityos-event-accent-text, var(--wcfButtonPrimaryText));
	font-size: var(--wcfFontSizeSmall);
	font-weight: 600;
	letter-spacing: 0.04em;
	padding: 2px 6px;
	text-transform: uppercase;
}

.communityosDateTile__day {
	color: var(--wcfContentHeadlineText);
	font-size: var(--wcfFontSizeHeadline);
	font-weight: 700;
	padding: 4px 6px 0;
}

.communityosDateTile__weekday {
	color: var(--wcfContentDimmedText);
	font-size: var(--wcfFontSizeSmall);
	padding: 0 6px 4px;
}

.communityosDateTile--large {
	min-width: 76px;
}

.communityosDateTile--large .communityosDateTile__day {
	font-size: var(--wcfFontSizeTitle, var(--wcfFontSizeHeadline));
	padding-top: 6px;
}

.communityosDateTile--small {
	min-width: 40px;
}

.communityosDateTile--small .communityosDateTile__month {
	font-size: 10px;
	padding: 1px 4px;
}

.communityosDateTile--small .communityosDateTile__day {
	font-size: var(--wcfFontSizeDefault);
	padding: 2px 4px 3px;
}

.communityosDateTile--past .communityosDateTile__month {
	background-color: var(--wcfButtonBackground);
	color: var(--wcfButtonText);
}

.communityosDateTile--canceled {
	opacity: 0.65;
}

.communityosDateTile--canceled .communityosDateTile__month {
	background-color: var(--wcfStatusErrorBackground);
	color: var(--wcfStatusErrorText);
}

.communityosDateTile--canceled .communityosDateTile__day {
	text-decoration: line-through;
}

/* --- Event cards ---------------------------------------------------------- */
.communityosEventCard {
	border-inline-start: 3px solid var(--communityos-event-accent);
}

.communityosEventCard--past {
	border-inline-start-color: var(--wcfContentBorderInner);
}

.communityosEventCard--canceled {
	border-inline-start-color: var(--wcfStatusErrorBorder);
}

.communityosEventCard--canceled .communityosDiscussionCard__title {
	text-decoration: line-through;
}

.communityosEventCard__location {
	max-width: 100%;
	overflow-wrap: anywhere;
}

.communityosChip--event {
	background-color: var(--wcfStatusInfoBackground);
	border-color: var(--wcfStatusInfoBorder);
	color: var(--wcfStatusInfoText);
}

.communityosChip--going {
	background-color: var(--wcfStatusSuccessBackground);
	border-color: var(--wcfStatusSuccessBorder);
	color: var(--wcfStatusSuccessText);
}

.communityosChip--maybe {
	background-color: var(--wcfStatusWarningBackground);
	border-color: var(--wcfStatusWarningBorder);
	color: var(--wcfStatusWarningText);
}

.communityosChip--declined {
	color: var(--wcfContentDimmedText);
}

/* "Next event" on the space page and in the space cards */
.communityosNextEvent {
	display: flex;
	flex-direction: column;
	gap: var(--communityos-gap-s);
	margin-bottom: var(--communityos-gap-l);
}

.communityosNextEvent__label {
	color: var(--wcfContentDimmedText);
	font-size: var(--wcfFontSizeSmall);
	font-weight: 600;
	letter-spacing: 0.03em;
	text-transform: uppercase;
}

.communityosSpaceCard__event {
	align-items: center;
	background-color: var(--wcfContentBackground);
	border: 1px solid var(--wcfContentBorderInner);
	border-radius: var(--communityos-radius);
	color: var(--wcfContentText);
	display: flex;
	gap: var(--communityos-gap-s);
	min-width: 0;
	padding: 6px 8px;
}

.communityosSpaceCard__event:hover,
.communityosSpaceCard__event:focus-visible {
	border-color: var(--communityos-event-accent);
	color: var(--wcfContentText);
}

.communityosSpaceCard__event:focus-visible {
	box-shadow: var(--communityos-focus-ring);
	outline: none;
}

.communityosSpaceCard__eventText {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.communityosSpaceCard__eventLabel {
	color: var(--wcfContentDimmedText);
	font-size: var(--wcfFontSizeSmall);
}

.communityosSpaceCard__eventTitle {
	font-weight: 600;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Events tab of a space */
.communityosEventList__actions {
	display: flex;
	justify-content: flex-end;
	margin-bottom: var(--communityos-gap-m);
}

.communityosEventList__heading {
	color: var(--wcfContentHeadlineText);
	font-size: var(--wcfFontSizeDefault);
	font-weight: 600;
	margin: var(--communityos-gap-l) 0 var(--communityos-gap-s);
}

.communityosEventList__heading:first-child,
.communityosEventList__actions + .communityosEventList__heading {
	margin-top: 0;
}

/* --- Event page ----------------------------------------------------------- */
.communityosEventHero {
	align-items: flex-start;
	background-color: var(--wcfContentContainerBackground);
	border: 1px solid var(--wcfContentContainerBorder);
	border-radius: var(--communityos-radius);
	display: grid;
	gap: var(--communityos-gap-l);
	grid-template-areas:
		"tile facts"
		"tile calendar";
	grid-template-columns: auto minmax(0, 1fr);
	padding: var(--communityos-gap-l);
}

.communityosEventHero > .communityosDateTile {
	grid-area: tile;
}

.communityosEventFacts {
	display: flex;
	flex-direction: column;
	gap: var(--communityos-gap-m);
	grid-area: facts;
	margin: 0;
	min-width: 0;
}

.communityosEventFacts__row {
	align-items: flex-start;
	display: flex;
	gap: var(--communityos-gap-s);
}

.communityosEventFacts__label {
	color: var(--wcfContentDimmedText);
	flex-shrink: 0;
	margin: 0;
	padding-top: 2px;
	width: 20px;
}

.communityosEventFacts__value {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin: 0;
	min-width: 0;
	overflow-wrap: anywhere;
}

.communityosEventFacts__sub {
	color: var(--wcfContentDimmedText);
	font-size: var(--wcfFontSizeSmall);
}

a.communityosEventFacts__sub {
	color: var(--wcfContentLink);
}

.communityosEvent__join {
	align-self: flex-start;
}

.communityosEventHero__calendar {
	display: flex;
	flex-wrap: wrap;
	gap: var(--communityos-gap-s);
	grid-area: calendar;
}

/* RSVP */
.communityosRsvp {
	background-color: var(--wcfContentContainerBackground);
	border: 1px solid var(--wcfContentContainerBorder);
	border-radius: var(--communityos-radius);
	display: flex;
	flex-direction: column;
	gap: var(--communityos-gap-m);
	padding: var(--communityos-gap-l);
}

.communityosRsvp__title {
	color: var(--wcfContentHeadlineText);
	font-size: var(--wcfFontSizeHeadline);
	font-weight: 600;
}

.communityosRsvp__counters {
	display: flex;
	flex-wrap: wrap;
	gap: var(--communityos-gap-xs) var(--communityos-gap-l);
	list-style: none;
	margin: 0;
	padding: 0;
}

.communityosRsvp__counter {
	align-items: baseline;
	display: inline-flex;
	gap: 4px;
}

.communityosRsvp__counter[hidden] {
	display: none;
}

.communityosRsvp__number {
	color: var(--wcfContentHeadlineText);
	font-size: var(--wcfFontSizeHeadline);
	font-variant-numeric: tabular-nums;
	font-weight: 700;
}

.communityosRsvp__capacity {
	color: var(--wcfContentDimmedText);
	font-variant-numeric: tabular-nums;
}

.communityosRsvp__label {
	color: var(--wcfContentDimmedText);
	font-size: var(--wcfFontSizeSmall);
}

.communityosRsvp__buttons {
	display: grid;
	gap: var(--communityos-gap-s);
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.communityosRsvp__button {
	justify-content: center;
	min-height: 44px;
	min-width: 0;
}

.communityosRsvp__button span {
	overflow: hidden;
	text-overflow: ellipsis;
}

.communityosRsvp__button--going.active {
	background-color: var(--wcfStatusSuccessBackground);
	border-color: var(--wcfStatusSuccessBorder);
	color: var(--wcfStatusSuccessText);
}

.communityosRsvp__button--maybe.active {
	background-color: var(--wcfStatusWarningBackground);
	border-color: var(--wcfStatusWarningBorder);
	color: var(--wcfStatusWarningText);
}

.communityosRsvp__button--declined.active {
	background-color: var(--wcfStatusErrorBackground);
	border-color: var(--wcfStatusErrorBorder);
	color: var(--wcfStatusErrorText);
}

.communityosRsvp__button.active {
	box-shadow: inset 0 0 0 1px currentColor;
}

.communityosRsvp__state {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: var(--communityos-gap-s);
}

.communityosRsvp__state:empty {
	display: none;
}

.communityosRsvp__message {
	margin: 0;
}

.communityosRsvp__message[hidden] {
	display: none;
}

.communityosRsvp__message--confirmed {
	color: var(--wcfStatusSuccessText);
}

.communityosRsvp__message--waitlist {
	color: var(--wcfStatusWarningText);
}

.communityosRsvp__withdraw {
	background: none;
	border: 0;
	color: var(--wcfContentLink);
	cursor: pointer;
	font-size: var(--wcfFontSizeSmall);
	padding: 0;
	text-decoration: underline;
}

.communityosRsvp__withdraw[hidden] {
	display: none;
}

.communityosRsvp__closed {
	color: var(--wcfContentDimmedText);
	font-size: var(--wcfFontSizeSmall);
	margin: 0;
}

.communityosEvent__description {
	margin: 0;
}

/* Follow-up after the event */
.communityosFollowUp {
	background-color: var(--wcfContentContainerBackground);
	border: 1px solid var(--wcfContentContainerBorder);
	border-radius: var(--communityos-radius);
	border-top: 3px solid var(--wcfContentLink);
	display: flex;
	flex-direction: column;
	gap: var(--communityos-gap-m);
	padding: var(--communityos-gap-l);
}

.communityosFollowUp__title {
	align-items: center;
	color: var(--wcfContentHeadlineText);
	display: flex;
	font-size: var(--wcfFontSizeHeadline);
	font-weight: 600;
	gap: var(--communityos-gap-s);
}

.communityosFollowUp__hint {
	color: var(--wcfContentDimmedText);
	margin: 0;
}

.communityosFollowUp__start {
	align-self: flex-start;
}

.communityosFollowUp__link {
	border: 1px solid var(--wcfContentBorderInner);
	border-radius: var(--communityos-radius);
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: var(--communityos-gap-m);
}

.communityosFollowUp__link:hover,
.communityosFollowUp__link:focus-visible {
	border-color: var(--wcfContentLink);
}

.communityosFollowUp__link:focus-visible {
	box-shadow: var(--communityos-focus-ring);
	outline: none;
}

.communityosFollowUp__linkTitle {
	font-weight: 600;
	overflow-wrap: anywhere;
}

.communityosFollowUp__linkMeta {
	color: var(--wcfContentDimmedText);
	font-size: var(--wcfFontSizeSmall);
}

.communityosFollowUp__summary[aria-busy="true"] {
	opacity: 0.6;
}

/* Sidebar */
.communityosAvatarStack--wrap {
	flex-wrap: wrap;
	row-gap: 4px;
}

.communityosEventOrganizer__person {
	align-items: center;
	display: flex;
	gap: var(--communityos-gap-s);
	min-width: 0;
}

.communityosEventOrganizer__person img {
	border-radius: 50%;
}

.communityosEventForm__intro {
	color: var(--wcfContentDimmedText);
	margin-bottom: var(--communityos-gap-l);
}

@media (max-width: 544px) {
	.communityosEventHero {
		gap: var(--communityos-gap-m);
		grid-template-areas:
			"tile facts"
			"calendar calendar";
		padding: var(--communityos-gap-m);
	}

	.communityosDateTile--large {
		min-width: 60px;
	}

	.communityosEventHero__calendar .button {
		flex: 1 1 0;
		justify-content: center;
		min-width: 0;
	}

	.communityosRsvp,
	.communityosFollowUp {
		padding: var(--communityos-gap-m);
	}

	.communityosRsvp__button {
		flex-direction: column;
		font-size: var(--wcfFontSizeSmall);
		gap: 2px;
		padding-inline: 4px;
	}

	.communityosEventList__actions .button {
		justify-content: center;
		width: 100%;
	}
}

/* Ask page: "ask the community" when the answer is missing or did not help */
.communityosAskCta {
	--communityos-radius: var(--wcfBorderRadiusContainer, var(--wcfBorderRadius));
	align-items: flex-start;
	background-color: var(--wcfContentContainerBackground);
	border: 1px solid var(--wcfContentContainerBorder);
	border-radius: var(--communityos-radius);
	display: flex;
	gap: 14px;
	padding: 16px 20px;
}

.communityosAskCta[hidden] {
	display: none;
}

.communityosAskCta__icon {
	color: var(--wcfContentLink);
	flex: 0 0 auto;
}

.communityosAskCta__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
}

.communityosAskCta__title {
	font-size: var(--wcfFontSizeHeadline);
	font-weight: 600;
}

.communityosAskCta__text,
.communityosAskCta__choose {
	color: var(--wcfContentDimmedText);
}

.communityosAskCta__targets {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.communityosAskCta__target .icon {
	color: var(--communityos-space-color, currentColor);
}

.communityosAskCta__target.buttonPrimary .icon {
	color: currentColor;
}

.communityosAskCta__recommended {
	margin-left: 4px;
}

@media (max-width: 544px) {
	.communityosAskCta {
		padding: 14px;
	}

	.communityosAskCta__targets li,
	.communityosAskCta__targets .button,
	.communityosAskCta__button {
		width: 100%;
	}
}

/* ==========================================================================
   Search fields with a leading icon (member directory, community members,
   "discover", hero search). The core styles input[type="search"] more
   specifically than a single class and even sets "padding: 6px 8px" on touch
   devices, which pushed the placeholder under the absolutely positioned icon.
   Wrapper class + attribute selector win over both, for every such field.
   ========================================================================== */
.communityosSearchField {
	position: relative;
}

.communityosSearchField > input[type="search"],
.communityosSearchField > input[type="search"]:focus {
	padding-inline-start: 40px;
}
.communityosKnowledgeWrite { margin-bottom: 20px; }

/* --- Reply branches below posts (docs/THREADS-TOPIC-CHAT.md) ---------------- */
.communityosBranch {
	border-top: 1px solid var(--wcfContentBorderInner);
	margin-top: 16px;
	padding-top: 10px;
}

.communityosBranch__toggle,
.communityosBranch__replyButton {
	align-items: center;
	background-color: transparent;
	border: 0;
	border-radius: var(--communityos-radius-pill);
	cursor: pointer;
	display: inline-flex;
	font-size: var(--wcfFontSizeSmall);
	gap: 6px;
	min-height: 32px;
	padding: 4px 8px;
	margin-left: -8px;
	transition: background-color var(--communityos-transition), color var(--communityos-transition);
}

.communityosBranch__toggle {
	color: var(--wcfContentLink);
	font-weight: 600;
}

.communityosBranch__replyButton {
	color: var(--wcfContentDimmedText);
}

.communityosBranch__toggle:hover,
.communityosBranch__replyButton:hover {
	background-color: color-mix(in srgb, var(--wcfContentLink) 10%, transparent);
	color: var(--wcfContentLinkActive, var(--wcfContentLink));
}

.communityosBranch__toggle:focus-visible,
.communityosBranch__replyButton:focus-visible {
	box-shadow: var(--communityos-focus-ring);
	outline: 0;
}

.communityosBranch__toggleIcon {
	display: inline-flex;
	transition: transform var(--communityos-transition);
}

.communityosBranch__toggle[aria-expanded="true"] .communityosBranch__toggleIcon {
	transform: rotate(180deg);
}

.communityosBranch__toggle[aria-expanded="true"] .communityosBranch__toggleShow,
.communityosBranch__toggle[aria-expanded="false"] .communityosBranch__toggleHide {
	display: none;
}

.communityosBranch__list {
	border-left: 2px solid color-mix(in srgb, var(--wcfContentLink) 30%, transparent);
	display: flex;
	flex-direction: column;
	gap: 4px;
	list-style: none;
	margin: 6px 0 0;
	padding: 0 0 0 10px;
}

.communityosBranch__list[hidden] {
	display: none;
}

.communityosBranchReply {
	border-radius: var(--communityos-radius);
	display: flex;
	gap: 10px;
	padding: 6px 8px;
	scroll-margin-top: 70px;
	transition: background-color var(--communityos-transition);
}

.communityosBranchReply--highlight {
	background-color: color-mix(in srgb, var(--wcfButtonPrimaryBackground) 10%, transparent);
}

.communityosBranchReply--deleted {
	opacity: 0.6;
}

.communityosBranchReply__avatar {
	flex: 0 0 auto;
	padding-top: 2px;
}

.communityosBranchReply__avatar img {
	border-radius: 50%;
	display: block;
}

.communityosBranchReply__body {
	flex: 1 1 auto;
	min-width: 0;
}

.communityosBranchReply__meta {
	align-items: center;
	color: var(--wcfContentDimmedText);
	display: flex;
	flex-wrap: wrap;
	font-size: var(--wcfFontSizeSmall);
	gap: 2px 8px;
}

.communityosBranchReply__author {
	color: var(--wcfContentText);
	font-weight: 600;
	overflow-wrap: anywhere;
}

.communityosBranchReply__time {
	color: var(--wcfContentDimmedText);
}

.communityosBranchReply__menu {
	margin-left: auto;
}

.communityosPost__menuToggle.communityosBranchReply__menuToggle {
	height: 28px;
	width: 28px;
}

.communityosBranchReply__message {
	margin-top: 2px;
	overflow-wrap: anywhere;
}

.communityosBranchReply__edited {
	color: var(--wcfContentDimmedText);
	font-size: var(--wcfFontSizeSmall);
	margin-top: 4px;
}

.communityosBranch__composer {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-top: 8px;
}

.communityosBranch__composer[hidden] {
	display: none;
}

.communityosBranch__input {
	min-height: 64px;
	resize: none;
	width: 100%;
}

.communityosBranch__hint {
	color: var(--wcfContentDimmedText);
	font-size: var(--wcfFontSizeSmall);
}

.communityosBranch__hint--error {
	color: var(--wcfStatusErrorText);
}

.communityosBranch__composerActions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: flex-end;
}

@media (max-width: 544px) {
	.communityosBranch__list {
		padding-left: 6px;
	}

	.communityosBranchReply {
		gap: 8px;
		padding: 6px 4px;
	}

	.communityosBranch__composerActions .button {
		flex: 1 1 auto;
	}
}

/* --- Topic chat of a discussion -------------------------------------------- */
.communityosTopicChat {
	background-color: var(--wcfContentContainerBackground);
	border: 1px solid var(--wcfContentContainerBorder);
	border-radius: var(--communityos-radius);
	box-shadow: var(--wcfBoxShadowCard, none);
	padding: 16px 20px;
	scroll-margin-top: 70px;
}

.communityosTopicChat--open {
	border-color: color-mix(in srgb, var(--wcfButtonPrimaryBackground) 45%, var(--wcfContentContainerBorder));
}

.communityosTopicChat__header {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.communityosTopicChat__icon {
	align-items: center;
	background-color: color-mix(in srgb, var(--wcfButtonPrimaryBackground) 12%, transparent);
	border-radius: 50%;
	color: var(--wcfButtonPrimaryBackground);
	display: inline-flex;
	flex: 0 0 44px;
	height: 44px;
	justify-content: center;
	width: 44px;
}

.communityosTopicChat--off .communityosTopicChat__icon {
	background-color: var(--wcfContentBackground);
	color: var(--wcfContentDimmedText);
}

.communityosTopicChat__heading {
	flex: 1 1 200px;
	min-width: 0;
}

.communityosTopicChat__title {
	font-size: var(--wcfFontSizeSection);
	font-weight: 600;
	margin: 0;
}

.communityosTopicChat__meta,
.communityosTopicChat__description,
.communityosTopicChat__summariesHint {
	color: var(--wcfContentDimmedText);
	font-size: var(--wcfFontSizeSmall);
}

.communityosTopicChat__description {
	margin-top: 8px;
}

.communityosTopicChat__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.communityosTopicChat__open[aria-expanded="true"] .communityosTopicChat__openLabel,
.communityosTopicChat__open[aria-expanded="false"] .communityosTopicChat__closeLabel {
	display: none;
}

.communityosTopicChat__panel {
	margin-top: 16px;
}

.communityosTopicChat__panel[hidden] {
	display: none;
}

.communityosTopicChat__window {
	background-color: var(--wcfContentBackground);
	border: 1px solid var(--wcfContentBorderInner);
	border-radius: var(--communityos-radius);
	display: flex;
	flex-direction: column;
	height: min(60vh, 520px);
	min-height: 320px;
	overflow: hidden;
}

.communityosTopicChat__window + woltlab-core-notice {
	margin-top: 12px;
}

.communityosTopicChat__toolbar {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 12px;
}

.communityosTopicChat__selection {
	align-items: center;
	display: inline-flex;
	flex-wrap: wrap;
	gap: 8px;
}

.communityosTopicChat__selection[hidden] {
	display: none;
}

.communityosTopicChat__toolbarHint {
	color: var(--wcfContentDimmedText);
	flex: 1 1 100%;
}

.communityosTopicChat__summaries {
	margin-top: 16px;
}

.communityosTopicChat__summariesTitle {
	font-weight: 600;
}

.communityosTopicChat__summaryList {
	display: flex;
	flex-direction: column;
	gap: 12px;
	list-style: none;
	margin: 12px 0 0;
	padding: 0;
}

.communityosTopicChatSummary {
	background-color: var(--wcfContentBackground);
	border: 1px solid var(--wcfContentBorderInner);
	border-left: 3px solid var(--wcfButtonPrimaryBackground);
	border-radius: var(--communityos-radius);
	padding: 12px 16px;
}

.communityosTopicChatSummary__title {
	font-weight: 600;
}

.communityosTopicChatSummary__meta {
	color: var(--wcfContentDimmedText);
	font-size: var(--wcfFontSizeSmall);
	margin-top: 2px;
}

.communityosTopicChatSummary__text {
	margin-top: 8px;
	overflow-wrap: anywhere;
}

.communityosTopicChatSummary__summary {
	white-space: pre-line;
}

.communityosTopicChatSummary__actions {
	margin-top: 12px;
}

@media (max-width: 544px) {
	.communityosTopicChat {
		padding: 12px;
	}

	.communityosTopicChat__actions {
		width: 100%;
	}

	.communityosTopicChat__actions .button {
		flex: 1 1 auto;
		justify-content: center;
	}

	.communityosTopicChat__window {
		height: 70vh;
	}
}

/* Ad locations of the communities (core ad system, docs/COMMUNITY-BILLING.md) */
.communityosAd {
	margin: 16px 0;
}

.communityosAd--sidebar {
	margin-top: 0;
}

/* "Powered by" hint of the platform (communities without the function "white_label") */
.communityosPoweredBy {
	margin: 24px 0 0;
	text-align: center;
	color: var(--wcfContentDimmedText);
	font-size: var(--wcfFontSizeSmall);
}

.communityosPoweredBy__link,
.communityosPoweredBy__link:hover {
	color: inherit;
}

/* Read-only community (free model "trial_only") */
.communityosReadOnlyBadge {
	gap: 4px;
}

.communityosReadOnlyBanner {
	margin-top: 16px;
}
