/* bbPress, BuddyPress and Better Messages: restyled, not rebuilt. */
body.be-community #bbpress-forums {
	font-size: 15px;
	font-family: var(--be-font-body);
}
body.be-community #bbpress-forums ul.bbp-forums,
body.be-community #bbpress-forums ul.bbp-topics,
body.be-community #bbpress-forums ul.bbp-replies,
body.be-community #bbpress-forums ul.bbp-lead-topic {
	background: var(--be-card);
	border: 1px solid var(--be-line);
	border-radius: var(--be-radius);
	overflow: hidden;
}
body.be-community #bbpress-forums li.bbp-header {
	background: var(--be-card);
	border-bottom: 1px solid var(--be-line);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--be-muted);
}
body.be-community #bbpress-forums li.bbp-body ul.forum,
body.be-community #bbpress-forums li.bbp-body ul.topic {
	padding: var(--be-space-3) var(--be-space-5);
	border-top: 1px solid var(--be-line-soft);
	background: var(--be-card);
}
body.be-community #bbpress-forums .bbp-forum-title,
body.be-community #bbpress-forums .bbp-topic-permalink {
	font-weight: 600;
	font-size: 16px;
	color: var(--be-text);
}
body.be-community #bbpress-forums .bbp-forum-freshness,
body.be-community #bbpress-forums .bbp-topic-freshness,
body.be-community #bbpress-forums .bbp-topic-meta { color: var(--be-muted); font-size: 13px; }

body.be-community #bbpress-forums div.bbp-reply-header {
	background: var(--be-card);
	border-top: 1px solid var(--be-line-soft);
	color: var(--be-muted);
}
body.be-community #bbpress-forums div.bbp-reply-content { font-size: 16px; line-height: 1.6; }
body.be-community #bbpress-forums div.bbp-reply-author .bbp-author-role {
	display: inline-block;
	padding: 3px 7px;
	border-radius: 4px;
	background: var(--be-line-soft);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

body.be-community .bbp-pagination-links a,
body.be-community .bbp-pagination-links span.current {
	min-width: 36px;
	height: 36px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: var(--be-radius-sm);
	border: 1px solid var(--be-line);
	background: var(--be-card);
}
body.be-community .bbp-pagination-links span.current { background: var(--be-ink); color: #fff; border-color: var(--be-ink); }

.be-breadcrumb { font-size: 13px; color: var(--be-muted); margin: 0 0 var(--be-space-3); }

/* Tables of forums and topics stack on phones. */
@media (max-width: 600px) {
	body.be-community #bbpress-forums li.bbp-forum-info,
	body.be-community #bbpress-forums li.bbp-topic-title { width: 100%; }
	body.be-community #bbpress-forums li.bbp-forum-topic-count,
	body.be-community #bbpress-forums li.bbp-forum-reply-count,
	body.be-community #bbpress-forums li.bbp-topic-voice-count { display: none; }
}

/* 0.1.1: full width, tighter rows, readable freshness column. */
body.be-community #sidebar { display: none; }
body.be-community #left-area { width: 100%; padding-right: 0; float: none; }
body.be-community #main-content .container::before { display: none; }
body.be-community #main-content .container { padding-top: var(--be-space-6); }
body.be-community .entry-content > p:empty { display: none; }

body.be-community #bbpress-forums li.bbp-forum-info,
body.be-community #bbpress-forums li.bbp-topic-title { width: 52%; }
body.be-community #bbpress-forums li.bbp-forum-topic-count,
body.be-community #bbpress-forums li.bbp-forum-reply-count,
body.be-community #bbpress-forums li.bbp-topic-voice-count,
body.be-community #bbpress-forums li.bbp-topic-reply-count { width: 10%; text-align: right; }
body.be-community #bbpress-forums li.bbp-forum-freshness,
body.be-community #bbpress-forums li.bbp-topic-freshness { width: 28%; text-align: right; }
body.be-community #bbpress-forums .bbp-topic-meta { margin: 2px 0 0; display: block; }
body.be-community #bbpress-forums .bbp-topic-meta .bbp-author-avatar { display: none; }

body.be-community #bbpress-forums input[type="text"],
body.be-community #bbpress-forums input[type="search"],
body.be-community #bbpress-forums textarea {
	min-height: var(--be-tap);
	border: 1px solid #c3c8cf;
	border-radius: var(--be-radius-sm);
	padding: 0 var(--be-space-3);
	font: 15px var(--be-font-body);
	background: #fff;
}
body.be-community #bbpress-forums textarea { padding: var(--be-space-3); }
body.be-community #bbpress-forums .bbp-search-form { margin-bottom: var(--be-space-3); }
body.be-community #bbpress-forums .bbp-search-form input[type="submit"],
body.be-community #bbpress-forums #bbp_search_submit {
	min-height: var(--be-tap);
	padding: 0 var(--be-space-4);
	border: 0;
	border-radius: var(--be-radius-sm);
	background: var(--be-ink);
	color: #fff;
	font: 600 14px var(--be-font-body);
}

body.be-community #bbpress-forums div.bbp-template-notice.info {
	border: 1px solid var(--be-line);
	border-radius: var(--be-radius-sm);
	background: var(--be-card);
}

