/*
 * TryDota forum: dark skin for bbPress (loaded after bbpress.css and the theme CSS, forum pages only).
 * Colors come from the theme tokens (theme.css :root).
 */

.td-forum .td-forum__body {
	padding: 15px;
}

#bbpress-forums {
	margin: 0;
	font-size: 14px;
	line-height: 1.5;
	color: var(--td-text);
	overflow: visible;
}

#bbpress-forums a {
	color: var(--td-accent);
	text-decoration: none;
}

#bbpress-forums a:hover,
#bbpress-forums a:focus {
	color: var(--td-accent-2);
}

/* ---------- Breadcrumb, search, toggles ---------- */
#bbpress-forums div.bbp-breadcrumb {
	float: none;
	font-size: 13px;
	color: var(--td-muted-2);
}

#bbpress-forums div.bbp-breadcrumb p {
	margin: 0 0 12px;
}

#bbpress-forums .bbp-breadcrumb-sep {
	margin: 0 4px;
	color: var(--td-muted-2);
}

#bbpress-forums .bbp-breadcrumb-current {
	color: var(--td-text);
}

#bbpress-forums div.bbp-search-form {
	float: none;
	margin: 0 0 15px;
}

#bbpress-forums #bbp-search-form > div {
	display: flex;
	gap: 6px;
}

#bbpress-forums #bbp-search-form #bbp_search {
	flex: 1 1 auto;
	min-width: 0;
}

#bbpress-forums #subscription-toggle,
#bbpress-forums #favorite-toggle {
	float: none;
	display: inline-block;
	margin: 0 12px 10px 0;
	font-size: 13px;
}

#bbpress-forums #subscription-toggle a::before {
	content: "\f0e0";
	margin-right: 5px;
	font-family: FontAwesome;
}

#bbpress-forums #favorite-toggle a::before {
	content: "\f005";
	margin-right: 5px;
	font-family: FontAwesome;
}

/* ---------- Notices ---------- */
#bbpress-forums div.bbp-template-notice,
#bbpress-forums div.indicator-hint {
	margin: 0 0 15px;
	padding: 8px 12px;
	color: var(--td-text);
	background: var(--td-bg-inset);
	border: 1px solid var(--td-border);
	border-left: 3px solid var(--td-muted-2);
	border-radius: 0;
}

#bbpress-forums div.bbp-template-notice.info {
	border-left-color: var(--td-accent);
}

#bbpress-forums div.bbp-template-notice.error,
#bbpress-forums div.bbp-template-notice.warning {
	color: #f0b0a0;
	border-left-color: #d9534f;
}

#bbpress-forums div.bbp-template-notice ul,
#bbpress-forums div.bbp-template-notice p {
	margin: 0;
	padding: 0;
	font-size: 13px;
}

#bbpress-forums div.bbp-template-notice li {
	list-style: none;
}

/* ---------- Topic info line (old description, views) ---------- */
.td-forum-topic-info {
	margin: 0 0 12px;
	font-size: 13px;
	color: var(--td-muted);
}

.td-forum-topic-info__desc {
	margin: 0 0 4px;
	font-style: italic;
	color: #b5b7b9;
}

.td-forum-topic-info__views .fa {
	margin-right: 3px;
}

/* ---------- Lists: forums, topics, replies ---------- */
#bbpress-forums ul.bbp-lead-topic,
#bbpress-forums ul.bbp-topics,
#bbpress-forums ul.bbp-forums,
#bbpress-forums ul.bbp-replies,
#bbpress-forums ul.bbp-search-results {
	margin: 0 0 15px;
	font-size: 14px;
	background: var(--td-bg-card);
	border: 1px solid var(--td-border);
}

#bbpress-forums li.bbp-header,
#bbpress-forums li.bbp-footer {
	padding: 7px 12px;
	font-size: 12px;
	font-weight: 400;
	text-transform: uppercase;
	letter-spacing: .02em;
	color: var(--td-muted);
	background: var(--td-bg-head);
	border-top: 0;
}

#bbpress-forums li.bbp-footer {
	display: none;
}

#bbpress-forums div.even,
#bbpress-forums ul.even {
	background-color: var(--td-bg-card);
}

#bbpress-forums div.odd,
#bbpress-forums ul.odd {
	background-color: #2e3232;
}

