/* ============================================================
   World Wide Wo — bbPress forum styling
   Loaded only on forum pages (see wwo_is_bbpress_page()).
   Every colour/font here comes from the tokens in wwo-main.css.
   ============================================================ */

/* ---------- Shell ---------- */

body.wwo-theme #bbpress-forums {
  font-family: var(--wwo-font-body);
  font-size: 14px;
  color: var(--wwo-grey);
  clear: both;
  overflow: hidden;
  margin-bottom: 20px;
}

body.wwo-theme #bbpress-forums a { color: var(--wwo-gold); }
body.wwo-theme #bbpress-forums a:hover { color: var(--wwo-gold-soft); }

/* bbPress ships a light-grey default for these; override at the same
   specificity bbPress uses so we win without !important. */
body.wwo-theme #bbpress-forums div.bbp-the-content-wrapper,
body.wwo-theme #bbpress-forums div.bbp-template-notice,
body.wwo-theme #bbpress-forums div.bbp-forum-content,
body.wwo-theme #bbpress-forums div.bbp-topic-content,
body.wwo-theme #bbpress-forums div.bbp-reply-content {
  color: var(--wwo-grey);
}

/* Forum content headings pick up the display serif like the rest of the site. */
body.wwo-theme #bbpress-forums h1,
body.wwo-theme #bbpress-forums h2,
body.wwo-theme #bbpress-forums h3 {
  font-family: var(--wwo-font-display);
  color: var(--wwo-white);
}

/* ---------- Breadcrumb ---------- */

body.wwo-theme .bbp-breadcrumb {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wwo-grey-2);
  padding: 0 0 18px;
  margin: 0;
  float: none;
}

body.wwo-theme .bbp-breadcrumb p { margin: 0; }
body.wwo-theme .bbp-breadcrumb a { color: var(--wwo-grey); }
body.wwo-theme .bbp-breadcrumb a:hover { color: var(--wwo-gold); }
body.wwo-theme .bbp-breadcrumb .bbp-breadcrumb-sep { color: var(--wwo-gold-dim); padding: 0 6px; }
body.wwo-theme .bbp-breadcrumb .bbp-breadcrumb-current { color: var(--wwo-white); }

/* ---------- List containers (forums, topics, replies) ---------- */

body.wwo-theme #bbpress-forums ul.bbp-forums,
body.wwo-theme #bbpress-forums ul.bbp-topics,
body.wwo-theme #bbpress-forums ul.bbp-replies,
body.wwo-theme #bbpress-forums ul.bbp-lead-topic,
body.wwo-theme #bbpress-forums ul.bbp-search-results {
  background: linear-gradient(180deg, var(--wwo-card-2) 0%, var(--wwo-card) 100%);
  border: 1px solid var(--wwo-line);
  border-radius: var(--wwo-radius);
  overflow: hidden;
  margin-bottom: 28px;
  font-size: 14px;
}

body.wwo-theme #bbpress-forums ul { list-style: none; margin: 0; padding: 0; }

body.wwo-theme #bbpress-forums li { margin: 0; }

/* Header row — the gold-lettered bar above each list. */
body.wwo-theme #bbpress-forums li.bbp-header {
  background: var(--wwo-black-2);
  border-bottom: 1px solid var(--wwo-line);
  color: var(--wwo-gold);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 14px 20px;
}

body.wwo-theme #bbpress-forums li.bbp-header a { color: var(--wwo-gold); }

body.wwo-theme #bbpress-forums li.bbp-footer {
  background: var(--wwo-black-2);
  border-top: 1px solid var(--wwo-line);
  color: var(--wwo-grey-2);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 12px 20px;
}

body.wwo-theme #bbpress-forums li.bbp-body { background: transparent; }

body.wwo-theme #bbpress-forums li.bbp-body ul.forum,
body.wwo-theme #bbpress-forums li.bbp-body ul.topic {
  border-top: 1px solid var(--wwo-line-2);
  padding: 18px 20px;
  transition: background 0.25s ease;
}

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