/* Phones: each forum or topic becomes one stacked row. */
@media (max-width: 600px) {
	body.be-community #main-content .container { width: auto; padding-left: var(--be-space-4); padding-right: var(--be-space-4); }
	body.be-community #bbpress-forums li.bbp-header { display: none; }
	body.be-community #bbpress-forums li.bbp-body ul.forum,
	body.be-community #bbpress-forums li.bbp-body ul.topic { padding: var(--be-space-3) var(--be-space-4); }
	body.be-community #bbpress-forums li.bbp-forum-info,
	body.be-community #bbpress-forums li.bbp-topic-title,
	body.be-community #bbpress-forums li.bbp-forum-freshness,
	body.be-community #bbpress-forums li.bbp-topic-freshness { width: 100%; float: none; text-align: left; }
	body.be-community #bbpress-forums li.bbp-forum-topic-count,
	body.be-community #bbpress-forums li.bbp-forum-reply-count,
	body.be-community #bbpress-forums li.bbp-topic-voice-count,
	body.be-community #bbpress-forums li.bbp-topic-reply-count { display: none; }
	body.be-community #bbpress-forums li.bbp-forum-freshness,
	body.be-community #bbpress-forums li.bbp-topic-freshness { font-size: 13px; margin-top: 4px; }
	body.be-community #bbpress-forums .bbp-topic-meta { display: inline; margin-left: 4px; }
	body.be-community #bbpress-forums .bbp-search-form { display: flex; gap: var(--be-space-2); }
	body.be-community #bbpress-forums .bbp-search-form input[type="text"] { flex: 1 1 auto; min-width: 0; }
	body.be-community #bbpress-forums div.bbp-reply-author { width: 100%; float: none; text-align: left; display: flex; gap: var(--be-space-3); align-items: center; }
	body.be-community #bbpress-forums div.bbp-reply-content { margin-left: 0; padding: var(--be-space-3) 0 0; }
}

/* 0.2.0 topic and reply cards. */
body.be-community #bbpress-forums ul.bbp-replies,
body.be-community #bbpress-forums ul.bbp-lead-topic { background: transparent; border: 0; overflow: visible; }
body.be-community #bbpress-forums ul.bbp-replies > li.bbp-header { background: transparent; border: 0; display: none; }
body.be-community #bbpress-forums ul.bbp-replies > li.bbp-body > div.reply,
body.be-community #bbpress-forums ul.bbp-replies > li.bbp-body > div.topic,
body.be-community #bbpress-forums ul.bbp-lead-topic div.topic {
	background: var(--be-card);
	border: 1px solid var(--be-line);
	border-top: 0;
	border-radius: 0 0 var(--be-radius) var(--be-radius);
	margin-bottom: var(--be-space-3);
	padding: var(--be-space-4) var(--be-space-5);
	overflow: hidden;
}
body.be-community #bbpress-forums div.bbp-reply-header,
body.be-community #bbpress-forums div.bbp-topic-header {
	border: 1px solid var(--be-line);
	border-bottom: 1px solid var(--be-line-soft);
	border-radius: var(--be-radius) var(--be-radius) 0 0;
	padding: var(--be-space-2) var(--be-space-5);
	font-size: 13px;
}
body.be-community #bbpress-forums div.bbp-reply-author img.avatar,
body.be-community #bbpress-forums div.bbp-topic-author img.avatar { border-radius: 50%; }
body.be-community #bbpress-forums div.bbp-reply-author .bbp-author-name { font-weight: 600; color: var(--be-text); }
body.be-community #bbpress-forums div.bbp-reply-author .bbp-author-role { font-style: normal; color: #3a414b; }
body.be-community #bbpress-forums .bbp-signature {
	border-top: 1px dashed var(--be-line);
	padding-top: var(--be-space-2);
	color: var(--be-muted);
	font-size: 13px;
	font-style: italic;
}
body.be-community #bbpress-forums .bbp-admin-links a { color: var(--be-muted); font-size: 12px; }
body.be-community #bbpress-forums .bbp-topic-description,
body.be-community #bbpress-forums div.bbp-template-notice {
	border: 1px solid var(--be-line);
	border-radius: var(--be-radius-sm);
	background: var(--be-card);
	padding: var(--be-space-2) var(--be-space-3);
	font-size: 13px;
}
body.be-community #bbpress-forums .bbp-pagination { display: flex; flex-wrap: wrap; gap: var(--be-space-2); align-items: center; justify-content: space-between; margin-bottom: var(--be-space-3); }
body.be-community #bbpress-forums .bbp-pagination-count { font-size: 13px; color: var(--be-muted); }
body.be-community #bbpress-forums fieldset.bbp-form {
	background: var(--be-card);
	border: 1px solid var(--be-line);
	border-radius: var(--be-radius);
	padding: var(--be-space-4) var(--be-space-5);
}
body.be-community #bbpress-forums fieldset.bbp-form legend {
	font-family: var(--be-font-display);
	font-weight: 700;
	font-size: 20px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	padding: 0 var(--be-space-2);
}

/* WP ULike button. */
body.be-community .wpulike .wp_ulike_btn {
	min-height: 36px;
	border-radius: 18px 0 0 18px;
	border: 1px solid var(--be-line);
	background-color: var(--be-card);
}
body.be-community .wpulike .count-box { min-height: 36px; border-radius: 0 18px 18px 0; display: inline-flex; align-items: center; }

/* 0.2.0 BuddyPress profile, members and groups (legacy template pack). */
body.be-community #buddypress #header-cover-image { background-color: var(--be-ink); }
body.be-community #buddypress #item-header-cover-image { padding-bottom: var(--be-space-4); }
body.be-community #buddypress #item-header-avatar img.avatar { border-radius: 50%; border: 4px solid var(--be-card); }
body.be-community #buddypress #item-header-cover-image #item-header-content .user-nicename {
	font-family: var(--be-font-display);
	font-size: 30px;
	letter-spacing: 0.04em;
	color: #fff;
	text-shadow: none;
}
body.be-community #buddypress .activity { color: var(--be-muted); }
body.be-community #buddypress div.item-list-tabs ul li a,
body.be-community #buddypress div.item-list-tabs ul li span {
	border-radius: 18px;
	padding: 8px 14px;
	font-weight: 500;
}
body.be-community #buddypress div.item-list-tabs ul li.selected a,
body.be-community #buddypress div.item-list-tabs ul li.current a {
	background: var(--be-ink);
	color: #fff;
	opacity: 1;
}
body.be-community #buddypress div.item-list-tabs ul li a span { background: var(--be-line-soft); color: var(--be-text); border: 0; }
body.be-community #buddypress div.item-list-tabs#subnav { border-bottom: 1px solid var(--be-line); margin-bottom: var(--be-space-4); }

