/* ============================================================
   RTA bbPress styling. Scoped to #bbpress-forums so it only
   affects the community forums. Uses the brand tokens defined
   in style.css (:root). Fonts: Fraunces + General Sans.
   ============================================================ */

#bbpress-forums{
  font-family:'General Sans',system-ui,sans-serif;
  color:var(--ink);
  margin-top:.5rem;
  clear:both;
}
#bbpress-forums a{color:var(--plum);text-decoration:none}
#bbpress-forums a:hover{color:var(--wheat)}
#bbpress-forums div.even,#bbpress-forums div.odd,
#bbpress-forums ul.even,#bbpress-forums ul.odd,
#bbpress-forums li.even,#bbpress-forums li.odd{background:none !important}

/* ---- breadcrumb + search ---- */
#bbpress-forums .bbp-breadcrumb,div.bbp-breadcrumb{
  font-size:.78rem;letter-spacing:.05em;color:var(--soft);margin:0 0 1.3rem;padding:0;
}
#bbpress-forums .bbp-breadcrumb a{color:var(--soft)}
#bbpress-forums .bbp-search-form{float:none;margin:0 0 1.6rem;max-width:340px;display:flex;gap:.5rem}
#bbpress-forums #bbp_search{flex:1;padding:.6rem .8rem;border:1.5px solid var(--line);background:#fff;font:inherit}

/* ---- buttons (search, submit, moderation) ---- */
#bbpress-forums #bbp_search_submit,
#bbpress-forums button,
#bbpress-forums a.button,
#bbpress-forums input[type="submit"]{
  display:inline-block;background:var(--ink);color:var(--paper) !important;border:2px solid var(--ink);
  font-family:'General Sans',sans-serif;font-weight:600;font-size:.82rem;letter-spacing:.02em;
  padding:.6rem 1.3rem .5rem;border-radius:22px 22px 7px 7px;cursor:pointer;
  transition:all .2s;text-decoration:none;line-height:1.2;
}
#bbpress-forums #bbp_search_submit:hover,
#bbpress-forums button:hover,
#bbpress-forums a.button:hover,
#bbpress-forums input[type="submit"]:hover{
  background:var(--wheat);color:var(--ink) !important;border-color:var(--wheat);
}
#bbpress-forums .bbp-topic-buttons a,#bbpress-forums .bbp-reply-buttons a{
  font-size:.7rem;letter-spacing:.06em;text-transform:uppercase;
}

/* ---- reset the default list chrome ---- */
#bbpress-forums ul.bbp-forums,
#bbpress-forums ul.bbp-topics,
#bbpress-forums ul.bbp-replies,
#bbpress-forums ul.bbp-topics-front{
  border:0 !important;background:none !important;margin:0 0 2rem;font-size:1rem;
}
#bbpress-forums li{border:0;background:none}

/* column-label header row */
#bbpress-forums ul.forum-titles{
  background:none !important;border:0 !important;border-bottom:2px solid var(--ink) !important;
  padding:0 1rem .5rem;margin:0 0 .5rem;display:flex;
}
#bbpress-forums ul.forum-titles li{
  font-size:.68rem;letter-spacing:.16em;text-transform:uppercase;color:var(--soft);font-weight:700;
}

/* each forum / topic row becomes a card */
#bbpress-forums li.bbp-body ul.forum,
#bbpress-forums li.bbp-body ul.topic{
  display:flex;align-items:center;gap:1rem;list-style:none;
  padding:1.1rem 1rem;margin:0 0 .7rem;
  background:var(--paper2) !important;border:1.5px solid var(--line) !important;
  box-shadow:3px 3px 0 rgba(36,16,25,.06);transition:transform .18s,box-shadow .18s,border-color .18s;
}
#bbpress-forums li.bbp-body ul.forum:hover,
#bbpress-forums li.bbp-body ul.topic:hover{
  border-color:var(--wheat) !important;box-shadow:6px 6px 0 var(--wheat);transform:translateY(-2px);
}

/* row columns */
#bbpress-forums li.bbp-forum-info,#bbpress-forums li.bbp-topic-title{flex:1 1 auto;text-align:left}
#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,
#bbpress-forums li.bbp-topic-post-count{flex:0 0 64px;text-align:center;font-weight:700;color:var(--ink)}
#bbpress-forums li.bbp-forum-freshness,#bbpress-forums li.bbp-topic-freshness{
  flex:0 0 190px;text-align:right;font-size:.82rem;color:var(--soft);
}