#bbpress-forums li.bbp-body ul.forum,
#bbpress-forums li.bbp-body ul.topic {
	padding: 10px 12px;
	border-top: 1px solid var(--td-border);
}

#bbpress-forums li.bbp-body ul.forum:first-child,
#bbpress-forums li.bbp-body ul.topic:first-child {
	border-top: 0;
}

#bbpress-forums li.bbp-body ul.forum:hover,
#bbpress-forums li.bbp-body ul.topic:hover {
	background-color: #313636;
}

#bbpress-forums .bbp-forum-title {
	font-size: 16px;
	font-weight: 500;
}

#bbpress-forums .bbp-forum-info .bbp-forum-content {
	margin: 2px 0 0;
	font-size: 13px;
	color: var(--td-muted);
}

#bbpress-forums .bbp-forum-content p {
	margin: 0;
}

#bbpress-forums .bbp-forums-list {
	margin: 6px 0 0;
	padding-left: 10px;
	border-left: 2px solid var(--td-border);
}

#bbpress-forums .bbp-forums-list .bbp-forum {
	font-size: 13px;
}

#bbpress-forums .bbp-forums-list .bbp-forum a {
	color: #c9975f;
}

#bbpress-forums li.bbp-forum-topic-count,
#bbpress-forums li.bbp-forum-reply-count,
#bbpress-forums li.bbp-topic-voice-count,
#bbpress-forums li.bbp-topic-reply-count {
	color: #b5b7b9;
}

#bbpress-forums li.bbp-forum-freshness,
#bbpress-forums li.bbp-topic-freshness {
	font-size: 13px;
}

#bbpress-forums li.bbp-forum-freshness > a,
#bbpress-forums li.bbp-topic-freshness > a {
	color: var(--td-muted);
}

#bbpress-forums p.bbp-topic-meta {
	margin: 3px 0 0;
	font-size: 12px;
	color: var(--td-muted);
}

#bbpress-forums p.bbp-topic-meta img.avatar {
	display: none;
}

#bbpress-forums p.bbp-topic-meta .bbp-author-name {
	color: var(--td-muted);
}

#bbpress-forums .bbp-topic-permalink {
	font-size: 15px;
}

#bbpress-forums ul.status-closed,
#bbpress-forums ul.status-closed a {
	color: inherit;
}

#bbpress-forums ul.status-closed a.bbp-topic-permalink {
	color: var(--td-accent);
}

#bbpress-forums ul.sticky,
#bbpress-forums ul.super-sticky,
#bbpress-forums .bbp-topics-front ul.super-sticky,
#bbpress-forums .bbp-topics ul.sticky {
	background-color: #33312c !important;
	font-size: inherit;
}

.td-forum-flag {
	margin-right: 4px;
	font-size: 13px;
	color: var(--td-accent-2);
}

.td-forum-flag--closed {
	color: var(--td-muted);
}

.td-forum-mobile-stats {
	display: none;
}

/* Topic mini pagination in lists */
#bbpress-forums .bbp-topic-pagination a {
	padding: 1px 5px;
	font-size: 11px;
	color: var(--td-muted);
	border: 1px solid var(--td-border);
}

/* ---------- Forum index groups ---------- */
.td-forum-group {
	margin: 0 0 20px;
}

.td-forum-group__head {
	padding: 10px 12px;
	background: #252929;
	border: 1px solid var(--td-border);
	border-bottom: 0;
	border-top: 2px solid var(--td-accent);
}

.td-forum-group__title {
	margin: 0;
	font-size: 1.15rem;
	font-weight: 500;
}

.td-forum-group__title a {
	color: #d7d9db;
}

.td-forum-group__title a:hover {
	color: var(--td-accent-2);
}

.td-forum-group__desc {
	margin-top: 3px;
	font-size: 13px;
	color: var(--td-muted);
}

.td-forum-group__desc p {
	margin: 0;
}

.td-forum-group #bbpress-forums ul.bbp-forums,
.td-forum-group ul.bbp-forums {
	margin-bottom: 0;
}

/* ---------- Messages ---------- */
#bbpress-forums div.bbp-reply-header,
#bbpress-forums div.bbp-topic-header {
	padding: 6px 12px;
	font-size: 13px;
	color: var(--td-muted);
	background-color: var(--td-bg-head);
	border-top: 1px solid var(--td-border);
}