body.be-community #buddypress ul.activity-list > li.activity-item,
body.be-community #buddypress ul#members-list > li,
body.be-community #buddypress ul#groups-list > li {
	background: var(--be-card);
	border: 1px solid var(--be-line);
	border-radius: var(--be-radius);
	padding: var(--be-space-4) var(--be-space-5);
	margin-bottom: var(--be-space-3);
}
body.be-community #buddypress .activity-list .activity-avatar img,
body.be-community #buddypress ul.item-list li img.avatar { border-radius: 50%; }
body.be-community #buddypress .activity-list .activity-content .activity-inner,
body.be-community #buddypress .activity-list .activity-content blockquote {
	border-left: 0;
	margin: var(--be-space-2) 0 0;
	padding: 0;
	font-size: 15px;
	line-height: 1.6;
	color: var(--be-text);
}
body.be-community #buddypress .activity-header { font-size: 14px; color: var(--be-muted); }
body.be-community #buddypress ul.item-list li div.item-title { font-weight: 600; font-size: 16px; }
body.be-community #buddypress div.dir-search input[type="text"],
body.be-community #buddypress select {
	min-height: 40px;
	border: 1px solid #c3c8cf;
	border-radius: var(--be-radius-sm);
	padding: 0 var(--be-space-3);
	background: #fff;
}
body.be-community #buddypress a.button,
body.be-community #buddypress button,
body.be-community #buddypress input[type="submit"] {
	min-height: 40px;
	border-radius: var(--be-radius-sm);
	border: 1px solid #c3c8cf;
	background: #fff;
	color: var(--be-text);
	font: 600 14px var(--be-font-body);
}
body.be-community #buddypress input[type="submit"].button-primary,
body.be-community #buddypress #whats-new-submit input { background: var(--be-ink); color: #fff; border-color: var(--be-ink); }

/* Better Messages: keep its layout, match corners and edge. */
body.be-community .bp-messages-wrap { border-radius: var(--be-radius); border-color: var(--be-line); }

@media (max-width: 600px) {
	body.be-community #bbpress-forums ul.bbp-replies > li.bbp-body > div.reply,
	body.be-community #bbpress-forums ul.bbp-lead-topic div.topic { padding: var(--be-space-3) var(--be-space-4); }
	body.be-community #buddypress #item-header-cover-image #item-header-content .user-nicename { font-size: 24px; color: var(--be-text); }
	body.be-community #buddypress div.item-list-tabs { overflow-x: auto; }
	body.be-community #buddypress div.item-list-tabs ul { display: flex; flex-wrap: nowrap; gap: 4px; }
	body.be-community #buddypress div.item-list-tabs ul li { float: none; flex: 0 0 auto; }
}

body.be-community .bbp-pagination-links a,
body.be-community .bbp-pagination-links span { line-height: 1; padding: 0 10px; box-sizing: border-box; vertical-align: middle; }
body.be-community .bbp-pagination-links a:hover { background: var(--be-line-soft); text-decoration: none; }

@media (max-width: 600px) {
	body.be-community #buddypress .activity-list .activity-avatar { display: none; }
	body.be-community #buddypress .activity-list .activity-content { margin-left: 0; }
	body.be-community #buddypress ul.activity-list > li.activity-item { padding: var(--be-space-3) var(--be-space-4); }
	body.be-theme .et_mobile_menu { left: -5.5%; width: 111%; }
}

/* ===== 0.3.0: forum list with character ===== */
body.be-community #bbpress-forums ul.bbp-forums { box-shadow: 0 1px 0 var(--be-line), 0 12px 32px -18px rgba(11, 13, 16, 0.35); }
body.be-community #bbpress-forums li.bbp-header {
	background: var(--be-ink);
	color: var(--be-on-ink-muted);
	border-bottom: 3px solid var(--be-blue);
}
body.be-community #bbpress-forums li.bbp-header a { color: #fff; }
body.be-community #bbpress-forums li.bbp-body ul.forum,
body.be-community #bbpress-forums li.bbp-body ul.topic {
	position: relative;
	transition: background 0.15s ease, box-shadow 0.15s ease;
}
body.be-community #bbpress-forums li.bbp-body ul.forum:hover,
body.be-community #bbpress-forums li.bbp-body ul.topic:hover {
	background: #f7f9ff;
	box-shadow: inset 4px 0 0 var(--be-blue);
}
body.be-community #bbpress-forums li.bbp-forum-info { display: block; }
body.be-community .be-forum-badge {
	float: left;
	width: 40px;
	height: 40px;
	margin: 0 14px 0 0;
	border-radius: 50%;
	background: var(--be-ink);
	color: #fff;
	box-shadow: inset 0 0 0 3px var(--be-blue);
	font: 700 20px/40px var(--be-font-display);
	text-align: center;
	text-transform: uppercase;
}
body.be-community .be-forum-hot .be-forum-badge { background: var(--be-blue); color: var(--be-ink); box-shadow: inset 0 0 0 3px var(--be-ink); }
body.be-community #bbpress-forums .bbp-forum-title { font-family: var(--be-font-display); font-size: 22px; letter-spacing: 0.03em; text-transform: uppercase; line-height: 40px; }
body.be-community #bbpress-forums .bbp-forum-content { clear: none; margin-left: 54px; font-size: 13px; color: var(--be-muted); }
.be-pill {
	display: inline-block;
	margin-left: 8px;
	padding: 2px 8px;
	border-radius: 10px;
	font: 700 11px/16px var(--be-font-body);
	letter-spacing: 0.04em;
	text-transform: uppercase;
	vertical-align: middle;
}
.be-pill--hot { background: var(--be-blue); color: var(--be-ink); }

