/**
 * WebGlobals - Dealia forum index: toolbar + location cards.
 *
 * Loaded only where the forum index renders (see besa-child/functions.php).
 * Markup: besa-child/bbpress/content-archive-forum.php, loop-forums.php,
 * loop-single-forum.php.
 */

#bbpress-forums .wg-forum-groups,
#bbpress-forums .wg-forum-toolbar {
	--wg-brand: #FA4F26;
	--wg-brand-hover: #E24420;
	--wg-ink: #17181B;
	--wg-body: #4A4E57;
	--wg-cream: #FFF7F3;
	--wg-meta: #8A9099;
	--wg-line: #ECECEF;
}

/* ---------- toolbar ---------- */

#bbpress-forums .wg-forum-toolbar {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	margin: 0 0 28px;
}

#bbpress-forums .wg-forum-search {
	position: relative;
	display: flex;
	flex: 1 1 240px;
	margin: 0;
}

#bbpress-forums .wg-forum-search__icon {
	position: absolute;
	left: 16px;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	color: var(--wg-meta);
	pointer-events: none;
}

#bbpress-forums .wg-forum-search__icon svg {
	width: 18px;
	height: 18px;
	display: block;
}

#bbpress-forums .wg-forum-search input[type="text"] {
	width: 100%;
	margin: 0;
	padding: 14px 16px 14px 46px;
	border: 1px solid var(--wg-line);
	border-radius: 12px;
	background: #fff;
	font-size: 15px;
	line-height: 1.2;
	color: var(--wg-ink);
	box-shadow: none;
}

#bbpress-forums .wg-forum-search input[type="text"]::placeholder {
	color: var(--wg-meta);
	opacity: 1;
}

#bbpress-forums .wg-forum-search input[type="text"]:focus,
#bbpress-forums .wg-forum-sort select:focus {
	outline: none;
	border-color: var(--wg-brand);
	box-shadow: 0 0 0 3px rgba(250, 79, 38, .12);
}

#bbpress-forums .wg-forum-sort {
	flex: 0 0 auto;
	margin: 0;
}

#bbpress-forums .wg-forum-sort select {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	height: auto;
	margin: 0;
	padding: 14px 44px 14px 18px;
	border: 1px solid var(--wg-line);
	border-radius: 12px;
	background-color: #fff;
	background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2317181B' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
	background-size: 16px 16px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	color: var(--wg-ink);
	cursor: pointer;
}

#bbpress-forums .wg-forum-sort__go {
	margin-left: 8px;
}

#bbpress-forums .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

/* ---------- groups ---------- */

#bbpress-forums .wg-forum-groups {
	margin: 0;
}

#bbpress-forums .wg-forum-group + .wg-forum-group {
	margin-top: 38px;
}

#bbpress-forums .wg-forum-group__heading {
	margin: 0 0 4px;
	font-size: 20px;
	line-height: 1.3;
	font-weight: 700;
	color: var(--wg-ink);
}

#bbpress-forums .wg-forum-group__sub {
	margin: 0 0 16px;
	font-size: 14px;
	line-height: 1.5;
	color: var(--wg-meta);
}

/* ---------- cards ---------- */

#bbpress-forums .wg-forum-list {
	display: grid;
	grid-template-columns: 1fr;
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
	background: none;
	border: 0;
}

#bbpress-forums .wg-forum-list > li {
	margin: 0;
	padding: 0;
	list-style: none;
	background: none;
	border: 0;
}

#bbpress-forums .wg-forum-card {
	display: flex;
	align-items: center;
	gap: 18px;
	padding: 18px;
	background: #fff;
	border: 1px solid var(--wg-line);
	border-radius: 14px;
	text-decoration: none;
	transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

#bbpress-forums .wg-forum-card:hover,
#bbpress-forums .wg-forum-card:focus-visible {
	border-color: var(--wg-brand);
	box-shadow: 0 6px 20px rgba(250, 79, 38, .10);
	transform: translateY(-1px);
	text-decoration: none;
}

#bbpress-forums .wg-forum-card:focus-visible {
	outline: 2px solid var(--wg-brand);
	outline-offset: 2px;
}

#bbpress-forums .wg-forum-card__icon {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background: var(--wg-cream);
	color: var(--wg-brand);
	overflow: hidden;
}