#bbpress-forums li.bbp-body > div.bbp-reply-header:first-child {
	border-top: 0;
}

#bbpress-forums .bbp-reply-header a.bbp-reply-permalink {
	color: var(--td-muted);
}

#bbpress-forums span.bbp-admin-links {
	float: none;
	margin-left: 10px;
	color: var(--td-muted-2);
}

#bbpress-forums span.bbp-admin-links a {
	font-size: 11px;
	color: var(--td-muted);
}

#bbpress-forums span.bbp-admin-links a:hover {
	color: var(--td-accent-2);
}

#bbpress-forums li.bbp-body div.hentry {
	padding: 0;
}

#bbpress-forums div.bbp-reply-author,
#bbpress-forums div.bbp-topic-author {
	width: 130px;
	padding: 12px 8px;
}

#bbpress-forums div.bbp-reply-author img.avatar,
#bbpress-forums div.bbp-topic-author img.avatar {
	width: 64px;
	height: 64px;
	margin: 0 auto 6px;
	object-fit: cover;
	border: 1px solid var(--td-border);
}

#bbpress-forums div.bbp-reply-author .bbp-author-name,
#bbpress-forums div.bbp-topic-author .bbp-author-name {
	margin: 0;
	font-weight: 600;
	color: #d7d9db;
	overflow-wrap: anywhere;
}

#bbpress-forums div.bbp-reply-author a.bbp-author-link .bbp-author-name {
	color: var(--td-accent);
}

#bbpress-forums div.bbp-reply-author .bbp-author-role,
#bbpress-forums div.bbp-topic-author .bbp-author-role {
	margin-top: 2px;
	font-size: 11px;
	color: var(--td-muted);
}

#bbpress-forums div.bbp-reply-content,
#bbpress-forums div.bbp-topic-content {
	min-height: 90px;
	margin-left: 146px;
	padding: 12px 15px 14px 0;
	font-size: 15px;
	line-height: 1.6;
	color: #c3c5c7;
	overflow-wrap: break-word;
}

#bbpress-forums div.bbp-reply-content p,
#bbpress-forums div.bbp-topic-content p {
	margin: 0 0 10px;
}

#bbpress-forums div.bbp-reply-content > :last-child {
	margin-bottom: 0;
}

#bbpress-forums div.bbp-topic-content a,
#bbpress-forums div.bbp-reply-content a {
	text-decoration: none;
	overflow-wrap: anywhere;
}

#bbpress-forums div.bbp-reply-content blockquote {
	margin: 0 0 10px;
	padding: 8px 12px;
	font-style: normal;
	color: var(--td-text);
	background: var(--td-bg-inset);
	border-left: 2px solid var(--td-accent);
}

#bbpress-forums div.bbp-reply-content blockquote .title_quote {
	margin: 0 0 4px;
	font-size: 12px;
	color: var(--td-muted);
}

#bbpress-forums div.bbp-reply-content details {
	margin: 0 0 10px;
	background: var(--td-bg-inset);
	border: 1px solid var(--td-border);
}

#bbpress-forums div.bbp-reply-content summary {
	padding: 6px 12px;
	cursor: pointer;
	color: var(--td-accent);
}

#bbpress-forums div.bbp-reply-content details > :not(summary) {
	padding: 0 12px 10px;
}

#bbpress-forums div.bbp-topic-content code,
#bbpress-forums div.bbp-reply-content code,
#bbpress-forums div.bbp-topic-content pre,
#bbpress-forums div.bbp-reply-content pre {
	color: #d7d9db;
	background-color: var(--td-bg-inset);
	border: 1px solid var(--td-border);
}

#bbpress-forums div.bbp-reply-content pre {
	white-space: pre-wrap;
	overflow-wrap: anywhere;
}

#bbpress-forums div.bbp-reply-content img {
	max-width: 100%;
	height: auto;
}

#bbpress-forums div.bbp-reply-content img.td-smiley {
	vertical-align: middle;
}

#bbpress-forums .td-forum-attach {
	display: inline-block;
	padding: 4px 10px;
	font-size: 13px;
	color: var(--td-muted);
	background: var(--td-bg-inset);
	border: 1px dashed var(--td-border);
}

#bbpress-forums .td-forum-attach::before {
	content: "\f0c6";
	margin-right: 6px;
	font-family: FontAwesome;
}