/* Topic page: title area and author column with more presence. */
body.be-community.single-topic .entry-title { font-size: 44px; }
body.be-community #bbpress-forums div.bbp-reply-author,
body.be-community #bbpress-forums div.bbp-topic-author { text-align: center; }
body.be-community #bbpress-forums div.bbp-reply-author img.avatar { box-shadow: 0 0 0 3px var(--be-card), 0 0 0 5px var(--be-blue); }
body.be-community #bbpress-forums div.bbp-reply-author .bbp-author-role { background: var(--be-ink); color: #fff; }
body.be-community #bbpress-forums .bbp-reply-header { background: linear-gradient(90deg, var(--be-ink) 0 6px, var(--be-card) 6px); }
body.be-community #bbpress-forums .bbp-reply-permalink { font-weight: 700; color: var(--be-muted); }

/* Pagination: centred numbers, current page in blue. */
body.be-community #bbpress-forums .bbp-pagination-links { display: flex; flex-wrap: wrap; gap: 4px; }
body.be-community #bbpress-forums .bbp-pagination-links a.page-numbers,
body.be-community #bbpress-forums .bbp-pagination-links span.page-numbers {
	float: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	margin: 0;
	padding: 0 10px;
	line-height: 1;
	font-weight: 600;
}
body.be-community #bbpress-forums .bbp-pagination-links span.current { background: var(--be-blue); border-color: var(--be-blue); color: var(--be-ink); }
body.be-community #bbpress-forums .bbp-pagination-links span.dots { border: 0; background: transparent; }

@media (max-width: 600px) {
	body.be-community .be-forum-badge { width: 34px; height: 34px; font-size: 17px; line-height: 34px; margin-right: 10px; }
	body.be-community #bbpress-forums .bbp-forum-title { font-size: 19px; line-height: 34px; }
	body.be-community #bbpress-forums li.bbp-forum-freshness { padding-left: 44px; box-sizing: border-box; }
	body.be-community #bbpress-forums .bbp-pagination { justify-content: flex-start; }
}
body.be-community #bbpress-forums li.bbp-header li { color: var(--be-on-ink-muted); }

/* ===== 0.4.0: registration and group lists ===== */
body.be-community #buddypress .standard-form input[type="text"],
body.be-community #buddypress .standard-form input[type="email"],
body.be-community #buddypress .standard-form input[type="password"],
body.be-community #buddypress .standard-form textarea {
	width: 100%;
	max-width: 420px;
	min-height: var(--be-tap);
	box-sizing: border-box;
	border: 1px solid #c3c8cf;
	border-radius: var(--be-radius-sm);
	padding: 0 var(--be-space-3);
	font: 16px var(--be-font-body);
	background: #fff;
}
body.be-community #buddypress .standard-form label { font-weight: 600; margin-top: var(--be-space-3); }
body.be-community #buddypress .standard-form p.description { color: var(--be-muted); font-size: 13px; }
body.be-community #buddypress #register-page .register-section {
	background: var(--be-card);
	border: 1px solid var(--be-line);
	border-radius: var(--be-radius);
	padding: var(--be-space-4) var(--be-space-5);
	box-sizing: border-box;
}
body.be-community #buddypress #register-page .register-section h2 { font-size: 22px; margin-bottom: var(--be-space-2); }
body.be-community #buddypress #register-page .submit input[type="submit"],
body.be-community #buddypress #signup_submit {
	min-height: var(--be-tap);
	padding: 0 24px;
	border: 0;
	background: var(--be-blue);
	color: var(--be-ink);
	font-weight: 700;
}
body.be-community #buddypress ul#groups-list li div.action { position: static; text-align: left; margin-top: var(--be-space-2); }
body.be-community #buddypress ul#groups-list li .item { overflow: hidden; }

@media (max-width: 600px) {
	body.be-community #buddypress #register-page .register-section { width: 100%; float: none; margin-bottom: var(--be-space-4); }
	body.be-community #buddypress ul#groups-list li div.action { float: none; }
	body.be-community #buddypress div.dir-search { float: none; margin: 0 0 var(--be-space-3); }
}
body.be-community #buddypress .standard-form #signup_password,
body.be-community #buddypress .standard-form #signup_password_confirm,
body.be-community #buddypress .standard-form input.password-entry,
body.be-community #buddypress .standard-form input.password-entry-confirm { width: 100% !important; max-width: 420px; }
@media (max-width: 600px) {
	body.be-community #buddypress ul#groups-list li .item-desc { margin: var(--be-space-1) 0 0; }
	body.be-community #buddypress ul#groups-list li div.meta { margin-top: var(--be-space-1); }
}

/* ===== 0.8.0: phone layout fixes, posting tools, embeds ===== */
/* Forms never wider than the screen (fieldsets default to min-content). */
body.be-community #bbpress-forums fieldset,
body.be-community #bbpress-forums fieldset.bbp-form { min-width: 0; max-width: 100%; box-sizing: border-box; }
body.be-community #bbpress-forums fieldset.bbp-form input[type="text"],
body.be-community #bbpress-forums fieldset.bbp-form textarea,
body.be-community #bbpress-forums .wp-editor-container,
body.be-community #bbpress-forums .wp-editor-wrap { width: 100% !important; max-width: 100%; box-sizing: border-box; }
body.be-community #bbpress-forums fieldset.bbp-form label { display: block; margin-bottom: 4px; font-weight: 600; font-size: 14px; }
body.be-community #bbpress-forums fieldset.bbp-form input[type="checkbox"] + label { display: inline; font-weight: 400; }
body.be-community #bbpress-forums .bbp-the-content-wrapper,
body.be-community #bbpress-forums .wp-editor-container { border: 1px solid #c3c8cf; border-radius: var(--be-radius-sm); overflow: hidden; }
body.be-community #bbpress-forums .wp-editor-container textarea.wp-editor-area { border: 0; min-height: 180px; font: 16px/1.55 var(--be-font-body); padding: 12px; }
body.be-community #bbpress-forums .quicktags-toolbar,
body.be-community #bbpress-forums .mce-toolbar-grp { background: var(--be-paper) !important; border-bottom: 1px solid var(--be-line) !important; }
body.be-community #bbpress-forums .wp-editor-tabs { float: right; }
body.be-community #bbpress-forums .wp-switch-editor { border-radius: 4px 4px 0 0; font-size: 13px; }
body.be-community #bbpress-forums .bbp-template-notice.info { font-size: 13px; }