/* titles + descriptions */
#bbpress-forums .bbp-forum-title,
#bbpress-forums .bbp-topic-permalink{
  font-family:'Clash Display','General Sans',sans-serif;font-weight:600;font-size:1.3rem;color:var(--ink);line-height:1.2;
}
#bbpress-forums .bbp-forum-title:hover,#bbpress-forums .bbp-topic-permalink:hover{color:var(--plum)}
#bbpress-forums .bbp-forum-content{font-size:.92rem;color:var(--soft);margin-top:.35rem;max-width:62ch}
#bbpress-forums .bbp-author-avatar img,#bbpress-forums img.avatar{border-radius:50%;vertical-align:middle;margin-right:.3rem}
#bbpress-forums .bbp-author-name{color:var(--soft)}

/* ---- single topic: replies as cards ---- */
#bbpress-forums div.bbp-topic-header,
#bbpress-forums div.bbp-reply-header{
  background:var(--paper2) !important;border:1.5px solid var(--line);border-bottom:0;
  padding:.6rem 1rem;font-size:.8rem;color:var(--soft);
}
#bbpress-forums li.bbp-body div.reply,
#bbpress-forums div.bbp-reply-content,
#bbpress-forums div.bbp-topic-content{
  background:#fff !important;border:1.5px solid var(--line);padding:1.2rem 1.4rem;margin:0 0 1.4rem;
}
#bbpress-forums div.bbp-reply-content,#bbpress-forums div.bbp-topic-content{line-height:1.65}
#bbpress-forums div.bbp-reply-author,#bbpress-forums div.bbp-topic-author{
  padding:1rem;text-align:center;
}
#bbpress-forums div.bbp-reply-author img.avatar,#bbpress-forums div.bbp-topic-author img.avatar{
  margin:0 auto .4rem;display:block;border-radius:50%;
}

/* ---- notices ---- */
#bbpress-forums div.bbp-template-notice{
  border:0;border-left:4px solid var(--wheat);background:var(--paper2);color:var(--ink);
  padding:.9rem 1.1rem;margin:0 0 1.4rem;border-radius:0;
}
#bbpress-forums div.bbp-template-notice.error,
#bbpress-forums div.bbp-template-notice.warning{border-left-color:var(--plum)}

/* ---- new topic / reply forms ---- */
#bbpress-forums fieldset.bbp-form{
  border:1.5px solid var(--line);background:var(--paper2);padding:1.5rem 1.6rem;margin-top:2rem;
}
#bbpress-forums fieldset.bbp-form legend{
  font-family:'Clash Display','General Sans',sans-serif;font-size:1.3rem;font-weight:600;padding:0 .5rem;color:var(--ink);
}
#bbpress-forums fieldset.bbp-form label{font-weight:600;font-size:.9rem}
#bbpress-forums input#bbp_topic_title,
#bbpress-forums input.text,
#bbpress-forums select,
#bbpress-forums textarea,
#bbpress-forums div.bbp-the-content-wrapper textarea{
  width:100%;padding:.7rem .8rem;border:1.5px solid var(--line);background:#fff;font:inherit;margin:.3rem 0 .8rem;
}
#bbpress-forums .quicktags-toolbar,#bbpress-forums div.bbp-the-content-wrapper{
  border-color:var(--line) !important;
}

/* ---- pagination ---- */
#bbpress-forums .bbp-pagination{margin-top:1.2rem;clear:both}
#bbpress-forums .bbp-pagination-links a.page-numbers,
#bbpress-forums .bbp-pagination-links span.page-numbers{
  display:inline-block;padding:.4rem .75rem;border:1.5px solid var(--line);margin:0 .2rem 0 0;color:var(--ink);
}
#bbpress-forums .bbp-pagination-links span.current{background:var(--ink);color:var(--paper);border-color:var(--ink)}

@media (max-width:680px){
  #bbpress-forums ul.forum-titles{display:none}
  #bbpress-forums li.bbp-body ul.forum,#bbpress-forums li.bbp-body ul.topic{flex-wrap:wrap;gap:.4rem}
  #bbpress-forums li.bbp-forum-info,#bbpress-forums li.bbp-topic-title{flex:1 1 100%}
  #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,
  #bbpress-forums li.bbp-forum-freshness,#bbpress-forums li.bbp-topic-freshness{
    flex:0 0 auto;text-align:left;font-size:.8rem;
  }
}