body.wwo-theme #bbpress-forums li.bbp-body ul.forum:hover,
body.wwo-theme #bbpress-forums li.bbp-body ul.topic:hover {
  background: rgba(217, 164, 65, 0.04);
}

/* bbPress alternates .even/.odd with grey backgrounds — flatten them. */
body.wwo-theme #bbpress-forums li.bbp-body ul.even,
body.wwo-theme #bbpress-forums li.bbp-body ul.odd,
body.wwo-theme #bbpress-forums div.even,
body.wwo-theme #bbpress-forums div.odd {
  background: transparent;
}

/* ---------- Column widths (bbPress's own layout classes) ---------- */

body.wwo-theme #bbpress-forums li.bbp-forum-info,
body.wwo-theme #bbpress-forums li.bbp-topic-title {
  float: left;
  text-align: left;
  width: 55%;
}

body.wwo-theme #bbpress-forums li.bbp-forum-topic-count,
body.wwo-theme #bbpress-forums li.bbp-topic-voice-count,
body.wwo-theme #bbpress-forums li.bbp-forum-reply-count,
body.wwo-theme #bbpress-forums li.bbp-topic-reply-count {
  float: left;
  text-align: center;
  width: 10%;
  color: var(--wwo-grey);
}

body.wwo-theme #bbpress-forums li.bbp-forum-freshness,
body.wwo-theme #bbpress-forums li.bbp-topic-freshness {
  float: left;
  text-align: center;
  width: 25%;
  font-size: 12px;
  color: var(--wwo-grey-2);
}

/* ---------- Forum + topic titles ---------- */

body.wwo-theme #bbpress-forums .bbp-forum-title,
body.wwo-theme #bbpress-forums .bbp-topic-permalink {
  font-family: var(--wwo-font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--wwo-white);
  letter-spacing: 0.01em;
  line-height: 1.4;
}

body.wwo-theme #bbpress-forums .bbp-forum-title:hover,
body.wwo-theme #bbpress-forums .bbp-topic-permalink:hover {
  color: var(--wwo-gold);
}

body.wwo-theme #bbpress-forums .bbp-forum-content,
body.wwo-theme #bbpress-forums p.bbp-topic-meta {
  font-size: 12.5px;
  color: var(--wwo-grey-2);
  margin: 6px 0 0;
  line-height: 1.6;
}

body.wwo-theme #bbpress-forums p.bbp-topic-meta img.avatar,
body.wwo-theme #bbpress-forums .bbp-forum-freshness img.avatar,
body.wwo-theme #bbpress-forums .bbp-topic-freshness img.avatar {
  border: 1px solid var(--wwo-line);
  border-radius: 50%;
  margin-bottom: -6px;
  vertical-align: middle;
}

/* Sticky topics get a gold spine so they read as pinned, not just bold. */
body.wwo-theme #bbpress-forums li.bbp-body ul.topic.sticky,
body.wwo-theme #bbpress-forums li.bbp-body ul.topic.super-sticky {
  background: rgba(217, 164, 65, 0.06);
  border-left: 3px solid var(--wwo-gold);
}

body.wwo-theme #bbpress-forums ul.topic.super-sticky .bbp-topic-permalink::before,
body.wwo-theme #bbpress-forums ul.topic.sticky .bbp-topic-permalink::before {
  content: "\f08d"; /* Font Awesome thumbtack — falls back to nothing if FA is absent. */
  font-family: "Font Awesome 5 Free", "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--wwo-gold);
  font-size: 11px;
  margin-right: 8px;
}

/* Closed topics read as muted. */
body.wwo-theme #bbpress-forums ul.topic.status-closed .bbp-topic-permalink {
  color: var(--wwo-grey-2);
}

/* Forum category headers (a forum that only contains sub-forums). */
body.wwo-theme #bbpress-forums li.bbp-body ul.forum.status-category {
  background: var(--wwo-black-3);
}

body.wwo-theme #bbpress-forums .bbp-forums-list {
  border-left: 2px solid var(--wwo-line);
  margin: 10px 0 0;
  padding-left: 12px;
  font-size: 12.5px;
}