/* Posting help line (added by the theme above the editor). */
.be-post-help { margin: 0 0 8px; padding: 0 !important; font-size: 13px; color: var(--be-muted); }

/* Attachment box. */
body.be-community #bbpress-forums .bbp-attachments-form { border: 1px dashed #c3c8cf; border-radius: var(--be-radius-sm); padding: 12px 14px; }
body.be-community #bbpress-forums .bbp-attachments-form legend { font-size: 15px !important; }
body.be-community #bbpress-forums .bbp-attachments-form input[type="file"] { max-width: 100%; font-size: 14px; }
/* Leftover "File not uploaded" notes from old posts mean nothing to readers. */
body.be-community #bbpress-forums .bbp-attachments-errors { display: none; }

/* Pictures and video in posts. */
body.be-community #bbpress-forums .bbp-reply-content img,
body.be-community #bbpress-forums .bbp-topic-content img { max-width: 100%; height: auto; }
body.be-community #bbpress-forums .be-inline-image { display: inline-block; margin: 6px 0; }
body.be-community #bbpress-forums .be-inline-image img { border-radius: var(--be-radius-sm); max-height: 560px; width: auto; }
body.be-community #bbpress-forums .bbp-reply-content iframe,
body.be-community #bbpress-forums .bbp-topic-content iframe { max-width: 100%; }
body.be-community #bbpress-forums .bbp-reply-content iframe[src*="youtube"],
body.be-community #bbpress-forums .bbp-reply-content iframe[src*="vimeo"],
body.be-community #bbpress-forums .bbp-topic-content iframe[src*="youtube"],
body.be-community #bbpress-forums .bbp-topic-content iframe[src*="vimeo"] { width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: var(--be-radius-sm); }
body.be-community #bbpress-forums .twitter-tweet { margin: 10px 0 !important; }

/* Broken avatar images: hide the alt text spilling out of the circle. */
body.be-community img.avatar { overflow: hidden; color: transparent; font-size: 0; background: #e4e7eb; }

/* Search results: the reply title sits under the date, not on top of it. */
body.be-community #bbpress-forums .bbp-search-results .bbp-reply-header { display: block; }
body.be-community #bbpress-forums .bbp-search-results .bbp-reply-title { clear: both; padding: 4px 12px 0; }
body.be-community #bbpress-forums .bbp-search-results .bbp-reply-title h3 { margin: 0; padding: 0; font: 600 14px var(--be-font-body); text-transform: none; letter-spacing: 0; }

/* Short pages: keep the footer at the bottom of the screen. */
body.be-community #main-content { min-height: calc(100vh - 260px); }

@media (max-width: 600px) {
	/* Moderator links wrap under the date instead of squeezing it. */
	body.be-community #bbpress-forums div.bbp-reply-header .bbp-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
	body.be-community #bbpress-forums div.bbp-reply-header .bbp-meta .bbp-reply-permalink { margin-left: auto; float: none; }
	body.be-community #bbpress-forums div.bbp-reply-header .bbp-admin-links { order: 3; flex-basis: 100%; float: none; margin: 0; font-size: 11px; }
	body.be-community #bbpress-forums .bbp-author-ip { display: none; }
	/* Author row wraps: avatar, name and role, then Private Message below. */
	body.be-community #bbpress-forums div.bbp-reply-author { flex-wrap: wrap; row-gap: 4px; }
	body.be-community #bbpress-forums div.bbp-reply-author br { display: none; }
	body.be-community #bbpress-forums div.bbp-reply-author .bm-private-message-link-buddypress { flex-basis: 100%; padding-left: 2px; font-size: 13px; }
	body.be-community #bbpress-forums div.bbp-reply-author .bbp-reply-ip { display: none; }
	/* Search box lines up with the content edge. */
	body.be-community #bbpress-forums .bbp-search-form,
	body.be-community #bbpress-forums .bbp-search-form form { width: 100%; margin: 0 0 var(--be-space-3); float: none; }
	body.be-community #bbpress-forums .bbp-search-form form > div { display: flex; gap: var(--be-space-2); }
	body.be-community #bbpress-forums .bbp-search-form input[type="text"] { flex: 1 1 auto; min-width: 0; width: auto; }
	/* The repeated table footer adds nothing on a phone. */
	body.be-community #bbpress-forums li.bbp-footer { display: none; }
	/* Profile and group tabs scroll sideways instead of being cut off. */
	body.be-community #buddypress div.item-list-tabs,
	body.be-community #buddypress #object-nav,
	body.be-community #buddypress #subnav { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
	body.be-community #buddypress div.item-list-tabs ul { display: flex; flex-wrap: nowrap; width: max-content; }
	body.be-community #buddypress div.item-list-tabs ul li { flex: none; float: none; }
	body.be-community #bbpress-forums .wp-editor-tabs { float: none; text-align: right; }
}

/* ===== 0.8.1: group header on phones, calmer type ===== */
/* Section headings inside community screens: small labels, not page titles. */
body.be-community #buddypress h2,
body.be-community #buddypress h3,
body.be-community #bbpress-forums h2,
body.be-community #bbpress-forums h3 { font-size: 20px; line-height: 1.2; letter-spacing: 0.04em; }
body.be-community #buddypress #item-actions h2 {
	margin: 0 0 6px;
	padding: 0;
	font-size: 13px;
	letter-spacing: 0.12em;
	color: var(--be-muted);
}
body.be-community #buddypress #item-actions ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; padding: 0 !important; list-style: none; }
body.be-community #buddypress #item-actions ul li { float: none; margin: 0; padding: 0 !important; }
body.be-community #buddypress #item-actions img.avatar { width: 40px; height: 40px; border-radius: 50%; }
body.be-community #buddypress #item-meta { font-size: 14px; color: var(--be-muted); }
body.be-community #buddypress #item-meta .highlight,
body.be-community #buddypress #item-meta .activity { font-size: 14px !important; font-weight: 600; color: var(--be-text); background: none; padding: 0; }
body.be-community #buddypress #item-meta .activity { font-weight: 400; color: var(--be-muted); }
body.be-community #buddypress #item-meta p { margin: 6px 0 0; padding: 0; font-size: 15px; color: var(--be-text); }
body.be-community #buddypress #item-buttons .generic-button a,
body.be-community #buddypress #item-buttons .generic-button button {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 0 16px;
	border: 1px solid var(--be-ink);
	border-radius: var(--be-radius-sm);
	background: var(--be-card);
	color: var(--be-text);
	font: 600 14px var(--be-font-body);
	text-decoration: none;
}
body.be-community #buddypress #item-buttons .generic-button a:hover { background: var(--be-ink); color: #fff; }