#bbpress-forums .wg-forum-card__icon svg {
	width: 40px;
	height: 40px;
	display: block;
}

#bbpress-forums .wg-forum-card__icon img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

#bbpress-forums .wg-forum-card__body {
	flex: 1 1 auto;
	min-width: 0;
}

#bbpress-forums .wg-forum-card__title {
	display: block;
	margin: 0 0 2px;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--wg-ink);
}

#bbpress-forums .wg-forum-card__meta {
	display: block;
	margin: 0 0 4px;
	font-size: 13px;
	font-weight: 600;
	color: var(--wg-meta);
}

#bbpress-forums .wg-forum-card__meta .wg-sep {
	margin: 0 6px;
}

#bbpress-forums .wg-forum-card__desc {
	display: block;
	margin: 0;
	font-size: 14px;
	line-height: 1.5;
	color: var(--wg-body);
}

#bbpress-forums .wg-forum-card__desc p {
	margin: 0;
}

#bbpress-forums .wg-forum-card__chev {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	color: var(--wg-brand);
}

#bbpress-forums .wg-forum-card__chev svg {
	width: 20px;
	height: 20px;
	display: block;
}

/* The join band only speaks to signed-out visitors. */
body.logged-in .wg-guest-only {
	display: none !important;
}

@media (min-width: 768px) {
	#bbpress-forums .wg-forum-search {
		flex: 1 1 320px;
	}

	#bbpress-forums .wg-forum-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 18px;
	}

	#bbpress-forums .wg-forum-group__heading {
		font-size: 22px;
	}
}

@media (max-width: 420px) {
	#bbpress-forums .wg-forum-card {
		gap: 14px;
		padding: 16px 14px;
	}

	#bbpress-forums .wg-forum-card__icon {
		width: 58px;
		height: 58px;
	}

	#bbpress-forums .wg-forum-card__icon svg {
		width: 32px;
		height: 32px;
	}

	#bbpress-forums .wg-forum-sort,
	#bbpress-forums .wg-forum-sort select {
		width: 100%;
	}
}

/* Belt-and-braces: hide the join band for signed-in users even if the
   CSS class is ever stripped from the Elementor section. */
body.logged-in .elementor-element-dfmjoin1 {
	display: none !important;
}

/* ---------- hero + join band ---------- */

/* Tokens on the wrapper so every block below can use them. */
#bbpress-forums {
	--wg-brand: #FA4F26;
	--wg-brand-hover: #E24420;
	--wg-ink: #17181B;
	--wg-body: #4A4E57;
	--wg-cream: #FFF7F3;
	--wg-meta: #8A9099;
	--wg-line: #ECECEF;
}

/* Besa's page-title bar duplicates the hero heading on this archive only. */
body.post-type-archive-forum #tbay-breadscrumb {
	display: none;
}

#bbpress-forums .wg-forum-hero {
	display: flex;
	align-items: center;
	gap: 24px;
	margin: 0 0 30px;
	padding: 40px 36px;
	background: var(--wg-cream);
	border-radius: 16px;
}

#bbpress-forums .wg-forum-hero__copy {
	flex: 1 1 58%;
	min-width: 0;
}

#bbpress-forums .wg-forum-hero__title {
	margin: 0 0 12px;
	font-size: 42px;
	line-height: 1.15;
	font-weight: 800;
	color: var(--wg-ink);
}

#bbpress-forums .wg-forum-hero__sub {
	margin: 0 0 24px;
	max-width: 34ch;
	font-size: 17px;
	line-height: 1.55;
	color: var(--wg-body);
}

#bbpress-forums .wg-forum-hero__cta,
#bbpress-forums .wg-forum-join__cta {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 17px 32px;
	border-radius: 999px;
	background: var(--wg-brand);
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	transition: background-color .18s ease;
}

#bbpress-forums .wg-forum-hero__cta:hover,
#bbpress-forums .wg-forum-hero__cta:focus,
#bbpress-forums .wg-forum-join__cta:hover,
#bbpress-forums .wg-forum-join__cta:focus {
	background: var(--wg-brand-hover);
	color: #fff;
	text-decoration: none;
}

#bbpress-forums .wg-forum-hero__cta-icon {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
}