body.wwo-theme #bbpress-forums .bbp-forums-list li {
  display: inline-block;
  margin-right: 14px;
  color: var(--wwo-grey-2);
}

/* ---------- Single topic: replies ---------- */

body.wwo-theme #bbpress-forums div.bbp-reply-header,
body.wwo-theme #bbpress-forums div.bbp-topic-header,
body.wwo-theme #bbpress-forums div.bbp-reply-header:first-child {
  background: var(--wwo-black-2);
  border-bottom: 1px solid var(--wwo-line-2);
  border-top: 1px solid var(--wwo-line-2);
  font-size: 12px;
  color: var(--wwo-grey-2);
  padding: 12px 20px;
}

body.wwo-theme #bbpress-forums div.bbp-reply-content,
body.wwo-theme #bbpress-forums div.bbp-topic-content {
  padding: 20px 20px 20px 0;
  margin-left: 168px;
  line-height: 1.75;
}

body.wwo-theme #bbpress-forums div.bbp-reply-content p,
body.wwo-theme #bbpress-forums div.bbp-topic-content p {
  margin: 0 0 1em;
}

body.wwo-theme #bbpress-forums div.bbp-reply-content blockquote,
body.wwo-theme #bbpress-forums div.bbp-topic-content blockquote {
  border-left: 3px solid var(--wwo-gold);
  background: rgba(217, 164, 65, 0.05);
  color: var(--wwo-grey);
  margin: 0 0 1em;
  padding: 12px 18px;
}

body.wwo-theme #bbpress-forums div.bbp-reply-content code,
body.wwo-theme #bbpress-forums div.bbp-topic-content code,
body.wwo-theme #bbpress-forums div.bbp-reply-content pre {
  background: #1c1c1c;
  border: 1px solid var(--wwo-line-2);
  border-radius: var(--wwo-radius-sm);
  color: var(--wwo-gold-soft);
  font-size: 13px;
  padding: 2px 6px;
}

body.wwo-theme #bbpress-forums div.bbp-reply-content pre {
  overflow-x: auto;
  padding: 14px 16px;
}

/* ---------- Author column ---------- */

body.wwo-theme #bbpress-forums div.bbp-reply-author,
body.wwo-theme #bbpress-forums div.bbp-topic-author {
  float: left;
  text-align: center;
  width: 148px;
  padding: 20px 10px;
}

body.wwo-theme #bbpress-forums div.bbp-reply-author img.avatar,
body.wwo-theme #bbpress-forums div.bbp-topic-author img.avatar {
  border: 2px solid var(--wwo-gold-dim);
  border-radius: 50%;
  float: none;
  margin: 0 auto 10px;
  display: block;
  transition: border-color 0.25s ease;
}

body.wwo-theme #bbpress-forums div.bbp-reply-author:hover img.avatar,
body.wwo-theme #bbpress-forums div.bbp-topic-author:hover img.avatar {
  border-color: var(--wwo-gold);
}

body.wwo-theme #bbpress-forums div.bbp-reply-author .bbp-author-name,
body.wwo-theme #bbpress-forums div.bbp-topic-author .bbp-author-name {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--wwo-white);
  margin-bottom: 4px;
  word-break: break-word;
}

body.wwo-theme #bbpress-forums div.bbp-author-role {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wwo-gold);
  background: rgba(217, 164, 65, 0.1);
  border: 1px solid var(--wwo-line);
  border-radius: 999px;
  display: inline-block;
  padding: 3px 10px;
}

body.wwo-theme #bbpress-forums li.bbp-header div.bbp-reply-author,
body.wwo-theme #bbpress-forums li.bbp-header div.bbp-topic-author {
  float: left;
  width: 148px;
  padding: 0 10px;
  text-align: center;
}

body.wwo-theme #bbpress-forums li.bbp-header div.bbp-reply-content,
body.wwo-theme #bbpress-forums li.bbp-header div.bbp-topic-content {
  margin-left: 168px;
  padding: 0;
  text-align: left;
}

/* Reply meta links (#123, Reply, Edit) sit at the right of the header bar. */
body.wwo-theme #bbpress-forums div.bbp-meta {
  float: right;
  font-size: 11px;
  letter-spacing: 0.06em;
}

