/* Moedes forum base: tokens, shells, columns and responsive layout. */
/*
 * Moedes forum foundation for the Moedes child theme.
 * Zibll remains the source of truth for forum markup and interaction.
 */

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) {
	--moedes-forum-surface: var(--main-bg-color, #fff);
	--moedes-forum-surface-muted: var(--muted-bg-color, #f6f8fb);
	--moedes-title-color: var(--moedes-title, #111827);
	--moedes-title-active-color: var(--moedes-title-active, var(--moedes-primary, var(--theme-color, #2f6fed)));
	--moedes-heading: var(--moedes-title-color);
	--moedes-heading-active: var(--moedes-title-active-color);
	--moedes-forum-nav-surface: #fff;
	--moedes-forum-nav-text: #243043;
	--moedes-forum-nav-muted: #6b7280;
	--moedes-forum-nav-active: var(--moedes-primary, var(--moedes-forum-accent, var(--focus-color, #2f6fed)));
	--moedes-forum-border: var(--main-border-color, #e6eaf0);
	--moedes-forum-text: var(--main-color, #243043);
	--moedes-forum-muted: var(--muted-2-color, #7a8493);
	--moedes-forum-rank-1: var(--moedes-rank-1, var(--moedes-primary, #F39A07));
	--moedes-forum-rank-2: var(--moedes-rank-2, var(--moedes-primary, #F39A07));
	--moedes-forum-rank-3: var(--moedes-rank-3, var(--moedes-primary, #F39A07));
	--moedes-forum-space-sm: 8px;
	--moedes-forum-space-md: 14px;
	--moedes-forum-space-lg: 18px;
	--moedes-forum-widget-gap: 24px;
	--moedes-forum-stats-gap: 12px;
	/* Keep the hot-ranking preview at the original, more readable size. */
	--moedes-forum-ranking-cover-width: 118px;
	--moedes-forum-ranking-cover-height: calc(
		var(--moedes-forum-ranking-cover-width) * 0.5625
	);
	--moedes-forum-ranking-item-gap: 10px;
	--moedes-forum-ranking-row-height: 40px;
	--moedes-forum-ranking-active-extra: 48px;
	--moedes-forum-ranking-active-row-height: calc(
		var(--moedes-forum-ranking-row-height) + var(--moedes-forum-ranking-active-extra)
	);
	--moedes-forum-board-thumb-width: 96px;
	--moedes-forum-board-thumb-height: 72px;
	--moedes-forum-stats-links-width: 130px;
	--moedes-forum-stats-scroll-gap: 12px;
	--moedes-forum-stats-icon-size: 30px;
	--moedes-forum-stats-item-gap: 16px;
	--moedes-forum-collapse-switch-width: 46px;
	--moedes-forum-collapse-switch-height: 26px;
	--moedes-forum-collapse-switch-knob: 22px;
	--moedes-forum-collapse-switch-off: rgba(189, 189, 189, 0.4);
	--moedes-forum-collapse-switch-on: var(--moedes-primary, var(--focus-color, var(--theme-color, #2f6fed)));
	--moedes-forum-collapse-switch-safe-right: 0px;
	/* Match Zibll's native desktop header: 50px navbar + 8px vertical padding. */
	--moedes-forum-header-height: 66px;
	--moedes-forum-header-content-gap: 16px;
	--moedes-circle-directory-width: 240px;
	--moedes-circle-directory-expanded-width: 240px;
	--moedes-circle-directory-collapsed-width: 64px;
	--moedes-circle-directory-group-gap: 20px;
	--moedes-circle-directory-item-gap: 10px;
	--moedes-circle-directory-item-height: 42px;
	--moedes-forum-main-column-max: 1080px;
	--moedes-forum-column-gap: 24px;
	--moedes-forum-shell-inline-padding: 24px;
	--moedes-forum-right-column-width: 300px;
	--moedes-forum-header-surface: #fff;
	--moedes-forum-action-radius: var(--moedes-forum-radius, var(--main-radius, 8px));
	--moedes-forum-vip-action: var(--moedes-secondary, #FF7073);
	--moedes-forum-vip-action-hover: var(--moedes-secondary-hover, #e45f62);
	--moedes-user-profile-surface: var(--main-bg-color, #fff);
	--moedes-user-profile-border: var(--main-border-color, #e6eaf0);
	--moedes-user-profile-muted: var(--muted-2-color, #7a8493);
	--moedes-user-profile-cover-height: 94px;
	--moedes-user-profile-avatar-size: 62px;
	--moedes-user-profile-avatar-border: 3px;
	--moedes-user-profile-accent: var(--moedes-primary, var(--focus-color, #2f6fed));
	--moedes-user-profile-message: var(--moedes-secondary, #FF7073);
	--moedes-user-profile-follow: var(--moedes-tertiary, #51A2FF);
	--moedes-user-profile-intro: var(--muted-bg-color, #f4f5f7);
	--moedes-user-profile-gap: 10px;
	/* Updated by the forum script to exclude the desktop scrollbar width. */
	--moedes-forum-viewport-width: 100vw;
	/*
	 * Keep both navigation layers aligned with the Bootstrap container used
	 * by the forum content. The parent theme intentionally makes
	 * `.container-header` wider than the page container; the forum shell
	 * should opt out of that extra 180px gutter.
	 */
	--moedes-forum-content-width: min(
		var(--moedes-forum-max-width, var(--mian-max-width, 1180px)),
		1170px
	);
	background: var(--body-bg-color, #f4f7fb);
	color: var(--key-color, #1f2937);
	overflow-x: hidden;
	overflow-x: clip;
}

/*
 * Zibll's mobile off-canvas menu is intentionally positioned outside the
 * viewport while closed. Apply the overflow guard to the root element too,
 * otherwise that hidden drawer can create a 10px horizontal page scroll on
 * narrow screens.
 */
html.moedes-forum-ready {
	overflow-x: clip;
}

/*
 * Widget headings stay neutral by default. Only the active tab or selected
 * ranking row receives the configured Moedes primary color, which keeps the
 * page hierarchy quiet while preserving clear interaction feedback.
 */
body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list)
	:is(
		.moedes-forum-ranking__heading,
		.moedes-forum-home-recommendations__title,
		.moedes-forum-news__title,
		.moedes-forum-anime-news__title,
		.moedes-forum-anime-notice__title,
		.moedes-forum-latest-release__title,
		.moedes-forum-visual-ranking__title,
		.moedes-forum-recommendations__heading
	) {
	color: var(--moedes-title-color);
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list)
	:is(
		.moedes-forum-ranking__tab[aria-selected="true"],
		.moedes-forum-ranking__item.is-active .moedes-forum-ranking__title,
		.moedes-forum-visual-ranking__item.is-active .moedes-forum-visual-ranking__post-title
	) {
	color: var(--moedes-title-active-color);
}

/*
 * Continuous forum rows.
 *
 * Board and forum-home lists retain Zibll's author, gallery, AJAX and action
 * nodes, but lose the independent card treatment. The excerpt is kept light
 * and the generated detail link is the only accent in the preview.
 */
body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list):not(.single-forum_post):not(.single-post)
	.forum-posts.detail {
	--moedes-forum-list-title: var(--moedes-title-color, #111827);
	--moedes-forum-list-title-active: var(
		--moedes-title-active-color,
		var(--moedes-primary, var(--theme-color, #2f6fed))
	);
	--moedes-forum-list-excerpt: var(--muted-color, #7a8493);
	--moedes-forum-list-inline-padding: clamp(14px, 2vw, 20px);
	display: block;
	box-sizing: border-box;
	margin: 0;
	padding: 18px var(--moedes-forum-list-inline-padding);
	border: 0;
	border-bottom: 1px solid var(--moedes-forum-border);
	border-radius: 0;
	background: var(--moedes-forum-surface);
	box-shadow: none;
	transition: none;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list):not(.single-forum_post):not(.single-post)
	.forum-posts.detail:first-of-type {
	padding-top: 8px;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list):not(.single-forum_post):not(.single-post)
	.forum-posts.detail:last-of-type {
	border-bottom: 0;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list):not(.single-forum_post):not(.single-post)
	.forum-posts.detail
	.forum-title {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.4;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list):not(.single-forum_post):not(.single-post)
	.forum-posts.detail
	.forum-title
	> a {
	color: var(--moedes-forum-list-title);
	font-weight: 700;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list):not(.single-forum_post):not(.single-post)
	.forum-posts.detail
	.forum-title
	> a:hover,
body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list):not(.single-forum_post):not(.single-post)
	.forum-posts.detail
	.forum-title
	> a:focus-visible {
	color: var(--moedes-forum-list-title-active);
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list):not(.single-forum_post):not(.single-post)
	.forum-posts.detail
	.content {
	margin-top: 7px !important;
	color: var(--moedes-forum-list-excerpt);
	font-size: 14px;
	font-weight: 300;
	line-height: 1.75;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list):not(.single-forum_post):not(.single-post)
	.forum-posts.detail
	.content
	.excerpt {
	display: inline;
	margin: 0;
	color: inherit;
	font-weight: inherit;
	line-height: inherit;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list):not(.single-forum_post):not(.single-post)
	.forum-posts.detail
	.moedes-list-detail-link,
body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list):not(.single-forum_post):not(.single-post)
	.forum-posts.detail
	.moedes-list-detail-link:visited {
	color: var(--moedes-secondary, #ff7073);
	font-weight: 400;
	white-space: nowrap;
	text-decoration: none;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list):not(.single-forum_post):not(.single-post)
	.forum-posts.detail
	.moedes-list-detail-link:hover,
body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list):not(.single-forum_post):not(.single-post)
	.forum-posts.detail
	.moedes-list-detail-link:focus-visible {
	color: var(--moedes-secondary-hover, var(--moedes-secondary, #ff7073));
	text-decoration: underline;
	text-underline-offset: 2px;
}

body.dark-theme.moedes-forum:not(.single-forum_post):not(.single-post)
	.forum-posts.detail {
	--moedes-forum-list-title: var(--key-color, #f8fafc);
	--moedes-forum-list-excerpt: var(--muted-color, #b4b6bb);
}

/*
 * Guest actions keep Zibll's native hooks while using the Moedes palette.
 * This covers login-required forum actions, comment prompts and paid-content
 * prompts without changing their AJAX or modal behavior.
 */
body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list):not(.logged-in) :is(.signin-loader.but.jb-blue, .signin-loader.but.c-blue) {
	border-color: transparent;
	background: var(--moedes-primary, var(--theme-color, #2f6fed)) !important;
	color: var(--moedes-primary-foreground, #fff) !important;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list):not(.logged-in) :is(.signup-loader.but.jb-yellow, .signup-loader.but.c-yellow) {
	border-color: transparent;
	background: var(--moedes-secondary, #ff7073) !important;
	color: var(--moedes-secondary-foreground, #fff) !important;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list):not(.logged-in) :is(.signin-loader.but.jb-blue, .signin-loader.but.c-blue):hover,
body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list):not(.logged-in) :is(.signin-loader.but.jb-blue, .signin-loader.but.c-blue):focus-visible {
	background: var(--moedes-primary-hover, var(--moedes-primary, var(--theme-color, #2f6fed))) !important;
	color: var(--moedes-primary-foreground, #fff) !important;
	opacity: 1;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list):not(.logged-in) :is(.signup-loader.but.jb-yellow, .signup-loader.but.c-yellow):hover,
body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list):not(.logged-in) :is(.signup-loader.but.jb-yellow, .signup-loader.but.c-yellow):focus-visible {
	background: var(--moedes-secondary-hover, var(--moedes-secondary, #ff7073)) !important;
	color: var(--moedes-secondary-foreground, #fff) !important;
	opacity: 1;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list):not(.logged-in) :is(.signin-loader.but, .signup-loader.but):focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

/*
 * Keep Zibll avatar wrappers and their images on one configurable radius.
 * The default preserves Zibll's native circular avatar presentation while
 * allowing the site owner to choose a different avatar radius in Moedes.
 */
body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) :where(.avatar-img, .avatar-mini, .avatar-md, .avatar-lg) {
	overflow: hidden;
	border-radius: var(--moedes-avatar-radius, 100px);
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list)
	:where(.avatar-img, .avatar-mini, .avatar-md, .avatar-lg)
	> .avatar {
	border-radius: inherit;
}

/*
 * Screenshot-inspired author profile card.
 *
 * The card is intentionally quiet: one cover image, one clear identity row,
 * a compact stat strip and a short recent-post list. All surfaces and state
 * colours inherit the Moedes/Zibll tokens so it remains usable in dark mode
 * and when the site's global radius is set to zero.
 */
body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-user-profile {
	width: 100%;
	min-width: 0;
	margin: 0;
	padding: 0;
	overflow: hidden;
	border: 1px solid var(--moedes-user-profile-border);
	border-radius: var(--moedes-forum-radius, var(--main-radius, 8px));
	background: var(--moedes-user-profile-surface);
	box-shadow: none;
	color: var(--moedes-title-color);
	box-sizing: border-box;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-user-profile__cover {
	position: relative;
	height: var(--moedes-user-profile-cover-height);
	overflow: hidden;
	background: var(--muted-bg-color, #f5f6f8);
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-user-profile__cover::after {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 58%, rgba(0, 0, 0, 0.16));
	content: "";
	pointer-events: none;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-user-profile__cover > img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-user-profile__body {
	position: relative;
	min-width: 0;
	padding: 0 14px 14px;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-user-profile__identity-row {
	display: flex;
	min-width: 0;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 11px;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-user-profile__avatar-wrap {
	position: relative;
	z-index: 1;
	flex: 0 0 var(--moedes-user-profile-avatar-size);
	width: var(--moedes-user-profile-avatar-size);
	height: var(--moedes-user-profile-avatar-size);
	margin-top: calc(var(--moedes-user-profile-avatar-size) / -2);
	border: var(--moedes-user-profile-avatar-border) solid var(--moedes-user-profile-surface);
	border-radius: var(--moedes-avatar-radius, 100px);
	background: var(--moedes-user-profile-surface);
	box-shadow: 0 2px 6px rgba(31, 41, 55, 0.08);
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-user-profile__avatar,
body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-user-profile__avatar-link,
body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-user-profile__avatar-link > .moedes-user-profile__avatar,
body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-user-profile__avatar .avatar {
	display: block;
	width: 100%;
	height: 100%;
	overflow: hidden;
	border-radius: max(0px, calc(var(--moedes-avatar-radius, 100px) - 2px));
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-user-profile__avatar-link {
	position: relative;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-user-profile__avatar-link > .moedes-user-profile__avatar > img,
body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-user-profile__avatar > img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-user-profile__identity-main {
	min-width: 0;
	flex: 1 1 auto;
	padding-top: 9px;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-user-profile__name-row {
	display: flex;
	min-width: 0;
	flex-wrap: wrap;
	align-items: center;
	gap: 3px;
	min-height: 24px;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-user-profile__name {
	display: flex;
	min-width: 0;
	align-items: center;
	max-width: 100%;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-user-profile__display-name {
	display: inline-block;
	min-width: 0;
	max-width: 100%;
	overflow: hidden;
	color: var(--moedes-title-color);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.35;
	text-overflow: ellipsis;
	white-space: nowrap;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-user-profile__display-name:hover,
body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-user-profile__display-name:focus-visible {
	color: var(--moedes-user-profile-accent);
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-user-profile__name .img-icon,
body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-user-profile__name img {
	flex: 0 0 auto;
	width: auto;
	height: 1.1em;
	max-width: 6em;
	max-height: none;
	object-fit: contain;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-user-profile__role {
	display: inline-flex;
	min-width: 0;
	flex: 0 0 auto;
	align-items: center;
	gap: 3px;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-user-profile__role .badg {
	margin: 0 !important;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-user-profile__context-label {
	display: inline-flex;
	align-items: center;
	min-height: 18px;
	padding: 2px 6px;
	border-radius: var(--moedes-forum-radius, var(--main-radius, 8px));
	background: var(--moedes-user-profile-accent);
	color: #fff;
	font-size: 10px;
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-user-profile--author .moedes-user-profile__member-meta {
	color: var(--moedes-user-profile-accent);
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-user-profile__identity {
	margin: 0 !important;
	padding: 1px 5px;
	font-size: 11px;
	line-height: 1.35;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-user-profile__member-meta {
	flex: 0 0 100%;
	width: 100%;
	margin-top: -9px;
	overflow: hidden;
	color: var(--moedes-user-profile-muted);
	font-size: 12px;
	line-height: 1.45;
	text-align: center;
	text-overflow: ellipsis;
	white-space: nowrap;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-user-profile__medals {
	display: flex;
	min-height: 37px;
	align-items: center;
	justify-content: center;
	margin: 7px 0 8px;
	padding: 3px 0 8px;
	border-bottom: 1px solid var(--moedes-user-profile-border);
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-user-profile__medal-link {
	display: inline-flex;
	min-width: 0;
	align-items: center;
	justify-content: center;
	gap: 3px;
	color: var(--moedes-user-profile-muted);
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-user-profile__medal-link .medal-icon {
	width: 27px;
	height: 27px;
	object-fit: contain;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-user-profile__medal-link > span:last-child {
	display: none;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-user-profile__stats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	min-height: 58px;
	margin: 0 0 var(--moedes-user-profile-gap);
	border-top: 1px solid var(--moedes-user-profile-border);
	border-bottom: 1px solid var(--moedes-user-profile-border);
	overflow: hidden;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-user-profile__stat {
	display: flex;
	min-width: 0;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	min-height: 56px;
	padding: 4px 4px 8px;
	border-right: 1px solid var(--moedes-user-profile-border);
	color: var(--moedes-user-profile-muted);
	text-align: center;
	text-decoration: none;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-user-profile__stat:last-child {
	border-right: 0;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-user-profile__stat strong {
	color: var(--moedes-title-color);
	font-size: 17px;
	font-weight: 600;
	line-height: 1.2;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-user-profile__stat span {
	font-size: 12px;
	line-height: 1.4;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-user-profile__stat:hover strong,
body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-user-profile__stat:focus-visible strong {
	color: var(--moedes-user-profile-accent);
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-user-profile__intro {
	margin-bottom: var(--moedes-user-profile-gap);
	padding: 9px 10px;
	background: var(--moedes-user-profile-intro);
	color: var(--moedes-title-color);
	font-size: 12px;
	line-height: 1.55;
	overflow-wrap: anywhere;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-user-profile__actions {
	display: flex;
	min-width: 0;
	gap: 7px;
	margin-bottom: var(--moedes-user-profile-gap);
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-user-profile__actions--author {
	padding-top: 2px;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-user-profile__button {
	display: inline-flex !important;
	min-width: 0;
	flex: 1 1 0;
	align-items: center;
	justify-content: center;
	min-height: 35px;
	margin: 0 !important;
	padding: 6px 7px !important;
	border: 0 !important;
	border-radius: var(--moedes-forum-radius, var(--main-radius, 8px)) !important;
	color: #fff !important;
	font-size: 13px;
	line-height: 1.35;
	text-align: center;
	text-decoration: none;
	white-space: nowrap;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-user-profile__button--message {
	background: var(--moedes-user-profile-message) !important;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-user-profile__button--follow {
	background: var(--moedes-user-profile-follow) !important;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-user-profile--author .moedes-user-profile__button--message {
	background: var(--moedes-user-profile-accent) !important;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-user-profile--author .moedes-user-profile__button--follow {
	background: var(--moedes-user-profile-follow) !important;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-user-profile__button:hover,
body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-user-profile__button:focus-visible {
	opacity: 0.86;
	color: #fff !important;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-user-profile__button .icon,
body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-user-profile__button .fa {
	flex: 0 0 auto;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-user-profile__recent {
	min-width: 0;
	margin-top: 1px;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-user-profile__section-label {
	margin-bottom: 4px;
	color: var(--moedes-user-profile-muted);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.4;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-user-profile__post-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-user-profile__post-item {
	min-width: 0;
	margin: 0;
	padding: 3px 0;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-user-profile__post-link {
	display: flex;
	min-width: 0;
	align-items: baseline;
	gap: 4px;
	color: var(--moedes-title-color);
	font-size: 12px;
	line-height: 1.5;
	text-decoration: none;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-user-profile__post-plate {
	flex: 0 0 auto;
	color: var(--moedes-user-profile-message);
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-user-profile__post-plate a {
	color: inherit;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-user-profile__post-title {
	min-width: 0;
	overflow: hidden;
	color: inherit;
	text-overflow: ellipsis;
	text-decoration: none;
	white-space: nowrap;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-user-profile__post-link:hover,
body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-user-profile__post-link:focus-within {
	color: var(--moedes-user-profile-accent);
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-user-profile__more {
	display: block;
	width: 100%;
	margin-top: 9px;
	padding: 9px 10px;
	border-radius: var(--moedes-forum-radius, var(--main-radius, 8px));
	background: var(--moedes-user-profile-message);
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	text-align: center;
	text-decoration: none;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-user-profile__more:hover,
body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-user-profile__more:focus-visible {
	opacity: 0.86;
	color: #fff;
}

body.dark-theme.moedes-forum .moedes-user-profile__display-name,
body.dark-theme.moedes-forum .moedes-user-profile__stat strong,
body.dark-theme.moedes-forum .moedes-user-profile__post-link {
	color: var(--key-color, #f1f5fb);
}

@media (max-width: 600px) {
	body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) {
		--moedes-user-profile-cover-height: 86px;
		--moedes-user-profile-avatar-size: 56px;
	}

	body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-user-profile__body {
		padding-right: 11px;
		padding-left: 11px;
	}

	body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-user-profile__identity-row {
		gap: 9px;
	}

	body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-user-profile__display-name {
		font-size: 15px;
	}

	body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-user-profile__member-meta {
		font-size: 11px;
	}

	body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-user-profile__post-link {
		font-size: 12px;
	}}

body.dark-theme.moedes-forum {
	--moedes-title-color: var(--key-color, #f1f5fb);
	--moedes-title-active-color: var(--moedes-primary, #F39A07);
	--moedes-forum-nav-text: var(--key-color, #f1f5fb);
	--moedes-forum-nav-muted: var(--muted-color, #b4bcc8);
	--moedes-forum-nav-active: var(--moedes-tertiary, #8eb5ff);
	--moedes-forum-header-surface: #323335;
	--moedes-user-profile-surface: var(--main-bg-color, #2f3237);
	--moedes-user-profile-border: var(--main-border-color, #4a4f57);
	--moedes-user-profile-muted: var(--muted-2-color, #b4bcc8);
	--moedes-user-profile-intro: var(--muted-bg-color, #383c42);
	--moedes-user-profile-message: var(--moedes-secondary, #e5a23a);
	--moedes-user-profile-follow: var(--moedes-tertiary, #ff7f7f);
}

/*
 * Bootstrap changes the forum container width at each desktop breakpoint.
 * Mirror those widths here so the navigation never projects beyond the
 * content column on 1024px and 900px layouts.
 */
@media (min-width: 1200px) {
	body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) {
		--moedes-forum-content-width: min(
			var(--moedes-forum-max-width, var(--mian-max-width, 1180px)),
			1170px
		);
	}}

@media (min-width: 992px) and (max-width: 1199px) {
	body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) {
		--moedes-forum-content-width: min(
			var(--moedes-forum-max-width, var(--mian-max-width, 1180px)),
			970px
		);
	}}

@media (min-width: 768px) and (max-width: 991px) {
	body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) {
		--moedes-forum-content-width: min(
			var(--moedes-forum-max-width, var(--mian-max-width, 1180px)),
			750px
		);
	}}

/*
 * The primary Zibll header stays in normal document flow above the page
 * content. The former standalone Moedes second navigation is retired; native
 * Zibll tab rails remain inside their owning content panels.
 */
body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list).nav-fixed {
	padding-top: var(--moedes-forum-header-height, 52px);
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list).nav-fixed .header {
	position: fixed !important;
	top: 0;
	left: 0;
	right: 0;
	margin-bottom: 0 !important;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list):not(.nav-fixed) .header {
	position: relative !important;
	top: auto;
	left: auto;
	right: auto;
	margin-bottom: 0 !important;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .header-slider-container,
body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .slide-header {
	margin-top: 0 !important;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .header-slider-container {
	margin-bottom: 0 !important;
	position: relative;
	z-index: 1;
}

/*
 * The standalone Moedes second navigation is retired.  Keep this CSS guard
 * in place for cached markup and for the short interval before the deferred
 * enhancement script removes an old generated node.  Zibll's native list
 * tabs remain untouched inside their original AJAX panel.
 */
body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list)
	.moedes-forum-secondary-nav {
	display: none !important;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-forum-secondary-nav + .affix-clone {
	display: none !important;
}

/* Cached pages can briefly lack the body context class. Keep the retired
 * navigation hidden during that short interval as well. */
.moedes-forum-secondary-nav,
.moedes-forum-secondary-nav__dropdown-menu,
[data-moedes-secondary-dropdown-menu] {
	display: none !important;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .header {
	min-height: var(--moedes-forum-header-height, 66px);
	padding: 0 20px !important;
	margin-bottom: 0 !important;
	position: relative;
	z-index: 30;
	background: var(--moedes-forum-header-surface) !important;
	-webkit-backdrop-filter: none !important;
	backdrop-filter: none !important;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .sidebar {
	position: relative;
	z-index: 1;
}

@media (min-width: 992px) {
	/*
	 * Keep the original sidebar in normal document flow and let the browser
	 * handle both downward and upward scrolling natively. Zibll still creates
	 * `.sidebar-affix` for data-affix widgets, but its cloned proxy is hidden
	 * so it cannot delay or interrupt the real sidebar's sticky state.
	 */
	body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .sidebar {
		position: sticky !important;
		top: var(--moedes-forum-header-height, 66px) !important;
		align-self: flex-start;
		z-index: 2;
	}

	body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list):not(.nav-fixed) .sidebar {
		top: 0 !important;
	}

	body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .sidebar > .sidebar-affix {
		display: none !important;
	}}

@media (min-width: 768px) {
	body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .header {
		min-height: var(--moedes-forum-header-height, 66px);
		padding: 8px 20px !important;
	}

	body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .navbar-top {
		display: flex;
		align-items: center;
		height: 50px;
		min-height: 50px;
		background: var(--moedes-forum-header-surface) !important;
	}

	body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .navbar-top .container-header {
		display: flex;
		align-items: center;
		flex: 1 1 auto;
		height: 50px;
		min-height: 50px;
		width: 100%;
		max-width: none;
		margin-right: 0;
		margin-left: 0;
		box-sizing: border-box;
	}

	body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .navbar-top .navbar-header,
	body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .navbar-top .navbar-brand,
	body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .navbar-top .navbar-collapse,
	body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .navbar-top .navbar-nav,
	body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .navbar-top .nav > li {
		display: flex;
		align-items: center;
		height: 100%;
		min-height: 0;
	}

	body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .navbar-top .navbar-header,
	body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .navbar-top .navbar-collapse,
	body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .navbar-top .navbar-nav,
	body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .navbar-top .nav > li {
		float: none !important;
	}

	body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .navbar-top .navbar-header::before,
	body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .navbar-top .navbar-header::after,
	body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .navbar-top .navbar-collapse::before,
	body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .navbar-top .navbar-collapse::after {
		display: none;
	}

	body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .navbar-top .navbar-header {
		flex: 0 0 auto;
	}

	body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .navbar-top .navbar-brand {
		padding: 0 8px;
	}

	body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .navbar-top .navbar-logo > img {
		display: block;
		height: 30px;
		padding-right: 18px;
		padding-left: 18px;
	}

	body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .navbar-top .navbar-collapse {
		display: flex !important;
		flex: 1 1 auto;
		height: 100% !important;
		min-width: 0;
		overflow: visible;
		padding: 0;
	}

	body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .navbar-top .navbar-nav {
		flex: 0 1 auto;
		margin-top: 0;
		margin-bottom: 0;
	}

	body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .navbar-top .nav > li {
		max-height: none;
	}

	body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .navbar-top .nav > li > a {
		display: inline-flex !important;
		align-items: center;
		height: 100%;
		min-height: 50px;
		padding-top: 0;
		padding-bottom: 0;
	}

	body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .navbar-top .navbar-collapse > .navbar-form,
	body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .navbar-top .navbar-collapse > .navbar-text,
	body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .navbar-top .navbar-collapse > .navbar-right {
		display: flex;
		align-items: center;
		height: 100%;
		float: none !important;
		margin-top: 0;
		margin-bottom: 0;
		padding-top: 0;
		padding-bottom: 0;
	}

	body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .navbar-top .navbar-collapse > .navbar-form.navbar-left {
		flex: 0 1 auto;
		min-width: 0;
	}

	body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .navbar-top .navbar-collapse > .navbar-form {
		padding-right: 8px;
		padding-left: 8px;
	}

	body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .navbar-top .navbar-collapse >
	.navbar-form.navbar-right {
		flex: 0 0 auto;
		justify-content: flex-end;
		min-width: max-content;
		white-space: nowrap;
	}

	body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .navbar-top .navbar-collapse > .navbar-text {
		flex: 0 0 auto;
		justify-content: flex-end;
		min-width: max-content;
		white-space: nowrap;
		padding-right: 8px;
		padding-left: 8px;
	}

	body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .navbar-top .navbar-collapse >
	.navbar-form.navbar-right > .list-inline {
		display: flex;
		align-items: center;
		gap: 8px;
		margin: 0;
		white-space: nowrap;
	}

	body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .navbar-top .navbar-collapse >
	.navbar-form.navbar-right > .list-inline > li {
		display: flex;
		align-items: center;
		float: none;
		margin: 0;
		padding: 0;
		line-height: 1;
	}

	body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .navbar-top .navbar-collapse >
	.navbar-form.navbar-right > .list-inline > li > a {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		line-height: 1;
		vertical-align: middle;
	}

	body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .navbar-top .navbar-collapse >
	.navbar-form.navbar-right > .list-inline > li > a > img,
	body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .navbar-top .navbar-collapse >
	.navbar-form.navbar-right > .list-inline > li > a > svg,
	body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .navbar-top .navbar-collapse >
	.navbar-form.navbar-right > .list-inline > li > a > i {
		display: block;
	}

	/*
	 * Keep the remaining right-side controls grouped after the shared menu.
	 * The retired standalone second navigation no longer owns these actions.
	 */
	body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .navbar-top .navbar-collapse >
	.navbar-form.navbar-right.flex.ac {
		flex: 0 0 auto;
		margin-left: auto !important;
		justify-content: flex-end;
	}

	/* Fallback for installations that hide the theme/translation group. */
	body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .navbar-top .navbar-collapse >
	.navbar-form.navbar-right:where(:not(.navbar-but):not(.flex):not(.navbar-text)) {
		margin-left: auto !important;
	}

	body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .navbar-top .navbar-collapse >
	.navbar-form.navbar-right.flex.ac +
	.navbar-form.navbar-right {
		margin-left: 0 !important;
	}

	body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .navbar-top .navbar-collapse >
	.navbar-form.navbar-right.navbar-text {
		margin-left: 0 !important;
		justify-content: flex-end;
	}}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) :where(.content-wrap, .content-layout, .sidebar) {
	min-width: 0;
}

/*
 * Post-page breadcrumb. The parent theme normally renders this inside the
 * article column. Steam-enabled posts render the same native list as a
 * full-width sibling immediately before the overview, so it never consumes
 * article/sidebar width.
 */
body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-forum-post-breadcrumb {
	width: 100%;
	min-width: 0;
	margin: 0 0 var(--moedes-forum-space-md, 14px);
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-forum-post-breadcrumb .breadcrumb {
	display: flex;
	width: 100%;
	min-width: 0;
	margin: 0;
	padding: 0 4px;
	align-items: center;
	flex-wrap: wrap;
	gap: 0;
	box-sizing: border-box;
	color: var(--moedes-forum-muted);
	font-size: 13px;
	line-height: 1.5;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-forum-post-breadcrumb .breadcrumb a {
	color: var(--moedes-forum-muted);
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-forum-post-breadcrumb .breadcrumb a:hover,
body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-forum-post-breadcrumb .breadcrumb a:focus-visible {
	color: var(--moedes-forum-accent, var(--theme-color, #2f6fed));
}

/*
 * Native post title and metadata, relocated above the content/sidebar grid.
 * This stays deliberately quiet: the white surface establishes the hierarchy,
 * while title, author, counters and Zibll's optional more controls remain the
 * only information shown here.
 */
body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-forum-post-summary {
	width: 100%;
	min-width: 0;
	margin: 0 0 var(--moedes-forum-space-lg, 18px);
	padding: clamp(10px, 1.1vw, 14px) clamp(16px, 1.5vw, 20px);
	border: 1px solid var(--moedes-forum-border, var(--main-border-color, #e6eaf0));
	border-radius: var(--moedes-forum-radius, var(--main-radius, 8px));
	background: var(--moedes-forum-surface, var(--main-bg-color, #fff));
	box-shadow: none;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-forum-post-summary.is-relocated {
	flex: 0 0 100%;
	max-width: 100%;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-forum-post-summary > .article-header {
	display: grid;
	min-width: 0;
	gap: 4px;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-forum-post-summary .article-title {
	min-width: 0;
	margin: 0 !important;
	color: var(--moedes-title-color);
	font-size: clamp(22px, 1.8vw, 26px);
	font-weight: 700;
	line-height: 1.24;
	overflow-wrap: anywhere;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-forum-post-summary .article-title > a {
	color: inherit;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-forum-post-summary .article-title > a:hover,
body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-forum-post-summary .article-title > a:focus-visible {
	color: var(--moedes-title-active-color);
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-forum-post-summary .forum-article-meta {
	display: flex;
	min-width: 0;
	align-items: center;
	justify-content: space-between;
	gap: var(--moedes-forum-space-md, 14px);
	flex-wrap: wrap;
	color: var(--moedes-forum-muted, var(--muted-2-color, #7a8493));
	font-size: 12px;
	line-height: 1.4;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-forum-post-summary .forum-article-meta :where(.meta-left, .meta-right) {
	display: flex;
	min-width: 0;
	align-items: center;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-forum-post-summary .forum-article-meta .meta-left {
	flex: 1 1 auto;
	overflow: hidden;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-forum-post-summary .forum-article-meta .meta-left > name {
	display: inline-flex;
	min-width: 0;
	align-items: center;
	overflow: hidden;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-forum-post-summary .forum-article-meta .display-name {
	max-width: min(28vw, 220px);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-forum-post-summary .forum-article-meta .meta-right {
	flex: 0 0 auto;
	margin-left: auto;
	white-space: nowrap;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-forum-post-summary .forum-article-meta .meta-right .item {
	margin-left: var(--moedes-forum-space-md, 14px);
}

@media (max-width: 600px) {
	body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-forum-post-summary {
		margin-bottom: 14px;
		padding: 10px 14px;
	}

	body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-forum-post-summary .article-title {
		font-size: 21px;
	}

	body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-forum-post-summary .forum-article-meta {
		gap: 6px 10px;
	}

	body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-forum-post-summary .forum-article-meta .meta-left {
		flex-basis: 100%;
	}

	body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-forum-post-summary .forum-article-meta .meta-right {
		margin-left: 0;
	}

	body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-forum-post-summary .forum-article-meta .display-name {
		max-width: 48vw;
	}}

/*
 * Zibll reserves 80px for a vertical affix rail. The original rail node is
 * moved into the post metadata row by `moedes-forum.js`, preserving its AJAX,
 * login and share behavior while returning the reserved width to the article.
 */
@media (min-width: 768px) {
	body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .fixed-wrap.single-wrap > .fixed-wrap-content {
		margin-left: 0 !important;
	}

	/* Zibll may create an invisible measuring clone before Moedes relocates
	 * the original node. It must never intercept input or enter the a11y tree. */
	body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .single-fixed-btns.affix-clone {
		display: none !important;
		pointer-events: none !important;
	}}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .forum-article .forum-article-meta {
	justify-content: flex-start;
	gap: 8px var(--moedes-forum-space-md, 14px);
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .forum-article .forum-article-meta > .meta-left {
	min-width: 0;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .forum-article .forum-article-meta > .meta-right {
	flex: 0 0 auto;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-forum-post-actions {
	--moedes-forum-post-action-size: 30px;
	--moedes-forum-post-action-gap: 6px;
	display: flex !important;
	position: static !important;
	inset: auto !important;
	width: auto !important;
	min-width: 0;
	height: auto !important;
	margin: 0 0 0 auto !important;
	padding: 0 !important;
	flex: 0 0 auto;
	align-items: center;
	align-self: center;
	text-align: left !important;
	transform: none !important;
	z-index: 20;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-forum-post-actions > div,
body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-forum-post-actions .score-box,
body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-forum-post-actions .score-btns {
	display: flex !important;
	width: auto !important;
	height: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	align-items: center;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-forum-post-actions > div {
	gap: var(--moedes-forum-post-action-gap);
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-forum-post-actions .score-btns {
	gap: var(--moedes-forum-post-action-gap);
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-forum-post-actions .score-btns > text,
body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-forum-post-actions > div > .btn-favorite > text,
body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-forum-post-actions > div > .btn-share > text {
	display: none !important;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-forum-post-actions .score-btns > .btn-score,
body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-forum-post-actions > div > .btn-favorite,
body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-forum-post-actions > div > .btn-share {
	display: inline-flex !important;
	position: relative;
	width: var(--moedes-forum-post-action-size) !important;
	min-width: var(--moedes-forum-post-action-size);
	height: var(--moedes-forum-post-action-size) !important;
	margin: 0 !important;
	padding: 0 !important;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--main-border-color, #e5eaf1);
	border-radius: var(--moedes-forum-control-radius, 6px) !important;
	background: var(--muted-bg-color, var(--main-bg-color, #fff)) !important;
	box-shadow: none !important;
	color: var(--muted-color, #6b7280);
	font-size: 17px !important;
	line-height: 1;
	cursor: pointer;
	transition:
		border-color 0.18s ease,
		background-color 0.18s ease,
		color 0.18s ease;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-forum-post-actions .score-btns > .btn-score:hover,
body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-forum-post-actions .score-btns > .btn-score:focus-visible,
body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-forum-post-actions > div > .btn-favorite:hover,
body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-forum-post-actions > div > .btn-favorite:focus-visible,
body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-forum-post-actions > div > .btn-share:hover,
body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-forum-post-actions > div > .btn-share:focus-visible {
	border-color: var(--moedes-forum-accent, var(--theme-color, #f39a07));
	background: var(--focus-color-opacity05, var(--main-border-color, #eef2f7)) !important;
	color: var(--moedes-forum-accent, var(--theme-color, #f39a07));
	outline: none;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-forum-post-actions .score-btns > .btn-score > .icon,
body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-forum-post-actions > div > .btn-favorite > .icon,
body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-forum-post-actions > div > .btn-share > .icon {
	margin: 0 !important;
	font-size: 17px !important;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-forum-post-actions > div > .btn-share .share-button.dropdown-menu {
	top: calc(100% + 10px) !important;
	right: auto !important;
	bottom: auto !important;
	left: 50% !important;
	width: 160px !important;
	min-width: 160px !important;
	height: auto !important;
	margin: 0 !important;
	padding: 12px !important;
	border-radius: var(--moedes-forum-radius, var(--main-radius, 8px)) !important;
	text-align: left;
	transform: translateX(-50%);
	z-index: 1000 !important;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-forum-post-actions > div > .btn-share .share-button.dropdown-menu::before {
	display: none;
}

@media (max-width: 767px) {
	body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-forum-post-actions {
		display: none !important;
	}}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) :where(.panel-plate, .forum-posts, .zib-widget) {
	border-color: var(--main-border-color, #e5eaf1);
	border-radius: var(--moedes-forum-radius, var(--main-radius, 8px));
}

/*
 * Forum list media: retain each image's intrinsic ratio instead of the
 * parent theme's fixed cover crop. The grid caps at eight columns; any
 * additional images wrap to the next row.
 */
body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .forum-posts.detail .imgbox-container.lists-imgs {
	display: grid;
	grid-template-columns: repeat(8, minmax(0, 1fr));
	gap: 4px;
	width: 100%;
	max-width: 100%;
	margin-right: 0;
	margin-left: 0;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .forum-posts.detail .imgbox-container.lists-imgs.count-1 {
	display: block;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .forum-posts.detail .imgbox-container.lists-imgs:is(.count-1, .count-2, .count-3, .count-4, .count-5, .count-6, .count-7, .count-8) {
	grid-template-columns: repeat(1, minmax(0, 1fr));
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .forum-posts.detail .imgbox-container.lists-imgs.count-2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .forum-posts.detail .imgbox-container.lists-imgs.count-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .forum-posts.detail .imgbox-container.lists-imgs.count-4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .forum-posts.detail .imgbox-container.lists-imgs.count-5 {
	grid-template-columns: repeat(5, minmax(0, 1fr));
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .forum-posts.detail .imgbox-container.lists-imgs.count-6 {
	grid-template-columns: repeat(6, minmax(0, 1fr));
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .forum-posts.detail .imgbox-container.lists-imgs.count-7 {
	grid-template-columns: repeat(7, minmax(0, 1fr));
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .forum-posts.detail .imgbox-container.lists-imgs.count-8 {
	grid-template-columns: repeat(8, minmax(0, 1fr));
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .forum-posts.detail .imgbox-container.lists-imgs > span {
	position: relative;
	display: block;
	align-self: start;
	width: auto;
	min-width: 0;
	height: auto;
	margin: 0;
	padding: 0;
	line-height: 0;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .forum-posts.detail .imgbox-container.lists-imgs > span > img {
	position: static;
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto !important;
	max-height: none;
	object-fit: contain !important;
}

/* Keep the post metadata on the author's name row. */
body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .forum-posts.detail .user-right > .flex1 {
	display: flex;
	min-width: 0;
	align-items: center;
	gap: 10px;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .forum-posts.detail .user-right > .flex1 > name {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .forum-posts.detail .user-right > .flex1 > .muted-2-color {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	max-width: 48%;
	min-width: 0;
	margin: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .forum-posts.detail .user-right > .flex1 > .muted-2-color > span {
	white-space: nowrap;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .forum-posts.detail .user-right > .flex1 > .muted-2-color .icon-spot {
	margin-left: 8px;
}

@media (max-width: 767px) {

	body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list):not(.single-forum_post):not(.single-post)
		.forum-posts.detail {
		--moedes-forum-list-inline-padding: 14px;
	}

	body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .forum-posts.detail .imgbox-container.lists-imgs {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .forum-posts.detail .imgbox-container.lists-imgs.count-4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .forum-posts.detail .imgbox-container.lists-imgs.count-5,
	body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .forum-posts.detail .imgbox-container.lists-imgs.count-6,
	body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .forum-posts.detail .imgbox-container.lists-imgs.count-7,
	body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .forum-posts.detail .imgbox-container.lists-imgs.count-8 {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .forum-posts.detail .user-right > .flex1 {
		gap: 6px;
	}

	body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .forum-posts.detail .user-right > .flex1 > .muted-2-color {
		max-width: 55%;
	}}

/*
 * Zibll applies pill and avatar radii through global utility classes. Keep
 * the forum post footer within the child theme token so a 0px global radius
 * is also respected by tags, ratings and author imagery.
 */
body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) article.forum-article .article-tags .tag-link,
body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) article.forum-article .single-footer.score-box .score-btns {
	border-radius: var(--moedes-forum-radius, var(--main-radius, 8px));
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) article.forum-article .avatar-img,
body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) article.forum-article .avatar-img .avatar {
	border-radius: var(--moedes-avatar-radius, 100px);
}

/*
 * Steam tags are the single tag presentation on a forum post. The native
 * footer tags are the same terms repeated below the article, so hide only
 * that duplicate block while leaving the Steam overview and its +N dialog
 * available.
 */
body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) article.forum-article > .article-tags,
body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) article.forum-article .article-tags {
	display: none !important;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) :where(.forum-posts, .panel-plate, .zib-widget) :where(input, select, textarea) {
	border-color: var(--main-border-color, #e5eaf1);
	border-radius: var(--moedes-forum-radius, var(--main-radius, 8px));
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) :where(input, select, textarea):focus {
	border-color: var(--focus-color, var(--theme-color, #2f6fed));
	outline: 2px solid var(--focus-color, var(--theme-color, #2f6fed));
	outline-offset: 1px;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) :where(.forum-title a) {
	color: var(--moedes-heading);
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) :where(.forum-title a):hover,
body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) :where(.forum-title a):focus-visible {
	color: var(--moedes-heading-active);
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) :where(.c-blue, .c-blue-2) {
	color: var(--moedes-heading-active);
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) :where(.c-blue, .c-blue-2):hover,
body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) :where(.c-blue, .c-blue-2):focus-visible {
	color: var(--moedes-primary-hover, var(--focus-color, var(--theme-color, #2f6fed)));
}

/*
 * Forum board page: keep Zibll's native markup and behavior, but use the
 * reference demo's grouped two-column information structure.
 */
body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) #forum .bbs-home-tab .panel-plate {
	overflow: hidden;
	margin-bottom: var(--moedes-forum-space-md);
	border: 1px solid var(--moedes-forum-border);
	border-radius: var(--moedes-forum-radius, var(--main-radius, 8px));
	background: var(--moedes-forum-surface);
	box-shadow: none;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) #forum .bbs-home-tab .panel.panel-plate:first-of-type .panel-title,
body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) #forum .bbs-home-tab .panel-plate .panel-title {
	margin: 0;
	padding: var(--moedes-forum-space-md) var(--moedes-forum-space-lg);
	border-bottom: 1px solid var(--moedes-forum-border);
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) #forum .bbs-home-tab .panel-plate .title-theme {
	gap: var(--moedes-forum-space-sm);
	height: auto;
	min-height: 24px;
	font-size: 16px;
	font-weight: 650;
	letter-spacing: 0;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) #forum .bbs-home-tab .panel-plate .title-theme::before {
	width: 3px;
	height: 16px;
	border-radius: 2px;
	background: var(--moedes-forum-accent, var(--focus-color, #2f6fed));
	content: "";
	flex: 0 0 auto;
}

/*
 * Category panels use Zibll's native collapse trigger. Keep the trigger
 * and its href/data-toggle intact, but present the state as the same
 * horizontal switch used by native Zibll settings instead of an angle icon.
 */
body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) #forum .bbs-home-tab .panel-plate .panel-title > a > span:last-child {
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
	margin-left: var(--moedes-forum-space-md);
	margin-right: var(--moedes-forum-collapse-switch-safe-right);
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) #forum .bbs-home-tab .panel-plate .panel-title > a > span:last-child > i.fa-angle-up,
body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) #forum .bbs-home-tab .panel-plate .panel-title > a > span:last-child > i.fa-angle-down {
	display: block;
	position: relative;
	width: var(--moedes-forum-collapse-switch-width);
	height: var(--moedes-forum-collapse-switch-height);
	margin: 0;
	border: 1px solid var(--moedes-forum-border);
	border-radius: 100px;
	background: var(--moedes-forum-collapse-switch-off);
	color: transparent;
	font-size: 0;
	line-height: 0;
	transition: background-color 0.25s ease, border-color 0.25s ease;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) #forum .bbs-home-tab .panel-plate .panel-title > a > span:last-child > i.fa-angle-up::after,
body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) #forum .bbs-home-tab .panel-plate .panel-title > a > span:last-child > i.fa-angle-down::after {
	content: "";
	position: absolute;
	top: 1px;
	left: 1px;
	width: var(--moedes-forum-collapse-switch-knob);
	height: var(--moedes-forum-collapse-switch-knob);
	border-radius: 100px;
	background: var(--main-bg-color, #fff);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
	transition: left 0.25s ease, width 0.15s ease;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) #forum .bbs-home-tab .panel-plate .panel-title > a:not(.collapsed) > span:last-child > i.fa-angle-up,
body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) #forum .bbs-home-tab .panel-plate .panel-title > a:not(.collapsed) > span:last-child > i.fa-angle-down {
	border-color: var(--moedes-forum-collapse-switch-on);
	background: var(--moedes-forum-collapse-switch-on);
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) #forum .bbs-home-tab .panel-plate .panel-title > a:not(.collapsed) > span:last-child > i.fa-angle-up::after,
body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) #forum .bbs-home-tab .panel-plate .panel-title > a:not(.collapsed) > span:last-child > i.fa-angle-down::after {
	left: calc(var(--moedes-forum-collapse-switch-width) - var(--moedes-forum-collapse-switch-knob) - 1px);
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) #forum .bbs-home-tab .panel-plate .panel-title > a:active > span:last-child > i.fa-angle-up::after,
body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) #forum .bbs-home-tab .panel-plate .panel-title > a:active > span:last-child > i.fa-angle-down::after {
	width: calc(var(--moedes-forum-collapse-switch-knob) + 8px);
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) #forum .bbs-home-tab .panel-plate .panel-title > a:not(.collapsed):active > span:last-child > i.fa-angle-up::after,
body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) #forum .bbs-home-tab .panel-plate .panel-title > a:not(.collapsed):active > span:last-child > i.fa-angle-down::after {
	left: calc(var(--moedes-forum-collapse-switch-width) - var(--moedes-forum-collapse-switch-knob) - 8px);
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) #forum .bbs-home-tab .panel-plate .panel-title > a:focus-visible > span:last-child > i.fa-angle-up,
body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) #forum .bbs-home-tab .panel-plate .panel-title > a:focus-visible > span:last-child > i.fa-angle-down {
	outline: 2px solid var(--focus-color, var(--theme-color, #2f6fed));
	outline-offset: 3px;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) #forum .bbs-home-tab .panel-plate .plate-lists {
	display: grid;
	grid-template-columns: repeat(var(--moedes-forum-board-columns, 2), minmax(0, 1fr));
	gap: 0;
	margin: 0;
	padding: 0;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) #forum .bbs-home-tab .panel-plate .plate-item {
	width: auto;
	min-width: 0;
	margin: 0;
	padding: var(--moedes-forum-space-lg);
	border-top: 1px solid var(--moedes-forum-border);
	border-radius: 0;
	background: var(--moedes-forum-surface);
	box-shadow: none;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) #forum .bbs-home-tab .panel-plate .plate-item:nth-child(-n + 2) {
	border-top: 0;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) #forum .bbs-home-tab .panel-plate .plate-item:nth-child(odd) {
	border-right: 1px solid var(--moedes-forum-border);
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list)-board-columns-1 #forum .bbs-home-tab .panel-plate .plate-item {
	border-right: 0;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list)-board-columns-1 #forum .bbs-home-tab .panel-plate .plate-item:nth-child(n + 2) {
	border-top: 1px solid var(--moedes-forum-border);
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) #forum .bbs-home-tab .panel-plate .plate-item:hover {
	background: var(--moedes-forum-surface-muted);
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) #forum .bbs-home-tab .panel-plate .plate-thumb {
	width: var(--moedes-forum-board-thumb-width);
	height: var(--moedes-forum-board-thumb-height);
	margin-right: var(--moedes-forum-space-md);
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) #forum .bbs-home-tab .panel-plate .plate-thumb > img {
	border-radius: calc(var(--moedes-forum-radius, var(--main-radius, 8px)) * 0.75);
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) #forum .bbs-home-tab .panel-plate .forum-title {
	font-size: 15px;
	font-weight: 600;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) #forum .bbs-home-tab .panel-plate .excerpt {
	overflow: hidden;
	display: -webkit-box;
	margin-top: 5px;
	color: var(--moedes-forum-muted);
	line-height: 1.6;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 1;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) #forum .bbs-home-tab .panel-plate .count-mates {
	margin-top: var(--moedes-forum-space-sm);
	color: var(--moedes-forum-muted);
}

/*
 * Circle explorer layout.
 *
 * The board tab remains backed by Zibll's native panels and collapse
 * controls.  Moedes gives it the information hierarchy of an explorer page:
 * a quiet, sticky directory on the left and the complete native circle
 * catalogue on the right.  No post-feed tab or parent AJAX target is changed.
 */
body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list)
	#forum
	.bbs-home-tab
	#home-tab-3.moedes-circle-board {
	min-width: 0;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list)
	#forum
	.bbs-home-tab
	#home-tab-3.moedes-circle-board.active {
	display: block;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list)
	#forum
	.bbs-home-tab
	#home-tab-3.moedes-circle-board:not(.active) {
	display: none !important;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list)
	#forum
	.bbs-home-tab
	#home-tab-3.moedes-circle-board
	> .moedes-circle-layout {
	display: block;
	min-width: 0;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list)
	#forum
	.bbs-home-tab
	#home-tab-3.moedes-circle-board
	> .moedes-content-tab-nav {
	display: block;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-circle-directory {
	position: sticky;
	transform: translateX(var(--moedes-circle-directory-shift, 0px));
	top: var(--moedes-forum-header-height, 66px);
	display: flex;
	flex-direction: column;
	height: calc(100vh - var(--moedes-forum-header-height, 66px));
	min-width: 0;
	max-height: calc(100vh - var(--moedes-forum-header-height, 66px));
	box-sizing: border-box;
	overflow: hidden auto;
	padding: var(--moedes-forum-space-md, 14px);
	border: 1px solid var(--moedes-forum-border);
	border-radius: var(--moedes-forum-radius, var(--main-radius, 8px));
	background: var(--moedes-forum-surface);
	scrollbar-width: thin;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-circle-directory__group-toggle {
	display: inline-grid;
	flex: 0 0 auto;
	place-items: center;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--moedes-forum-nav-muted);
	font-size: 0;
	font-weight: 400;
	line-height: 1;
	cursor: pointer;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-circle-directory__group-toggle:hover,
body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-circle-directory__group-toggle:focus-visible {
	color: var(--moedes-forum-nav-active);
	outline: 0;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-circle-directory__toggle {
	display: grid;
	position: sticky;
	bottom: 0;
	width: calc(100% + 28px);
	height: 42px;
	flex: 0 0 42px;
	margin: auto -14px -14px;
	padding: 0;
	place-items: center;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--moedes-forum-nav-muted);
	font-size: 24px;
	font-weight: 300;
	line-height: 1;
	cursor: pointer;
	z-index: 2;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-circle-directory__toggle:hover,
body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-circle-directory__toggle:focus-visible {
	color: var(--moedes-forum-nav-active);
	outline: 0;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-circle-directory__tooltip {
	position: fixed;
	z-index: 45;
	max-width: min(208px, calc(100vw - 80px));
	padding: 6px 9px;
	border: 1px solid var(--moedes-forum-border);
	border-radius: var(--moedes-forum-radius, var(--main-radius, 8px));
	background: var(--moedes-forum-surface);
	box-shadow: 0 5px 16px rgba(15, 23, 42, 0.14);
	color: var(--moedes-forum-text);
	font-size: 12px;
	line-height: 1.4;
	overflow-wrap: anywhere;
	pointer-events: none;
	transform: translateY(-50%);
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-circle-directory__tooltip[hidden] {
	display: none;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-circle-directory__quick {
	display: grid;
	grid-template-columns: 1fr;
	gap: 6px;
	margin: 12px 0 14px;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-circle-directory__quick-link,
body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-circle-directory__group-title,
body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-circle-directory__item {
	display: block;
	min-width: 0;
	overflow: hidden;
	color: var(--moedes-forum-text);
	text-overflow: ellipsis;
	white-space: nowrap;
	text-decoration: none;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-circle-directory__quick-link {
	display: inline-flex;
	min-height: 40px;
	padding: 9px 12px;
	align-items: center;
	gap: 8px;
	box-sizing: border-box;
	border: 0;
	border-radius: var(--moedes-forum-radius, var(--main-radius, 8px));
	background: color-mix(
		in srgb,
		var(--moedes-secondary, var(--moedes-forum-accent)) 13%,
		var(--moedes-forum-surface)
	);
	color: var(--moedes-forum-text);
	font-size: 13px;
	text-align: left;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-circle-directory__quick-icon {
	width: 16px;
	height: 16px;
	flex: 0 0 16px;
	fill: currentColor;
	color: var(--moedes-secondary, var(--moedes-forum-accent));
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-circle-directory__quick-link:hover,
body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-circle-directory__quick-link:focus-visible {
	background: color-mix(
		in srgb,
		var(--moedes-secondary, var(--moedes-forum-accent)) 20%,
		var(--moedes-forum-surface)
	);
	color: var(--moedes-secondary, var(--moedes-forum-nav-active));
	outline: 2px solid color-mix(
		in srgb,
		var(--moedes-secondary, var(--moedes-forum-accent)) 45%,
		transparent
	);
	outline-offset: 2px;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-circle-directory__group + .moedes-circle-directory__group {
	margin-top: var(--moedes-circle-directory-group-gap, 20px);
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-circle-directory__group-heading {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-circle-directory__group-title {
	flex: 1 1 auto;
	min-width: 0;
	padding: 4px 2px 10px;
	color: var(--moedes-forum-nav-muted);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0;
	line-height: 1.65;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-circle-directory__group-title:hover,
body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-circle-directory__group-title:focus-visible {
	color: var(--moedes-forum-nav-active);
	outline: 0;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-circle-directory__group-toggle {
	width: 24px;
	height: 24px;
	margin-bottom: 8px;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-circle-directory__group-toggle::before {
	width: 8px;
	height: 8px;
	border-right: 1px solid currentColor;
	border-bottom: 1px solid currentColor;
	content: "";
	transform: translateY(2px) rotate(225deg);
	transition: transform 0.18s ease;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-circle-directory__group-toggle.is-collapsed::before {
	transform: translateY(-2px) rotate(45deg);
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-circle-directory__group.is-collapsed
	.moedes-circle-directory__group-items {
	display: none;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-circle-directory__item {
	position: relative;
	display: flex;
	min-height: var(--moedes-circle-directory-item-height, 42px);
	padding: 7px 8px;
	align-items: center;
	gap: var(--moedes-circle-directory-item-gap, 10px);
	border-radius: calc(var(--moedes-forum-radius, var(--main-radius, 8px)) * 0.75);
	color: var(--moedes-forum-text);
	font-size: 13px;
	line-height: 1.35;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-circle-directory__item-icon {
	display: inline-grid;
	width: 30px;
	height: 30px;
	flex: 0 0 30px;
	place-items: center;
	overflow: hidden;
	border: 1px solid var(--moedes-forum-border);
	border-radius: calc(var(--moedes-forum-radius, var(--main-radius, 8px)) * 0.65);
	background: var(--moedes-forum-surface-muted);
	color: var(--moedes-forum-muted);
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	text-transform: uppercase;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-circle-directory__item-icon img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-circle-directory__item-label {
	display: block;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-circle-directory__item:hover,
body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-circle-directory__item:focus-visible {
	background: var(--moedes-forum-surface-muted);
	color: var(--moedes-forum-nav-active);
	outline: 0;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-circle-directory.is-collapsed {
	width: var(--moedes-circle-directory-collapsed-width, 64px);
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-circle-directory.is-collapsed
	.moedes-circle-directory__quick,
body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-circle-directory.is-collapsed
	.moedes-circle-directory__group-heading {
	display: none;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-circle-directory.is-collapsed
	.moedes-circle-directory__group + .moedes-circle-directory__group {
	margin-top: 8px;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-circle-directory.is-collapsed
	.moedes-circle-directory__item {
	justify-content: center;
	padding-right: 0;
	padding-left: 0;
	gap: 0;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-circle-directory.is-collapsed
	.moedes-circle-directory__item-label {
	display: none;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-circle-directory.is-collapsed
	.moedes-circle-directory__item-icon {
	width: 32px;
	height: 32px;
	flex-basis: 32px;
}

/*
 * The explorer is a viewport rail, not a card belonging to the archive
 * content below it. Fixing it below the measured Zibll header keeps the
 * first icon and the unframed ‹/› control visible from the top of every
 * board, tag, category and post page.
 */
@media (min-width: 768px) {
	body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-circle-directory--global {
		position: fixed;
		top: var(--moedes-forum-header-height, 66px);
		left: 0;
		z-index: 12;
		width: var(--moedes-circle-directory-width, 240px) !important;
		height: calc(100vh - var(--moedes-forum-header-height, 66px));
		max-height: calc(100vh - var(--moedes-forum-header-height, 66px));
		transform: none !important;
	}

	body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-circle-directory--global.is-collapsed {
		width: var(--moedes-circle-directory-collapsed-width, 64px) !important;
	}
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list)
	#forum
	.bbs-home-tab
	#home-tab-3.moedes-circle-board
	.moedes-circle-panels {
	display: block;
	min-width: 0;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list)
	#forum
	.bbs-home-tab
	#home-tab-3.moedes-circle-board
	.moedes-circle-panels
	> .panel-plate:first-child {
	margin-top: 0;
}

@media (max-width: 900px) {
	body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list)
		#forum
		.bbs-home-tab
		#home-tab-3.moedes-circle-board
		> .moedes-circle-layout {
		display: block;
	}

	body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-circle-directory {
		position: sticky;
		top: var(--moedes-forum-header-height, 66px);
		height: calc(100vh - var(--moedes-forum-header-height, 66px));
		max-height: calc(100vh - var(--moedes-forum-header-height, 66px));
	}

	body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-circle-directory__list {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: 10px;
	}

	body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-circle-directory__group + .moedes-circle-directory__group {
		margin-top: 0;
	}}

@media (max-width: 600px) {
	body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-circle-directory {
		padding: 12px;
	}

	body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-circle-directory__list {
		grid-template-columns: 1fr;
	}}

/*
 * The circle directory is a shell-level rail, not a panel inside the
 * "板块" tab. This keeps it visible while the forum home switches between
 * 关注、最新、板块 and 热门, matching the explorer layout used by the
 * reference site.  The original Zibll right sidebar remains a separate
 * column and is never copied into the rail.
 */
@media (min-width: 768px) {
	body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list)
		:is(#forum > .container.moedes-circle-shell, :is(main.container.moedes-circle-shell, main > .container.moedes-circle-shell)) {
		display: grid;
		width: var(--moedes-forum-viewport-width, 100vw) !important;
		max-width: none !important;
		margin-right: 0 !important;
		margin-left: 0 !important;
		column-gap: var(--moedes-forum-column-gap, 24px);
		padding-right: var(--moedes-forum-shell-inline-padding, 24px);
		padding-left: 0;
		align-items: start;
	}

	body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list)
		:is(#forum > .container.moedes-circle-shell, :is(main.container.moedes-circle-shell, main > .container.moedes-circle-shell))
		> .moedes-circle-directory--global {
		grid-column: 1;
		grid-row: 1;
		width: auto;
		min-width: 0;
	}

	body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list)
		:is(#forum > .container.moedes-circle-shell, :is(main.container.moedes-circle-shell, main > .container.moedes-circle-shell))
		> .content-wrap {
		grid-column: 2;
		grid-row: 1;
		float: none !important;
		width: 100% !important;
		max-width: var(--moedes-forum-main-column-max, 1080px);
		justify-self: center;
		min-width: 0;
		box-sizing: border-box;
		margin: 0 !important;
		padding-top: var(--moedes-forum-header-content-gap, 8px);
	}

	body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list)
		:is(#forum > .container.moedes-circle-shell, :is(main.container.moedes-circle-shell, main > .container.moedes-circle-shell))
		> .content-wrap
		> .content-layout {
		width: auto !important;
		min-width: 0;
		margin-right: 0 !important;
	}}

@media (min-width: 1200px) {
	body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list)
		:is(#forum > .container.moedes-circle-shell, :is(main.container.moedes-circle-shell, main > .container.moedes-circle-shell)) {
		grid-template-columns:
			var(--moedes-circle-directory-width, 240px)
			minmax(0, 1fr)
			minmax(var(--moedes-forum-right-column-width, 300px), var(--moedes-forum-right-column-width, 300px));
	}

	/*
	 * Category/search/tag archives often expose an empty sidebar placeholder.
	 * Do not reserve the 300px explorer rail for an element with no widget
	 * children; the reference layout keeps the content column fluid in that
	 * case while forum home/detail pages retain the real right rail.
	 */
	body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list)
		:is(
			#forum > .container.moedes-circle-shell.moedes-circle-shell--no-sidebar,
			:is(main.container.moedes-circle-shell.moedes-circle-shell--no-sidebar, main > .container.moedes-circle-shell.moedes-circle-shell--no-sidebar)
		) {
		grid-template-columns:
			var(--moedes-circle-directory-width, 240px)
			minmax(0, 1fr);
	}

	body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list)
		:is(
			#forum > .container.moedes-circle-shell.moedes-circle-shell--no-sidebar,
			:is(main.container.moedes-circle-shell.moedes-circle-shell--no-sidebar, main > .container.moedes-circle-shell.moedes-circle-shell--no-sidebar)
		)
		> .sidebar {
		display: none !important;
	}

	/*
	 * Archive/search/tag pages do not have a right rail.  Keep their main
	 * column anchored immediately after the directory instead of centering a
	 * narrower 1080px column inside the remaining grid track.
	 */
	body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list)
		:is(
			#forum > .container.moedes-circle-shell.moedes-circle-shell--no-sidebar,
			:is(main.container.moedes-circle-shell.moedes-circle-shell--no-sidebar, main > .container.moedes-circle-shell.moedes-circle-shell--no-sidebar)
		)
		> .content-wrap {
		justify-self: start;
	}

	body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list)
		:is(#forum > .container.moedes-circle-shell, :is(main.container.moedes-circle-shell, main > .container.moedes-circle-shell))
		> .sidebar {
		grid-column: 3;
		grid-row: 1;
		float: none !important;
		width: 100% !important;
		min-width: 0;
		box-sizing: border-box;
		margin: 0 !important;
		padding-top: var(--moedes-forum-header-content-gap, 8px);
		justify-self: stretch;
	}}

@media (min-width: 768px) and (max-width: 1199px) {
	body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list)
		:is(#forum > .container.moedes-circle-shell, :is(main.container.moedes-circle-shell, main > .container.moedes-circle-shell)) {
		grid-template-columns:
			var(--moedes-circle-directory-width, 240px)
			minmax(0, 1fr);
	}

	body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list)
		:is(
			#forum > .container.moedes-circle-shell.moedes-circle-shell--no-sidebar,
			:is(main.container.moedes-circle-shell.moedes-circle-shell--no-sidebar, main > .container.moedes-circle-shell.moedes-circle-shell--no-sidebar)
		)
		> .sidebar {
		display: none !important;
	}

	body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list)
		:is(#forum > .container.moedes-circle-shell, :is(main.container.moedes-circle-shell, main > .container.moedes-circle-shell))
		> .sidebar {
		/*
		 * Keep the tablet sidebar aligned with the content column.  Spanning
		 * the whole shell makes it start at the viewport edge and become
	 * almost the full page width, unlike the 300px right rail on desktop.
		 */
		grid-column: 2;
		grid-row: 2;
		float: none !important;
		width: auto !important;
		min-width: 0;
		margin: var(--moedes-forum-space-md, 14px) 0 0 !important;
	}}

@media (min-width: 768px) and (max-width: 1199px) {
	body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-circle-directory--global {
		position: fixed;
		top: var(--moedes-forum-header-height, 66px);
		height: calc(100vh - var(--moedes-forum-header-height, 66px));
		max-height: calc(100vh - var(--moedes-forum-header-height, 66px));
		overflow: hidden auto;
	}}

@media (min-width: 768px) and (max-width: 991px) {
	body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) {
		--moedes-circle-directory-width: 232px;
		--moedes-circle-directory-expanded-width: 232px;
	}}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list).moedes-circle-directory-collapsed {
	--moedes-circle-directory-width: var(--moedes-circle-directory-collapsed-width, 64px);
}

@media (min-width: 768px) {
	body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list)
		:is(#forum > .container.moedes-circle-shell, main.container.moedes-circle-shell, main > .container.moedes-circle-shell)
		> .sidebar {
		display: block !important;
	}
}

@media (max-width: 767px) {
	body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list)
		:is(#forum > .container.moedes-circle-shell, :is(main.container.moedes-circle-shell, main > .container.moedes-circle-shell)) {
		display: grid;
		grid-template-columns: 1fr;
		row-gap: var(--moedes-forum-space-md, 14px);
	}

	body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list)
		:is(#forum > .container.moedes-circle-shell, :is(main.container.moedes-circle-shell, main > .container.moedes-circle-shell))
		> .moedes-circle-directory--global,
	body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list)
		:is(#forum > .container.moedes-circle-shell, :is(main.container.moedes-circle-shell, main > .container.moedes-circle-shell))
		> .content-wrap,
	body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list)
		:is(#forum > .container.moedes-circle-shell, :is(main.container.moedes-circle-shell, main > .container.moedes-circle-shell))
		> .sidebar {
		grid-column: 1;
		float: none !important;
		width: auto !important;
		min-width: 0;
		margin: 0 !important;
	}

	body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list)
		:is(#forum > .container.moedes-circle-shell, :is(main.container.moedes-circle-shell, main > .container.moedes-circle-shell))
		> .moedes-circle-directory--global {
		grid-row: 1;
	}

	body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list)
		:is(#forum > .container.moedes-circle-shell, :is(main.container.moedes-circle-shell, main > .container.moedes-circle-shell))
		> .content-wrap {
		grid-row: 2;
	}

	body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list)
		:is(#forum > .container.moedes-circle-shell, :is(main.container.moedes-circle-shell, main > .container.moedes-circle-shell))
		> .sidebar {
		grid-row: 3;
	}

	body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list)
		:is(#forum > .container.moedes-circle-shell, :is(main.container.moedes-circle-shell, main > .container.moedes-circle-shell))
		> .content-wrap
		> .content-layout {
		width: auto !important;
		min-width: 0;
		margin-right: 0 !important;
	}

	body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-circle-directory--global {
		position: static;
		height: auto;
		max-height: min(360px, 48vh);
		overflow-y: auto;
	}}

	body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) .moedes-circle-directory.is-collapsed {
		width: auto;
	}

/*
 * Publish-page compatibility: `main > form` owns the editor and sidebar,
 * while the parent shell rules above already define the explorer grid on
 * `:is(main.container.moedes-circle-shell, main > .container.moedes-circle-shell)`. `display: contents` keeps the form
 * submission tree intact and lets its direct children occupy that grid.
 */
body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list)
	:is(main.container.moedes-circle-shell, main > .container.moedes-circle-shell)
	> form.moedes-circle-shell-form {
	display: contents;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list)
	:is(main.container.moedes-circle-shell, main > .container.moedes-circle-shell)
	> form.moedes-circle-shell-form
	> .moedes-circle-directory--global {
	grid-column: 1;
	grid-row: 1;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list)
	:is(main.container.moedes-circle-shell, main > .container.moedes-circle-shell)
	> form.moedes-circle-shell-form
	> .content-wrap {
	grid-column: 2;
	grid-row: 1;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list)
	:is(main.container.moedes-circle-shell, main > .container.moedes-circle-shell)
	> form.moedes-circle-shell-form
	> .sidebar {
	float: none !important;
	width: auto !important;
	min-width: 0;
}

@media (min-width: 1200px) {

	body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list)
		:is(main.container.moedes-circle-shell, main > .container.moedes-circle-shell)
		> form.moedes-circle-shell-form
		> .sidebar {
		grid-column: 3;
		grid-row: 1;
		width: 100% !important;
		margin: 0 0 0 auto !important;
	}}

@media (min-width: 992px) and (max-width: 1199px) {
	body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list)
		:is(main.container.moedes-circle-shell, main > .container.moedes-circle-shell)
		> form.moedes-circle-shell-form
		> .sidebar {
		grid-column: 1 / -1;
		grid-row: 2;
		margin: var(--moedes-forum-space-md, 14px) 0 0 !important;
	}}

@media (min-width: 768px) and (max-width: 991px) {
	body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list)
		:is(main.container.moedes-circle-shell, main > .container.moedes-circle-shell)
		> form.moedes-circle-shell-form
		> .sidebar {
		grid-column: 1 / -1;
		grid-row: 2;
		margin: var(--moedes-forum-space-md, 14px) 0 0 !important;
	}}

@media (max-width: 767px) {
	body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list)
		:is(main.container.moedes-circle-shell, main > .container.moedes-circle-shell)
		> form.moedes-circle-shell-form
		> .content-wrap {
		grid-column: 1;
		grid-row: 2;
	}

	body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list)
		:is(main.container.moedes-circle-shell, main > .container.moedes-circle-shell)
		> form.moedes-circle-shell-form
		> .sidebar {
		grid-column: 1;
		grid-row: 3;
		margin: 0 !important;
	}}

/* The publish form owns the content container on /posts-edit/. */
@media (min-width: 1200px) {
body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) #forum > form > .container.moedes-circle-shell {
	display: grid;
	width: var(--moedes-forum-viewport-width, 100vw) !important;
	max-width: none !important;
	margin-right: 0 !important;
	margin-left: 0 !important;
	padding-right: var(--moedes-forum-shell-inline-padding, 24px);
	padding-left: 0;
	grid-template-columns:
		var(--moedes-circle-directory-width, 240px)
		minmax(0, 1fr)
		minmax(var(--moedes-forum-right-column-width, 300px), var(--moedes-forum-right-column-width, 300px));
	column-gap: var(--moedes-forum-column-gap, 24px);
	align-items: start;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) #forum > form > .container.moedes-circle-shell
	> .moedes-circle-directory--global {
	grid-column: 1;
	grid-row: 1;
	width: auto;
	min-width: 0;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) #forum > form > .container.moedes-circle-shell
	> .content-wrap {
	grid-column: 2;
	grid-row: 1;
	float: none !important;
	width: 100% !important;
	min-width: 0;
	box-sizing: border-box;
	margin: 0 !important;
	padding-top: var(--moedes-forum-header-content-gap, 8px);
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) #forum > form > .container.moedes-circle-shell
	> .content-wrap > .content-layout {
	width: 100% !important;
	min-width: 0;
	margin-right: 0 !important;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) #forum > form > .container.moedes-circle-shell
	> .sidebar {
	grid-column: 3;
	grid-row: 1;
	float: none !important;
	width: auto !important;
	min-width: 0;
	box-sizing: border-box;
	margin: 0 !important;
	padding-top: var(--moedes-forum-header-content-gap, 8px);
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) #forum > form > .container.moedes-circle-shell.moedes-circle-shell--no-sidebar {
	grid-template-columns:
		var(--moedes-circle-directory-width, 240px)
		minmax(0, 1fr);
}}

@media (min-width: 768px) and (max-width: 1199px) {
body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) #forum > form > .container.moedes-circle-shell {
	display: grid;
	width: var(--moedes-forum-viewport-width, 100vw) !important;
	max-width: none !important;
	margin-right: 0 !important;
	margin-left: 0 !important;
	padding-right: var(--moedes-forum-shell-inline-padding, 24px);
	padding-left: 0;
	grid-template-columns: var(--moedes-circle-directory-width, 240px) minmax(0, 1fr);
	column-gap: var(--moedes-forum-column-gap, 24px);
	align-items: start;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) #forum > form > .container.moedes-circle-shell
	> .moedes-circle-directory--global {
	grid-column: 1;
	grid-row: 1;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) #forum > form > .container.moedes-circle-shell
	> .content-wrap {
	grid-column: 2;
	grid-row: 1;
	float: none !important;
	width: 100% !important;
	margin: 0 !important;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) #forum > form > .container.moedes-circle-shell
	> .content-wrap > .content-layout {
	width: 100% !important;
	margin-right: 0 !important;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) #forum > form > .container.moedes-circle-shell
	> .sidebar {
	grid-column: 2;
	grid-row: 2;
	float: none !important;
	width: auto !important;
	margin: var(--moedes-forum-space-lg, 18px) 0 0 !important;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list) #forum > form > .container.moedes-circle-shell.moedes-circle-shell--no-sidebar
	> .sidebar {
	display: none !important;
}}

/*
 * Author pages expose the profile header and the AJAX tab container as two
 * sibling Bootstrap containers. Treat those wrappers as transparent
 * structural nodes so the persistent circle directory starts directly below
 * the primary header instead of appearing below the profile cover.
 */
@media (min-width: 768px) {
	body.moedes-author-layout
		main {
		display: grid;
		width: 100%;
		max-width: none;
		grid-template-columns:
			var(--moedes-circle-directory-width, 240px)
			minmax(0, 1fr);
		column-gap: var(--moedes-forum-column-gap, 24px);
		align-items: start;
	}

	body.moedes-author-layout
		main
		> .moedes-author-header-container,
	body.moedes-author-layout
		main
		> .container.moedes-circle-shell--profile {
		display: contents !important;
	}

	body.moedes-author-layout
		main
		> .moedes-author-header-container
		> .author-header {
		grid-column: 2 !important;
		grid-row: 1 !important;
		width: 100% !important;
		max-width: var(--moedes-forum-main-column-max, 1080px);
		margin: 0 0 var(--moedes-forum-space-lg, 18px) !important;
		justify-self: start;
	}

	body.moedes-author-layout
		main
		> .container.moedes-circle-shell--profile
		> .moedes-circle-directory--global {
		grid-column: 1 !important;
		grid-row: 1 / span 2 !important;
		width: auto;
		min-width: 0;
	}

	body.moedes-author-layout
		main
		> .container.moedes-circle-shell--profile
		> :is(.author-tab, .user-center) {
		grid-column: 2 !important;
		grid-row: 2 !important;
		width: 100% !important;
		max-width: var(--moedes-forum-main-column-max, 1080px);
		margin: 0 !important;
		justify-self: start;
	}

	body.moedes-author-layout
		main
		> .moedes-author-fluid-gap {
		display: none !important;
	}}

/* Author profiles use a second, standalone container instead of content-wrap. */
@media (min-width: 768px) {
body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list)
	main > .container.moedes-circle-shell--profile {
	display: grid;
	width: var(--moedes-forum-viewport-width, 100vw) !important;
	max-width: none !important;
	margin-right: 0 !important;
	margin-left: 0 !important;
	padding-right: var(--moedes-forum-shell-inline-padding, 24px);
	padding-left: 0;
	grid-template-columns: var(--moedes-circle-directory-width, 240px) minmax(0, 1fr);
	column-gap: var(--moedes-forum-column-gap, 24px);
	align-items: start;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list)
	main > .container.moedes-circle-shell--profile
	> .moedes-circle-directory--global {
	grid-column: 1;
	grid-row: 1;
	width: auto;
	min-width: 0;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list)
	main > .container.moedes-circle-shell--profile
			> :is(.author-header, .author-tab),
	body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list)
	main > .container.moedes-circle-shell--profile
				> .user-center {
		grid-column: 2;
		grid-row: 1;
		min-width: 0;
		width: 100% !important;
		max-width: var(--moedes-forum-main-column-max, 1080px);
		justify-self: start;
		margin: 0 !important;
	}}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list)
	main > .container.moedes-circle-shell--profile > .user-center {
	grid-row: 2;
}

body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list)
	main > .container.moedes-circle-shell--profile > .author-header {
	grid-column: 2;
	grid-row: 1;
	width: 100% !important;
	max-width: var(--moedes-forum-main-column-max, 1080px);
	justify-self: start;
	margin: 0 0 var(--moedes-forum-space-lg, 18px) !important;
}

/* Profile shells use the same directory and right rail as forum shells. */
@media (min-width: 1200px) {
	body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list)
		main > .container.moedes-circle-shell--profile > .sidebar {
		position: absolute !important;
		top: 0 !important;
		right: 24px !important;
		width: var(--moedes-forum-right-column-width, 300px) !important;
		grid-column: auto !important;
		grid-row: auto !important;
	}
}

@media (min-width: 768px) and (max-width: 1199px) {
	body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list)
	main > .container.moedes-circle-shell--profile > .sidebar {
		position: static !important;
		grid-column: 2 !important;
		grid-row: 3 !important;
		width: 100% !important;
		margin: var(--moedes-forum-space-lg, 18px) 0 0 !important;
	}
}

@media (max-width: 767px) {
	body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list)
		main > .container.moedes-circle-shell--profile {
		display: grid;
		grid-template-columns: 1fr;
		row-gap: var(--moedes-forum-column-gap, 24px);
	}
	body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list)
		main > .container.moedes-circle-shell--profile > .moedes-circle-directory--global {
		grid-column: 1;
		grid-row: 1;
	}
	body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list)
		main > .container.moedes-circle-shell--profile > :is(.author-tab, .user-center) {
		grid-column: 1;
		grid-row: 3;
		width: 100% !important;
	}
	body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list)
	main > .container.moedes-circle-shell--profile > :is(.author-header, .author-tab) {
		grid-column: 1;
		grid-row: 2;
		width: 100% !important;
		margin: 0 !important;
	}
	body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list)
		main > .container.moedes-circle-shell--profile > .sidebar {
		display: block !important;
		grid-column: 1;
		grid-row: 4;
		width: 100% !important;
		margin: 0 !important;
	}
}

/* Keep a configured right rail available on mobile as the final shell row. */
@media (max-width: 767px) {
	body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list)
		:is(
			#forum > .container.moedes-circle-shell,
			main.container.moedes-circle-shell,
			main > .container.moedes-circle-shell
		) > .sidebar {
		display: block !important;
		position: static !important;
		grid-column: 1;
		grid-row: 3;
		width: 100% !important;
		float: none !important;
		margin: var(--moedes-forum-space-md, 14px) 0 0 !important;
	}
	body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list)
		:is(
			#forum > .container.moedes-circle-shell.moedes-circle-shell--no-sidebar,
			main.container.moedes-circle-shell.moedes-circle-shell--no-sidebar,
			main > .container.moedes-circle-shell.moedes-circle-shell--no-sidebar
		) > .sidebar {
			display: none !important;
	}
	body:is(.moedes-forum, .moedes-content-navigation, .moedes-content-list)
		main > .container.moedes-circle-shell--profile > .sidebar {
		grid-row: 4 !important;
	}
}