#bbpress-forums .wg-forum-hero__art {
	flex: 0 1 40%;
	display: flex;
	justify-content: flex-end;
}

#bbpress-forums .wg-forum-hero__art img {
	display: block;
	width: 100%;
	max-width: 330px;
	height: auto;
}

#bbpress-forums .wg-forum-join {
	display: flex;
	align-items: center;
	gap: 18px;
	margin: 38px 0 10px;
	padding: 24px 26px;
	background: var(--wg-cream);
	border-radius: 16px;
}

#bbpress-forums .wg-forum-join__icon {
	flex: 0 0 auto;
	width: 88px;
}

#bbpress-forums .wg-forum-join__icon img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 50%;
}

#bbpress-forums .wg-forum-join__body {
	flex: 1 1 auto;
	min-width: 0;
}

#bbpress-forums .wg-forum-join__title {
	margin: 0 0 6px;
	font-size: 21px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--wg-ink);
}

#bbpress-forums .wg-forum-join__sub {
	margin: 0;
	font-size: 15px;
	line-height: 1.5;
	color: var(--wg-body);
}

#bbpress-forums .wg-forum-join__actions {
	flex: 0 0 auto;
	text-align: center;
}

#bbpress-forums .wg-forum-join__cta {
	padding: 14px 30px;
	font-size: 15px;
}

#bbpress-forums .wg-forum-join__alt {
	margin: 10px 0 0;
	font-size: 14px;
	color: var(--wg-meta);
}

#bbpress-forums .wg-forum-join__alt a {
	color: var(--wg-brand);
	font-weight: 600;
}

@media (max-width: 900px) {
	#bbpress-forums .wg-forum-hero {
		padding: 32px 26px;
	}

	#bbpress-forums .wg-forum-hero__title {
		font-size: 34px;
	}

	#bbpress-forums .wg-forum-hero__art img {
		max-width: 250px;
	}
}

@media (max-width: 600px) {
	#bbpress-forums .wg-forum-hero {
		gap: 14px;
		padding: 26px 20px;
		border-radius: 14px;
	}

	#bbpress-forums .wg-forum-hero__title {
		font-size: 26px;
		margin-bottom: 10px;
	}

	#bbpress-forums .wg-forum-hero__sub {
		margin-bottom: 18px;
		font-size: 15px;
	}

	#bbpress-forums .wg-forum-hero__cta {
		padding: 15px 24px;
		font-size: 15px;
	}

	#bbpress-forums .wg-forum-hero__art img {
		max-width: 150px;
	}

	#bbpress-forums .wg-forum-join {
		flex-wrap: wrap;
		gap: 14px;
		padding: 20px 18px;
	}

	#bbpress-forums .wg-forum-join__icon {
		width: 62px;
	}

	#bbpress-forums .wg-forum-join__body {
		flex: 1 1 60%;
	}

	#bbpress-forums .wg-forum-join__actions {
		flex: 1 1 100%;
		text-align: left;
	}

	#bbpress-forums .wg-forum-join__title {
		font-size: 18px;
	}
}

@media (max-width: 380px) {
	#bbpress-forums .wg-forum-hero__art img {
		max-width: 118px;
	}

	#bbpress-forums .wg-forum-hero__title {
		font-size: 23px;
	}
}

/* ---------- hero layout v2 ----------
   The CTA sits below the copy/art row so it never competes with the
   illustration for width on a phone (it wrapped to two lines at 375px). */

#bbpress-forums .wg-forum-hero {
	display: block;
}

#bbpress-forums .wg-forum-hero__row {
	display: flex;
	align-items: center;
	gap: 24px;
}

#bbpress-forums .wg-forum-hero__copy {
	flex: 1 1 auto;
}

#bbpress-forums .wg-forum-hero__sub {
	margin-bottom: 0;
}

#bbpress-forums .wg-forum-hero__art {
	flex: 0 0 34%;
}

#bbpress-forums .wg-forum-hero__cta {
	margin-top: 26px;
	white-space: nowrap;
}

#bbpress-forums .wg-forum-card__icon svg {
	width: 44px;
	height: 44px;
}

@media (max-width: 900px) {
	#bbpress-forums .wg-forum-hero__art {
		flex: 0 0 180px;
	}
}