body.wwo-theme #bbpress-forums span.bbp-admin-links a {
  color: var(--wwo-grey-2);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

body.wwo-theme #bbpress-forums span.bbp-admin-links a:hover { color: var(--wwo-gold); }
body.wwo-theme #bbpress-forums span.bbp-admin-links { color: var(--wwo-line); }

/* ---------- Forms ---------- */

body.wwo-theme #bbpress-forums fieldset.bbp-form {
  background: linear-gradient(180deg, var(--wwo-card-2) 0%, var(--wwo-card) 100%);
  border: 1px solid var(--wwo-line);
  border-radius: var(--wwo-radius);
  padding: 26px 28px 30px;
  margin: 28px 0;
  clear: both;
}

body.wwo-theme #bbpress-forums fieldset.bbp-form legend {
  font-family: var(--wwo-font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--wwo-white);
  padding: 0 12px;
  margin-left: -12px;
}

body.wwo-theme #bbpress-forums fieldset.bbp-form label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--wwo-grey);
  margin-bottom: 8px;
}

body.wwo-theme #bbpress-forums fieldset.bbp-form p { margin: 0 0 18px; }

body.wwo-theme #bbpress-forums input[type="text"],
body.wwo-theme #bbpress-forums input[type="password"],
body.wwo-theme #bbpress-forums input[type="email"],
body.wwo-theme #bbpress-forums input[type="url"],
body.wwo-theme #bbpress-forums input[type="search"],
body.wwo-theme #bbpress-forums select,
body.wwo-theme #bbpress-forums textarea {
  width: 100%;
  box-sizing: border-box;
  background: #1c1c1c;
  border: 1px solid var(--wwo-line-2);
  border-radius: var(--wwo-radius-sm);
  color: var(--wwo-white);
  font-family: var(--wwo-font-body);
  font-size: 14px;
  padding: 13px 16px;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

body.wwo-theme #bbpress-forums input[type="text"]:focus,
body.wwo-theme #bbpress-forums input[type="password"]:focus,
body.wwo-theme #bbpress-forums input[type="email"]:focus,
body.wwo-theme #bbpress-forums input[type="url"]:focus,
body.wwo-theme #bbpress-forums input[type="search"]:focus,
body.wwo-theme #bbpress-forums select:focus,
body.wwo-theme #bbpress-forums textarea:focus {
  border-color: var(--wwo-gold);
  box-shadow: 0 0 0 3px rgba(217, 164, 65, 0.14);
}

body.wwo-theme #bbpress-forums ::placeholder { color: var(--wwo-grey-2); }

body.wwo-theme #bbpress-forums input[type="checkbox"],
body.wwo-theme #bbpress-forums input[type="radio"] {
  accent-color: var(--wwo-gold);
  width: auto;
  margin-right: 6px;
}

/* Checkbox/radio labels shouldn't be uppercase micro-caps. */
body.wwo-theme #bbpress-forums fieldset.bbp-form label[for="bbp_topic_subscription"],
body.wwo-theme #bbpress-forums fieldset.bbp-form label[for="bbp_reply_subscription"],
body.wwo-theme #bbpress-forums fieldset.bbp-form label[for="bbp_log_topic_edit"],
body.wwo-theme #bbpress-forums fieldset.bbp-form label[for="bbp_log_reply_edit"] {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--wwo-grey);
}

/* The TinyMCE / quicktags editor bbPress drops into the reply form. */
body.wwo-theme #bbpress-forums div.bbp-the-content-wrapper {
  margin-bottom: 12px;
}

body.wwo-theme #bbpress-forums div.wp-editor-container {
  border: 1px solid var(--wwo-line-2);
  border-radius: var(--wwo-radius-sm);
  overflow: hidden;
}

body.wwo-theme #bbpress-forums div.quicktags-toolbar,
body.wwo-theme #bbpress-forums div.wp-editor-tools {
  background: var(--wwo-black-2);
  border-bottom: 1px solid var(--wwo-line-2);
}