/* Moderator links: quieter. */
body.be-community #bbpress-forums .bbp-admin-links { font-size: 11px; letter-spacing: 0.04em; }
body.be-community #bbpress-forums .bbp-admin-links a { color: var(--be-muted); }

@media (max-width: 600px) {
	/* Group header stacks: logo, name and buttons, then admins and mods. */
	body.be-community #buddypress #item-header-cover-image { display: flex; flex-direction: column; align-items: center; text-align: center; }
	body.be-community #buddypress #item-header-content,
	body.be-community #buddypress #item-actions { float: none !important; width: 100% !important; max-width: none; margin: 0; padding: 0 !important; text-align: center; }
	body.be-community #buddypress #item-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; margin-top: 16px; padding-top: 14px !important; border-top: 1px solid var(--be-line-soft); }
	body.be-community #buddypress #item-actions h2 { grid-row: 1; }
	body.be-community #buddypress #item-actions ul { grid-row: 2; justify-content: center; }
	body.be-community #buddypress #item-actions h2 + ul + h2 { grid-column: 2; }
	body.be-community #buddypress #item-actions ul#group-mods { grid-column: 2; }
	body.be-community #buddypress #item-actions img.avatar { width: 36px; height: 36px; }
	body.be-community #buddypress #item-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 10px; }
	body.be-community #buddypress #item-meta p { flex-basis: 100%; }
	/* Body text a notch smaller so long posts read like an app, not a billboard. */
	body.be-community #bbpress-forums div.bbp-reply-content,
	body.be-community #bbpress-forums div.bbp-topic-content { font-size: 15px; line-height: 1.55; }
	body.be-community #bbpress-forums div.bbp-reply-content p { margin-bottom: 0.9em; padding-bottom: 0; }
	body.be-community #bbpress-forums div.bbp-reply-header .bbp-meta { font-size: 13px; }
	body.be-community #bbpress-forums div.bbp-reply-author .bbp-author-name { font-size: 15px; font-weight: 700; }
	body.be-community #bbpress-forums div.bbp-reply-author .bbp-author-role { font-size: 10px; padding: 3px 7px; }
	body.be-community #bbpress-forums div.bbp-reply-author img.avatar { width: 52px !important; height: 52px !important; }
	body.be-community #buddypress h2,
	body.be-community #buddypress h3,
	body.be-community #bbpress-forums h2,
	body.be-community #bbpress-forums h3 { font-size: 18px; }
	body.be-theme h1.main_title { font-size: 34px; }
}

/* ===== 0.8.2: attached photos show full size ===== */
body.be-community #bbpress-forums .bbp-attachments { border-top: 0; margin-top: 12px; padding: 0; }
body.be-community #bbpress-forums .bbp-attachments h6 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
body.be-community #bbpress-forums .bbp-attachments ol.d4p-bba-thumbnails { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; max-width: 760px; margin: 0 !important; padding: 0 !important; }
body.be-community #bbpress-forums .bbp-attachments ol.d4p-bba-thumbnails:has(> li + li) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body.be-community #bbpress-forums .bbp-attachments ol.d4p-bba-thumbnails::after { display: none; }
body.be-community #bbpress-forums .bbp-attachments li.bbp-atthumb { float: none !important; width: auto !important; margin: 0 !important; }
body.be-community #bbpress-forums .bbp-attachments .wp-caption { width: auto !important; max-width: 100%; margin: 0; padding: 0; border: 0; background: none; text-align: left; }
body.be-community #bbpress-forums .be-attachment-link { display: block; }
body.be-community #bbpress-forums img.be-attachment-image { display: block; width: auto; max-width: 100%; height: auto; max-height: 640px; border-radius: var(--be-radius-sm); background: var(--be-paper); }
body.be-community #bbpress-forums .d4p-bba-thumbnails:has(> li + li) img.be-attachment-image { width: 100%; height: 220px; object-fit: cover; }
/* File name stays hidden for photos; moderators keep small delete/detach links. */
body.be-community #bbpress-forums .bbp-atthumb .wp-caption-text { margin: 4px 0 0; padding: 0; font-size: 0; line-height: 1.2; }
body.be-community #bbpress-forums .bbp-atthumb .wp-caption-text .d4p-bba-actions { font-size: 11px; color: var(--be-muted); }
@media (max-width: 600px) {
	body.be-community #bbpress-forums .d4p-bba-thumbnails:has(> li + li) img.be-attachment-image { height: 150px; }
}