@media (max-width: 600px) {
	#bbpress-forums .wg-forum-hero__row {
		gap: 14px;
	}

	#bbpress-forums .wg-forum-hero__art {
		flex: 0 0 130px;
	}

	#bbpress-forums .wg-forum-hero__title {
		font-size: 26px;
	}

	#bbpress-forums .wg-forum-hero__cta {
		margin-top: 20px;
	}
}

@media (max-width: 420px) {
	#bbpress-forums .wg-forum-hero__art {
		flex: 0 0 104px;
	}

	#bbpress-forums .wg-forum-hero__title {
		font-size: 22px;
	}

	#bbpress-forums .wg-forum-card__icon svg {
		width: 36px;
		height: 36px;
	}
}

@media (max-width: 380px) {
	#bbpress-forums .wg-forum-hero__art {
		flex: 0 0 92px;
	}

	#bbpress-forums .wg-forum-hero__title {
		font-size: 20px;
	}

	#bbpress-forums .wg-forum-hero__cta {
		padding: 14px 20px;
		font-size: 14px;
	}
}

/* ---------- hero layout v3 (>=768) ----------
   From tablet up, copy and CTA stack in one column with the illustration
   spanning both rows beside them. Without this the tall illustration sets the
   row height and strands the button ~90px below the subtitle. Below 768 the
   flex layout above still applies (CTA full width under the row). */

@media (min-width: 768px) {
	#bbpress-forums .wg-forum-hero {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		grid-template-areas:
			"copy art"
			"cta  art";
		column-gap: 28px;
		align-items: center;
	}

	#bbpress-forums .wg-forum-hero__row {
		display: contents;
	}

	#bbpress-forums .wg-forum-hero__copy {
		grid-area: copy;
		align-self: end;
	}

	#bbpress-forums .wg-forum-hero__art {
		grid-area: art;
		align-self: center;
	}

	#bbpress-forums .wg-forum-hero__cta {
		grid-area: cta;
		justify-self: start;
		align-self: start;
		margin-top: 22px;
	}
}

/* ---------- single topic: header + post cards ---------- */

/* Besa's title bar repeats the topic title; the header below carries the h1. */
body.single-topic #tbay-breadscrumb {
	display: none;
}

#bbpress-forums .wg-topic-head {
	margin: 0 0 22px;
}

#bbpress-forums .wg-topic-head__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin: 0 0 18px;
}

#bbpress-forums .wg-topic-back {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 17px;
	font-weight: 600;
	color: var(--wg-ink);
	text-decoration: none;
	min-width: 0;
}

#bbpress-forums .wg-topic-back:hover {
	color: var(--wg-brand);
	text-decoration: none;
}

#bbpress-forums .wg-topic-back svg {
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
}

#bbpress-forums .wg-topic-back span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

#bbpress-forums .wg-topic-new {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 13px 22px;
	border-radius: 999px;
	background: var(--wg-brand);
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
	white-space: nowrap;
	text-decoration: none;
	transition: background-color .18s ease;
}

#bbpress-forums .wg-topic-new:hover,
#bbpress-forums .wg-topic-new:focus {
	background: var(--wg-brand-hover);
	color: #fff;
	text-decoration: none;
}

#bbpress-forums .wg-topic-new svg {
	width: 17px;
	height: 17px;
}

#bbpress-forums .wg-topic-head__main {
	display: flex;
	align-items: flex-start;
	gap: 16px;
}

#bbpress-forums .wg-topic-head__icon {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	color: var(--wg-brand);
}

#bbpress-forums .wg-topic-head__icon svg {
	width: 48px;
	height: 48px;
}

#bbpress-forums .wg-topic-head__text {
	min-width: 0;
}

#bbpress-forums .wg-topic-head__title {
	margin: 0 0 6px;
	font-size: 32px;
	line-height: 1.2;
	font-weight: 800;
	color: var(--wg-ink);
}

#bbpress-forums .wg-topic-head__desc {
	margin: 0;
	font-size: 16px;
	line-height: 1.5;
	color: var(--wg-body);
}

#bbpress-forums .wg-topic-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	margin: 0 0 16px;
}