#bbpress-forums div.bbp-reply-content ul li,
#bbpress-forums div.bbp-reply-content ol li {
	list-style-position: outside;
}

#bbpress-forums div.bbp-reply-content ul,
#bbpress-forums div.bbp-reply-content ol {
	margin: 0 0 10px 20px;
}

/* ---------- Pagination ---------- */
#bbpress-forums .bbp-pagination {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 6px;
	float: none;
	margin: 0 0 12px;
	font-size: 13px;
	color: var(--td-muted);
}

#bbpress-forums .bbp-pagination-count,
#bbpress-forums .bbp-pagination-links {
	float: none;
}

#bbpress-forums .bbp-pagination-links {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}

#bbpress-forums .bbp-pagination-links a,
#bbpress-forums .bbp-pagination-links span.current,
#bbpress-forums .bbp-pagination-links span.dots {
	float: none;
	min-width: 32px;
	margin: 0;
	padding: 4px 8px;
	font-size: 13px;
	line-height: 20px;
	text-align: center;
	color: var(--td-text);
	background: var(--td-bg-card);
	border: 1px solid var(--td-border);
	opacity: 1;
}

#bbpress-forums .bbp-pagination-links a:hover {
	color: #fff;
	background: var(--td-bg-head);
	border-color: var(--td-bg-head);
}

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

#bbpress-forums .bbp-pagination-links span.dots {
	border-color: transparent;
	background: transparent;
}

/* ---------- Forms ---------- */
#bbpress-forums fieldset.bbp-form {
	margin: 0 0 12px;
	padding: 12px 15px;
	background: var(--td-bg-inset);
	border: 1px solid var(--td-border);
}

#bbpress-forums fieldset.bbp-form legend {
	padding: 0 6px;
	font-size: 16px;
	color: #d7d9db;
}

#bbpress-forums fieldset.bbp-form fieldset.bbp-form {
	padding: 0;
	background: none;
	border: 0;
}

#bbpress-forums fieldset.bbp-form label {
	margin-bottom: 4px;
	font-size: 13px;
	color: var(--td-muted);
}

#bbpress-forums input[type="text"],
#bbpress-forums input[type="search"],
#bbpress-forums input[type="password"],
#bbpress-forums input[type="email"],
#bbpress-forums input[type="url"],
#bbpress-forums select,
#bbpress-forums textarea {
	max-width: 100%;
	padding: 6px 10px;
	color: #d7d9db;
	background: #181b1b;
	border: 1px solid var(--td-border);
	border-radius: 0;
	box-shadow: none;
}

#bbpress-forums fieldset.bbp-form input[type="text"],
#bbpress-forums fieldset.bbp-form select {
	height: auto;
	min-height: 36px;
}

#bbpress-forums #bbp_topic_title,
#bbpress-forums textarea.bbp-the-content,
#bbpress-forums textarea#bbp_reply_content,
#bbpress-forums textarea#bbp_topic_content {
	width: 100%;
}

#bbpress-forums input:focus,
#bbpress-forums select:focus,
#bbpress-forums textarea:focus {
	outline: none;
	border-color: var(--td-accent);
}

#bbpress-forums div.bbp-the-content-wrapper textarea.bbp-the-content {
	min-height: 180px;
	padding: 10px;
	font-size: 15px;
	line-height: 1.5;
}

#bbpress-forums div.wp-editor-container {
	border: 1px solid var(--td-border);
}

#bbpress-forums div.bbp-the-content-wrapper div.quicktags-toolbar {
	padding: 4px;
	background: var(--td-bg-head);
	border: 0;
	border-bottom: 1px solid var(--td-border);
}

#bbpress-forums div.bbp-the-content-wrapper input[type="button"] {
	margin: 2px;
	padding: 4px 8px;
	font-size: 12px;
	line-height: 1.2;
	color: var(--td-text);
	background: var(--td-bg-card);
	border: 1px solid var(--td-border);
	border-radius: 0;
}

#bbpress-forums div.bbp-the-content-wrapper input[type="button"]:hover {
	color: #fff;
	background: var(--td-accent);
	border-color: var(--td-accent);
}

#bbpress-forums div.bbp-submit-wrapper {
	float: none;
	margin-top: 10px;
	text-align: right;
}