body.wwo-theme #bbpress-forums div.quicktags-toolbar input.button {
  background: var(--wwo-black-3);
  border: 1px solid var(--wwo-line-2);
  color: var(--wwo-grey);
  font-size: 12px;
  padding: 4px 10px;
  text-transform: none;
  letter-spacing: 0;
}

body.wwo-theme #bbpress-forums div.quicktags-toolbar input.button:hover {
  border-color: var(--wwo-gold);
  color: var(--wwo-gold);
  transform: none;
  filter: none;
}

body.wwo-theme #bbpress-forums textarea.bbp-the-content {
  min-height: 180px;
  border-radius: 0;
  border: none;
}

/* Submit buttons — same gold gradient as the rest of the site. */
body.wwo-theme #bbpress-forums div.bbp-submit-wrapper {
  float: none;
  margin-top: 6px;
}

body.wwo-theme #bbpress-forums div.bbp-submit-wrapper button,
body.wwo-theme #bbpress-forums button.button.submit,
body.wwo-theme #bbpress-forums input[type="submit"] {
  background: linear-gradient(180deg, var(--wwo-gold-soft), var(--wwo-gold-2));
  border: none;
  border-radius: var(--wwo-radius-sm);
  color: #141005;
  font-family: var(--wwo-font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 14px 32px;
  width: auto;
  cursor: pointer;
  transition: all 0.25s ease;
}

body.wwo-theme #bbpress-forums div.bbp-submit-wrapper button:hover,
body.wwo-theme #bbpress-forums button.button.submit:hover,
body.wwo-theme #bbpress-forums input[type="submit"]:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

/* Secondary buttons (subscribe, favorite) stay outline-style. */
body.wwo-theme #bbpress-forums .bbp-topic-subscription-link,
body.wwo-theme #bbpress-forums .bbp-topic-favorite-link,
body.wwo-theme #bbpress-forums .bbp-forum-subscription-link {
  border: 1px solid var(--wwo-line);
  border-radius: 999px;
  color: var(--wwo-gold);
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 16px;
  margin-right: 8px;
}

body.wwo-theme #bbpress-forums .bbp-topic-subscription-link:hover,
body.wwo-theme #bbpress-forums .bbp-topic-favorite-link:hover,
body.wwo-theme #bbpress-forums .bbp-forum-subscription-link:hover {
  background: rgba(217, 164, 65, 0.1);
  border-color: var(--wwo-gold);
}

/* ---------- Search ---------- */

body.wwo-theme #bbpress-forums .bbp-search-form {
  margin-bottom: 22px;
}

body.wwo-theme #bbpress-forums .bbp-search-form input[type="submit"] {
  width: auto;
  margin-left: 8px;
  padding: 13px 26px;
}

body.wwo-theme #bbpress-forums .bbp-search-form input[type="text"],
body.wwo-theme #bbpress-forums .bbp-search-form input[type="search"] {
  width: auto;
  min-width: 260px;
}

/* ---------- Pagination ---------- */

body.wwo-theme #bbpress-forums div.bbp-pagination {
  padding: 14px 0;
  font-size: 12px;
  color: var(--wwo-grey-2);
}

body.wwo-theme #bbpress-forums div.bbp-pagination-count {
  float: left;
  letter-spacing: 0.06em;
}

body.wwo-theme #bbpress-forums div.bbp-pagination-links {
  float: right;
}

body.wwo-theme #bbpress-forums div.bbp-pagination-links a,
body.wwo-theme #bbpress-forums div.bbp-pagination-links span.current,
body.wwo-theme #bbpress-forums div.bbp-pagination-links span.dots {
  border: 1px solid var(--wwo-line);
  border-radius: var(--wwo-radius-sm);
  color: var(--wwo-grey);
  display: inline-block;
  font-size: 12px;
  line-height: 1;
  margin-left: 5px;
  padding: 9px 13px;
  transition: all 0.25s ease;
}

body.wwo-theme #bbpress-forums div.bbp-pagination-links a:hover {
  background: rgba(217, 164, 65, 0.1);
  border-color: var(--wwo-gold);
  color: var(--wwo-gold);
}