#bbpress-forums .wg-topic-bar__count {
	font-size: 15px;
	font-weight: 600;
	color: var(--wg-body);
}

#bbpress-forums .wg-topic-sort {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
}

#bbpress-forums .wg-topic-sort__label {
	font-size: 15px;
	color: var(--wg-body);
}

#bbpress-forums .wg-topic-sort select {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	height: auto;
	margin: 0;
	padding: 6px 30px 6px 8px;
	border: 0;
	background: transparent url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2317181B' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 6px center;
	background-size: 15px 15px;
	font-size: 15px;
	font-weight: 700;
	color: var(--wg-ink);
	cursor: pointer;
}

/* ---------- post cards ---------- */

#bbpress-forums .wg-posts {
	display: grid;
	gap: 16px;
	margin: 0 0 24px;
	padding: 0;
	list-style: none;
	background: none;
	border: 0;
}

#bbpress-forums .wg-posts > li {
	margin: 0;
	padding: 18px 20px;
	list-style: none;
	background: #fff;
	border: 1px solid var(--wg-line);
	border-radius: 14px;
}

#bbpress-forums .wg-post__head {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	margin: 0 0 12px;
}

#bbpress-forums .wg-post__avatar {
	flex: 0 0 auto;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	overflow: hidden;
	background: var(--wg-cream);
	display: block;
}

#bbpress-forums .wg-post__avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	border-radius: 50%;
}

#bbpress-forums .wg-post__ident {
	flex: 1 1 auto;
	min-width: 0;
	display: block;
}

#bbpress-forums .wg-post__byline {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

#bbpress-forums .wg-post__name {
	font-size: 17px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--wg-ink);
	word-break: break-word;
}

#bbpress-forums .wg-post__role {
	display: inline-block;
	padding: 3px 12px;
	border-radius: 999px;
	background: #FDE7DE;
	color: var(--wg-brand);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	white-space: nowrap;
}

#bbpress-forums .wg-post__date {
	display: block;
	margin-top: 3px;
	font-size: 14px;
	color: var(--wg-meta);
}

#bbpress-forums .wg-post__num {
	flex: 0 0 auto;
	font-size: 14px;
	font-weight: 600;
	color: var(--wg-meta);
	text-decoration: none;
}

#bbpress-forums .wg-post__num:hover {
	color: var(--wg-brand);
}

#bbpress-forums .wg-post__body {
	margin: 0 0 14px;
	font-size: 16px;
	line-height: 1.6;
	color: var(--wg-ink);
	overflow-wrap: break-word;
}

#bbpress-forums .wg-post__body > :last-child {
	margin-bottom: 0;
}

#bbpress-forums .wg-post__body img {
	max-width: 100%;
	height: auto;
}

/* ---------- actions ---------- */

#bbpress-forums .wg-post__actions {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

#bbpress-forums .wg-post__like,
#bbpress-forums .wg-post__reply {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	margin: 0;
	padding: 9px 16px;
	border: 0;
	border-radius: 999px;
	background: #F5F5F7;
	color: var(--wg-body);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .16s ease, color .16s ease;
}

#bbpress-forums .wg-post__reply {
	background: transparent;
	padding-left: 4px;
}

#bbpress-forums .wg-post__like:hover,
#bbpress-forums .wg-post__reply:hover,
#bbpress-forums .wg-post__like:focus-visible,
#bbpress-forums .wg-post__reply:focus-visible {
	color: var(--wg-brand);
	text-decoration: none;
}

#bbpress-forums .wg-post__like.is-liked {
	background: #FDE7DE;
	color: var(--wg-brand);
}

#bbpress-forums .wg-post__like svg,
#bbpress-forums .wg-post__reply svg {
	width: 19px;
	height: 19px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}

#bbpress-forums .wg-post__like.is-liked svg {
	fill: currentColor;
	stroke: currentColor;
}

#bbpress-forums .wg-post__sep {
	width: 1px;
	height: 22px;
	background: var(--wg-line);
}

#bbpress-forums .wg-post__more {
	position: relative;
	margin-left: auto;
}

#bbpress-forums .wg-post__more > summary {
	list-style: none;
	cursor: pointer;
	padding: 6px 12px;
	border-radius: 999px;
	color: var(--wg-meta);
	font-size: 20px;
	line-height: 1;
}