/* ===== 1.0.0: forum polish ===== */
body.be-community #bbpress-forums div.bbp-reply-author .bbp-author-name { font-size: 15px; font-weight: 700; color: var(--be-text); }
body.be-community #bbpress-forums div.bbp-reply-content { font-weight: 400; }
body.be-community #bbpress-forums div.bbp-reply-content blockquote { margin: 10px 0; padding: 10px 14px; border-left: 4px solid var(--be-blue); background: var(--be-paper); border-radius: 0 var(--be-radius-sm) var(--be-radius-sm) 0; font-style: normal; }
body.be-community #bbpress-forums .bbp-reply-signature { font-size: 13px; color: var(--be-muted); font-style: italic; }
/* Topic starter tag on their replies. */
body.be-community #bbpress-forums .be-op { display: inline-block; margin-top: 4px; padding: 2px 6px; border-radius: 4px; background: var(--be-blue); color: var(--be-ink); font: 700 10px var(--be-font-body); letter-spacing: 0.08em; text-transform: uppercase; }
/* Wrestling rank badge (from post count). */
body.be-community #bbpress-forums .be-rank-badge { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; padding: 2px 8px; border-radius: 10px; border: 1px solid var(--be-line); background: var(--be-card); font: 700 11px var(--be-font-display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--be-text); white-space: nowrap; }
body.be-community #bbpress-forums .be-rank-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--be-rank-color, #9aa1ab); }
body.be-community #bbpress-forums .be-rank-badge[data-rank="varsity"] { --be-rank-color: #12804a; }
body.be-community #bbpress-forums .be-rank-badge[data-rank="captain"] { --be-rank-color: #1c5bd8; }
body.be-community #bbpress-forums .be-rank-badge[data-rank="all-american"] { --be-rank-color: #c8102e; }
body.be-community #bbpress-forums .be-rank-badge[data-rank="champ"] { --be-rank-color: #d4a017; }
body.be-community #bbpress-forums .be-rank-badge[data-rank="hof"] { --be-rank-color: #0b0d10; background: #0b0d10; color: #f5c542; border-color: #0b0d10; }
body.be-community #bbpress-forums .be-rank-badge[data-rank="hof"]::before { background: #f5c542; }
body.be-community #bbpress-forums .be-post-count { display: block; margin-top: 2px; font-size: 11px; color: var(--be-muted); }
@media (max-width: 600px) {
	/* Name, role and rank on one line, wrapping when it doesn't fit. */
	body.be-community #bbpress-forums div.bbp-reply-author { flex-wrap: wrap !important; column-gap: 8px; box-sizing: border-box; max-width: 100%; }
	body.be-community #bbpress-forums div.bbp-reply-author .be-rank-badge,
	body.be-community #bbpress-forums div.bbp-reply-author .be-post-count,
	body.be-community #bbpress-forums div.bbp-reply-author .be-op { margin-top: 0; }
	body.be-community #bbpress-forums div.bbp-reply-author .be-post-count { display: inline; }
}