body.wwo-theme #bbpress-forums div.bbp-pagination-links span.current {
  background: var(--wwo-gold);
  border-color: var(--wwo-gold);
  color: #141005;
  font-weight: 600;
}

body.wwo-theme #bbpress-forums div.bbp-pagination-links span.dots {
  border-color: transparent;
}

/* ---------- Notices & errors ---------- */

body.wwo-theme #bbpress-forums div.bbp-template-notice,
body.wwo-theme #bbpress-forums div.indicator-hint {
  background: rgba(217, 164, 65, 0.07);
  border: 1px solid var(--wwo-line);
  border-radius: var(--wwo-radius-sm);
  color: var(--wwo-grey);
  font-size: 13px;
  margin: 0 0 20px;
  padding: 14px 18px;
}

body.wwo-theme #bbpress-forums div.bbp-template-notice p { margin: 0; }

body.wwo-theme #bbpress-forums div.bbp-template-notice.error,
body.wwo-theme #bbpress-forums div.bbp-template-notice.warning {
  background: rgba(224, 123, 90, 0.08);
  border-color: rgba(224, 123, 90, 0.4);
  color: #e6a08a;
}

body.wwo-theme #bbpress-forums div.bbp-template-notice.info {
  background: rgba(217, 164, 65, 0.07);
  border-color: var(--wwo-line);
}

body.wwo-theme #bbpress-forums div.indicator-hint {
  font-size: 12px;
  color: var(--wwo-grey-2);
}

/* ---------- User profile ---------- */

body.wwo-theme #bbpress-forums div.bbp-user-section,
body.wwo-theme #bbpress-forums #bbp-user-body {
  background: linear-gradient(180deg, var(--wwo-card-2) 0%, var(--wwo-card) 100%);
  border: 1px solid var(--wwo-line);
  border-radius: var(--wwo-radius);
  padding: 26px 28px;
  margin-bottom: 24px;
}

body.wwo-theme #bbpress-forums #bbp-user-navigation {
  margin-bottom: 22px;
}

body.wwo-theme #bbpress-forums #bbp-user-navigation ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.wwo-theme #bbpress-forums #bbp-user-navigation li a {
  border: 1px solid var(--wwo-line);
  border-radius: 999px;
  color: var(--wwo-grey);
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 18px;
  transition: all 0.25s ease;
}

body.wwo-theme #bbpress-forums #bbp-user-navigation li a:hover {
  border-color: var(--wwo-gold);
  color: var(--wwo-gold);
}

body.wwo-theme #bbpress-forums #bbp-user-navigation li.current a {
  background: var(--wwo-gold);
  border-color: var(--wwo-gold);
  color: #141005;
}

body.wwo-theme #bbpress-forums #bbp-user-avatar img.avatar {
  border: 2px solid var(--wwo-gold-dim);
  border-radius: 50%;
}

body.wwo-theme #bbpress-forums #bbp-single-user-details {
  width: 180px;
}

body.wwo-theme #bbpress-forums h2.entry-title {
  font-family: var(--wwo-font-display);
  color: var(--wwo-white);
  font-size: 22px;
  margin-top: 0;
}

/* ---------- Login / register widget forms ---------- */

body.wwo-theme .bbp-login-form fieldset.bbp-form,
body.wwo-theme #bbpress-forums .bbp-login-form {
  max-width: 460px;
}

body.wwo-theme .bbp-logged-in img.avatar {
  border: 2px solid var(--wwo-gold-dim);
  border-radius: 50%;
  float: left;
  margin: 0 14px 10px 0;
}

body.wwo-theme .bbp-logged-in h4 {
  font-family: var(--wwo-font-body);
  color: var(--wwo-white);
  font-size: 14px;
  margin: 0 0 4px;
}

/* ---------- Reply-to / topic tags ---------- */

body.wwo-theme #bbpress-forums .bbp-topic-tags {
  font-size: 12px;
  color: var(--wwo-grey-2);
  padding: 12px 0 0;
}