#bbpress-forums .wg-post__more > summary::-webkit-details-marker {
	display: none;
}

#bbpress-forums .wg-post__more > summary:hover {
	background: #F5F5F7;
	color: var(--wg-ink);
}

#bbpress-forums .wg-post__more-menu {
	position: absolute;
	right: 0;
	z-index: 5;
	min-width: 160px;
	margin-top: 6px;
	padding: 10px 14px;
	background: #fff;
	border: 1px solid var(--wg-line);
	border-radius: 12px;
	box-shadow: 0 8px 24px rgba(23, 24, 27, .10);
	font-size: 14px;
	line-height: 2;
}

#bbpress-forums .wg-post__more-menu a {
	color: var(--wg-body);
	text-decoration: none;
}

#bbpress-forums .wg-post__more-menu a:hover {
	color: var(--wg-brand);
}

/* ---------- reply form ---------- */

#bbpress-forums #new-post {
	margin-top: 26px;
	padding: 22px;
	background: #fff;
	border: 1px solid var(--wg-line);
	border-radius: 14px;
}

#bbpress-forums #new-post .bbp-submit-wrapper {
	margin-top: 12px;
}

#bbpress-forums #new-post button[type="submit"],
#bbpress-forums #new-post input[type="submit"] {
	padding: 13px 28px;
	border: 0;
	border-radius: 999px;
	background: var(--wg-brand);
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
}

#bbpress-forums #new-post button[type="submit"]:hover,
#bbpress-forums #new-post input[type="submit"]:hover {
	background: var(--wg-brand-hover);
}

@media (max-width: 600px) {
	#bbpress-forums .wg-topic-head__title {
		font-size: 23px;
	}

	#bbpress-forums .wg-topic-head__desc {
		font-size: 15px;
	}

	#bbpress-forums .wg-topic-head__icon {
		width: 40px;
		height: 40px;
	}

	#bbpress-forums .wg-topic-head__icon svg {
		width: 36px;
		height: 36px;
	}

	#bbpress-forums .wg-topic-head__main {
		gap: 12px;
	}

	#bbpress-forums .wg-posts > li {
		padding: 16px 15px;
	}

	#bbpress-forums .wg-post__avatar {
		width: 44px;
		height: 44px;
	}

	#bbpress-forums .wg-post__name {
		font-size: 16px;
	}

	#bbpress-forums .wg-post__body {
		font-size: 15px;
	}

	#bbpress-forums .wg-post__actions {
		gap: 8px;
	}

	#bbpress-forums .wg-post__like,
	#bbpress-forums .wg-post__reply {
		padding: 8px 13px;
		font-size: 14px;
	}

	#bbpress-forums .wg-topic-new {
		padding: 11px 18px;
		font-size: 14px;
	}
}

@media (max-width: 380px) {
	#bbpress-forums .wg-post__num {
		display: none;
	}
}

/* wg-posts fill fix: inside #bbpress-forums this grid container resolved to
   width:0 (no stylesheet declares a width - it falls out of bbPress' own
   '#bbpress-forums ul' reset). State the intent explicitly. */
#bbpress-forums .wg-posts {
	width: 100%;
}

/* The header bar already states the post count and page, so bbPress'
   own "Viewing N posts" line (printed above AND below the loop) is noise. */
#bbpress-forums .bbp-pagination-count {
	display: none;
}

#bbpress-forums .bbp-pagination {
	margin: 0 0 14px;
}

#bbpress-forums .bbp-pagination-links a,
#bbpress-forums .bbp-pagination-links span.current {
	display: inline-block;
	min-width: 36px;
	padding: 7px 10px;
	margin: 0 4px 4px 0;
	border: 1px solid var(--wg-line);
	border-radius: 10px;
	background: #fff;
	font-size: 14px;
	font-weight: 600;
	text-align: center;
	text-decoration: none;
	color: var(--wg-body);
}

#bbpress-forums .bbp-pagination-links span.current {
	background: var(--wg-brand);
	border-color: var(--wg-brand);
	color: #fff;
}

#bbpress-forums .wg-topic-bar__page {
	font-size: 15px;
	color: var(--wg-meta);
	margin-right: auto;
	padding-left: 10px;
}