/* ===== 1.0.1: emoji reactions (Broken Ear Core) ===== */
/* WP ULike's thumbs are replaced by our reactions; its old likes are copied in. */
body.be-community #bbpress-forums .wpulike { display: none !important; }
.be-react { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 14px; }
.be-react.is-busy { opacity: 0.6; pointer-events: none; }
.be-react__chip, .be-react__add {
	display: inline-flex; align-items: center; gap: 5px; min-height: 32px; padding: 0 10px;
	border: 1px solid var(--be-line); border-radius: 999px; background: var(--be-paper);
	font: 600 13px/1 var(--be-font-body); color: var(--be-ink); cursor: pointer;
}
span.be-react__chip { cursor: default; }
.be-react__e { font-size: 16px; line-height: 1; }
button.be-react__chip:hover, .be-react__add:hover { border-color: var(--be-blue); }
.be-react__chip.is-mine { border-color: var(--be-link); background: rgba(69, 133, 255, 0.12); color: var(--be-link); }
.be-react__add { color: var(--be-muted); font-size: 14px; }
.be-react__menu {
	position: absolute; z-index: 20; left: 0; bottom: calc(100% + 6px); display: flex; gap: 2px; padding: 6px;
	background: #fff; border: 1px solid var(--be-line); border-radius: 999px; box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.be-react__menu[hidden] { display: none; }
.be-react__menu button { width: 40px; height: 40px; border: 0; border-radius: 50%; background: none; font-size: 22px; line-height: 1; cursor: pointer; transition: transform 0.1s; }
.be-react__menu button:hover, .be-react__menu button:focus-visible { background: var(--be-paper); transform: scale(1.2); }

/* Emoji picker above the topic and reply box. */
.be-emoji { position: relative; margin: 0 0 6px; }
.be-emoji__toggle { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; border: 1px solid var(--be-line); border-radius: var(--be-radius-sm); background: #fff; font: 600 13px var(--be-font-body); color: var(--be-ink); cursor: pointer; }
.be-emoji__toggle span { font-size: 17px; }
.be-emoji__panel { position: absolute; z-index: 30; top: calc(100% + 4px); left: 0; box-sizing: border-box; width: 100%; max-width: 420px; padding: 6px 8px 8px; background: #fff; border: 1px solid var(--be-line); border-radius: var(--be-radius); box-shadow: 0 8px 24px rgba(0,0,0,0.15); }
.be-emoji__panel[hidden] { display: none; }
.be-emoji__tabs { display: flex; gap: 4px; margin-bottom: 6px; border-bottom: 1px solid var(--be-line-soft); }
.be-emoji__tabs button { padding: 6px 10px; border: 0; border-bottom: 2px solid transparent; background: none; font: 600 13px var(--be-font-body); color: var(--be-muted); cursor: pointer; }
.be-emoji__tabs button[aria-selected="true"] { color: var(--be-link); border-bottom-color: var(--be-link); }
.be-emoji__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); gap: 2px; max-height: 240px; overflow-y: auto; overscroll-behavior: contain; }
.be-emoji__grid[data-tab="slack"] { grid-template-columns: repeat(auto-fill, minmax(48px, 1fr)); }
.be-emoji__grid button { height: 38px; border: 0; border-radius: 6px; background: none; font-size: 22px; line-height: 1; cursor: pointer; padding: 0; }
.be-emoji__grid[data-tab="slack"] button { height: 48px; }
.be-emoji__grid button img { max-width: 100%; max-height: 100%; width: auto; height: 22px; object-fit: contain; vertical-align: middle; }
.be-emoji__grid[data-tab="slack"] button img { height: 40px; }
.be-emoji__grid button:hover { background: var(--be-paper); }

/* Smilies in posts. */
body.be-community #bbpress-forums .bbp-reply-content img.be-smiley { display: inline-block !important; width: auto !important; height: 22px !important; max-width: none; margin: 0 1px !important; padding: 0; vertical-align: -5px; border: 0; border-radius: 0; box-shadow: none; }
body.be-community #bbpress-forums .bbp-reply-content img.be-smiley--slack { height: 32px !important; vertical-align: -9px; }
.be-react__add b { font-size: 13px; margin-left: 1px; }

/* ===== 1.0.9: top-of-page post button, descriptions and bylines ===== */
.be-forum-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin: 0 0 16px; }
.be-forum-top__desc, .be-dek { flex: 1 1 360px; margin: 0 !important; padding: 0 !important; font-size: 16px; line-height: 1.5; color: var(--be-muted); }
.be-dek { font-size: 18px; color: var(--be-text); font-weight: 500; }
.be-btn--post { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: var(--be-radius-sm); background: var(--be-ink); color: #fff !important; font: 700 15px var(--be-font-body); text-decoration: none !important; letter-spacing: 0.02em; }
.be-btn--post:hover { background: var(--be-link); }
#bbpress-forums .be-dek-list { display: block; margin-top: 2px; font-size: 14px; line-height: 1.4; color: var(--be-muted); font-weight: 400; }
.be-dek-field { margin: 0 0 12px !important; }
.be-dek-field label { display: block; margin-bottom: 4px; font-weight: 700; }
.be-dek-field input { width: 100%; box-sizing: border-box; min-height: 44px; padding: 0 12px; border: 1px solid var(--be-line); border-radius: var(--be-radius-sm); }
.be-dek-field__hint { display: block; margin-top: 4px; font-size: 12px; color: var(--be-muted); }
#bbpress-forums #new-post { scroll-margin-top: 110px; }
@media (max-width: 600px) {
	.be-btn--post { width: 100%; justify-content: center; }
	.be-dek { font-size: 16px; }
}

/* ===== 1.0.9: collapsed long posts ===== */
.be-clamp.is-clamped:not(.is-open) { max-height: var(--be-clamp, 360px); overflow: hidden; position: relative; }
.be-clamp.is-clamped:not(.is-open)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; background: linear-gradient(rgba(255,255,255,0), #fff); pointer-events: none; }
.be-clamp__btn { display: inline-flex; align-items: center; gap: 6px; margin: 8px 0 0; min-height: 36px; padding: 0 14px; border: 1px solid var(--be-line); border-radius: 999px; background: #fff; font: 700 13px var(--be-font-body); color: var(--be-link); cursor: pointer; }
.be-clamp__btn::after { content: "▾"; font-size: 12px; }
.be-clamp__btn[aria-expanded="true"]::after { content: "▴"; }
.be-clamp__btn:hover { border-color: var(--be-link); }

/* ===== 1.0.11: image reactions ===== */
.be-react__img { display: block; width: 20px !important; height: 20px !important; object-fit: contain; margin: 0 !important; }
.be-react__chip .be-react__e { display: inline-flex; align-items: center; }
.be-react__menu .be-react__more { font-size: 20px; font-weight: 700; color: var(--be-muted); }
.be-react__panel { z-index: 25; }
.be-react__grid button { height: 40px; }
.be-react__grid[data-tab="slack"] button { height: 48px; }
.be-react__grid button img { height: 24px; width: auto; max-width: 100%; object-fit: contain; }
.be-react__grid[data-tab="slack"] button img { height: 40px; }

/* ===== 1.0.12: reaction menus float over the posts below instead of being cut off by the post card ===== */
body.be-community #bbpress-forums.bbpress-wrapper:has(.be-react__menu:not([hidden]), .be-react__panel:not([hidden])),
body.be-community #bbpress-forums ul.bbp-replies:has(.be-react__menu:not([hidden]), .be-react__panel:not([hidden])),
body.be-community #bbpress-forums ul.bbp-lead-topic:has(.be-react__menu:not([hidden]), .be-react__panel:not([hidden])),
body.be-community #bbpress-forums ul.bbp-replies > li.bbp-body > div.reply:has(.be-react__menu:not([hidden]), .be-react__panel:not([hidden])),
body.be-community #bbpress-forums ul.bbp-replies > li.bbp-body > div.topic:has(.be-react__menu:not([hidden]), .be-react__panel:not([hidden])),
body.be-community #bbpress-forums ul.bbp-lead-topic div.topic:has(.be-react__menu:not([hidden]), .be-react__panel:not([hidden])) { overflow: visible; position: relative; z-index: 40; }