body.wwo-theme #bbpress-forums .bbp-topic-tags a {
  border: 1px solid var(--wwo-line);
  border-radius: 999px;
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.06em;
  margin: 0 4px 4px 0;
  padding: 3px 12px;
}

body.wwo-theme #bbpress-forums #bbp-reply-to-title {
  font-family: var(--wwo-font-body);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--wwo-grey-2);
}

/* ---------- Mobile ----------
   bbPress lays rows out with floated percentage columns, which collapse
   into an unreadable scroll on phones. Stack them and drop the counts. */

@media (max-width: 767px) {
  body.wwo-theme #bbpress-forums li.bbp-header {
    font-size: 10px;
    padding: 12px 16px;
  }

  body.wwo-theme #bbpress-forums li.bbp-body ul.forum,
  body.wwo-theme #bbpress-forums li.bbp-body ul.topic {
    padding: 16px;
  }

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

  /* Counts and freshness are secondary — hide the columns and their headers. */
  body.wwo-theme #bbpress-forums li.bbp-forum-topic-count,
  body.wwo-theme #bbpress-forums li.bbp-forum-reply-count,
  body.wwo-theme #bbpress-forums li.bbp-topic-voice-count,
  body.wwo-theme #bbpress-forums li.bbp-topic-reply-count,
  body.wwo-theme #bbpress-forums li.bbp-forum-freshness,
  body.wwo-theme #bbpress-forums li.bbp-topic-freshness {
    display: none;
  }

  /* Replies: author bar goes above the content instead of beside it. */
  body.wwo-theme #bbpress-forums div.bbp-reply-author,
  body.wwo-theme #bbpress-forums div.bbp-topic-author {
    float: none;
    width: 100%;
    text-align: left;
    padding: 16px 16px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
  }

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

  body.wwo-theme #bbpress-forums div.bbp-reply-author .bbp-author-name,
  body.wwo-theme #bbpress-forums div.bbp-topic-author .bbp-author-name {
    margin: 0;
  }

  body.wwo-theme #bbpress-forums div.bbp-reply-content,
  body.wwo-theme #bbpress-forums div.bbp-topic-content {
    margin-left: 0;
    padding: 14px 16px 20px;
  }

  body.wwo-theme #bbpress-forums li.bbp-header div.bbp-reply-author,
  body.wwo-theme #bbpress-forums li.bbp-header div.bbp-topic-author,
  body.wwo-theme #bbpress-forums li.bbp-header div.bbp-reply-content,
  body.wwo-theme #bbpress-forums li.bbp-header div.bbp-topic-content {
    float: none;
    width: auto;
    margin-left: 0;
    padding: 0;
  }

  body.wwo-theme #bbpress-forums fieldset.bbp-form {
    padding: 20px 16px 24px;
  }

  body.wwo-theme #bbpress-forums div.bbp-pagination-count,
  body.wwo-theme #bbpress-forums div.bbp-pagination-links {
    float: none;
    text-align: center;
    margin-bottom: 8px;
  }

  body.wwo-theme #bbpress-forums div.bbp-pagination-links a,
  body.wwo-theme #bbpress-forums div.bbp-pagination-links span.current {
    margin: 0 2px 6px;
  }

  body.wwo-theme #bbpress-forums .bbp-search-form input[type="text"],
  body.wwo-theme #bbpress-forums .bbp-search-form input[type="search"] {
    width: 100%;
    min-width: 0;
    margin-bottom: 10px;
  }

  body.wwo-theme #bbpress-forums .bbp-search-form input[type="submit"] {
    margin-left: 0;
    width: 100%;
  }

  body.wwo-theme #bbpress-forums #bbp-single-user-details {
    float: none;
    width: 100%;
    margin-bottom: 20px;
  }

  body.wwo-theme #bbpress-forums #bbp-user-body {
    margin-left: 0;
  }
}

/* ---------- Elementor wrapper ----------
   When the forum renders through a shortcode widget on an Elementor page,
   give it the same breathing room the native templates get. */

body.wwo-theme .elementor-widget-shortcode #bbpress-forums {
  margin-bottom: 0;
}