#bbpress-forums button.button,
#bbpress-forums .bbp-submit-wrapper button,
#bbpress-forums #bbp-search-form #bbp_search_submit {
	display: inline-block;
	padding: 7px 18px;
	font-size: 14px;
	line-height: 20px;
	color: #fff;
	text-transform: uppercase;
	cursor: pointer;
	background: var(--td-accent);
	border: 1px solid transparent;
	border-radius: 0;
}

#bbpress-forums button.button:hover,
#bbpress-forums .bbp-submit-wrapper button:hover,
#bbpress-forums #bbp-search-form #bbp_search_submit:hover {
	background: var(--td-accent-2);
}

#bbpress-forums .bbp-form .form-allowed-tags,
#bbpress-forums .bbp-form p.form-allowed-tags code {
	display: none;
}

.td-forum-login {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 15px;
}

#bbpress-forums .td-forum-login .btn-primary,
#bbpress-forums .td-forum-login .btn-primary:hover {
	color: #fff;
}

#bbpress-forums .td-forum-login .btn-secondary {
	color: var(--td-text);
}

.td-forum-login .btn .fa {
	margin-right: 4px;
}

/* ---------- Profiles ---------- */
#bbpress-forums #bbp-single-user-details #bbp-user-navigation li.current a {
	color: #fff;
	background: var(--td-bg-head);
	opacity: 1;
}

#bbpress-forums #bbp-your-profile fieldset input,
#bbpress-forums #bbp-your-profile fieldset textarea,
#bbpress-forums #bbp-your-profile fieldset select {
	color: #d7d9db;
	background: #181b1b;
	border-color: var(--td-border);
}

#bbpress-forums #bbp-your-profile fieldset p.description {
	color: var(--td-muted);
	background: var(--td-bg-inset);
	border-color: var(--td-border);
}

/* ---------- Phones and small tablets ---------- */
@media (max-width: 767px) {
	.td-forum .td-forum__body {
		padding: 10px;
	}

	#bbpress-forums li.bbp-header .forum-titles li:not(:first-child),
	#bbpress-forums li.bbp-forum-topic-count,
	#bbpress-forums li.bbp-forum-reply-count,
	#bbpress-forums li.bbp-topic-voice-count,
	#bbpress-forums li.bbp-topic-reply-count {
		display: none;
	}

	#bbpress-forums li.bbp-forum-info,
	#bbpress-forums li.bbp-topic-title,
	#bbpress-forums li.bbp-header li.bbp-forum-info,
	#bbpress-forums li.bbp-header li.bbp-topic-title {
		float: none;
		width: 100%;
	}

	#bbpress-forums li.bbp-forum-freshness,
	#bbpress-forums li.bbp-topic-freshness {
		float: none;
		width: 100%;
		margin-top: 4px;
		font-size: 12px;
		text-align: left;
	}

	#bbpress-forums li.bbp-forum-freshness p.bbp-topic-meta,
	#bbpress-forums li.bbp-topic-freshness p.bbp-topic-meta {
		display: inline;
		margin-left: 4px;
	}

	.td-forum-mobile-stats {
		display: inline;
		margin-left: 6px;
		white-space: nowrap;
	}

	#bbpress-forums div.bbp-reply-author,
	#bbpress-forums div.bbp-topic-author {
		display: flex;
		align-items: center;
		flex-wrap: wrap;
		gap: 0 8px;
		float: none;
		width: auto;
		padding: 10px 12px 0;
		text-align: left;
	}

	#bbpress-forums div.bbp-reply-author img.avatar,
	#bbpress-forums div.bbp-topic-author img.avatar {
		width: 32px;
		height: 32px;
		margin: 0;
	}

	#bbpress-forums div.bbp-reply-author .bbp-author-role {
		margin: 0;
	}

	#bbpress-forums div.bbp-reply-content,
	#bbpress-forums div.bbp-topic-content {
		min-height: 0;
		margin-left: 0;
		padding: 8px 12px 12px;
		font-size: 15px;
	}

	#bbpress-forums li.bbp-header div.bbp-reply-author,
	#bbpress-forums li.bbp-header div.bbp-reply-content {
		display: none;
	}

	#bbpress-forums fieldset.bbp-form {
		padding: 10px;
	}

	#bbpress-forums .bbp-pagination {
		flex-direction: column;
		align-items: flex-start;
	}
}
