/* cff-align: topic list row layout (replaces wei-forums float list) */
/* 桌面+手机统一 flex 行：头像+标题 | 浏览/回复/时间，行距舒展，不再用 float+% 挤 */
#bbpress-forums ul.bbp-topics {
  list-style:none;
  margin:0;
  padding:0;
  border:0!important}
#bbpress-forums li.bbp-header {
  display:none!important}
#bbpress-forums li.bbp-footer {
  display:none!important}
#bbpress-forums li.bbp-body {
  display:block!important;
  padding:0!important}
#bbpress-forums li.bbp-body>ul.topic {
  display:flex!important;
  align-items:center!important;
  gap:14px;
  overflow:hidden!important;
  background:transparent!important;
  border:0!important;
  border-top:1px solid #ebebeb!important;
  padding:26px 22px!important;
  margin:0!important;
  list-style:none!important;
  min-width:0;
  box-sizing:border-box}
#bbpress-forums li.bbp-body>ul.topic.odd,#bbpress-forums li.bbp-body>ul.topic.even {
  background:transparent!important}
#bbpress-forums li.bbp-body>ul.topic:first-of-type {
  border-top-color:transparent!important}
#bbpress-forums li.bbp-topic-title {
  float:none!important;
  flex:1 1 auto;
  min-width:0;
  width:auto!important;
  padding:0!important;
  margin:0!important;
  text-align:left!important;
  display:flex!important;
  align-items:center!important;
  gap:14px;
  white-space:nowrap!important;
  overflow:hidden!important}
#bbpress-forums p.bbp-topic-meta {
  display:none!important}
#bbpress-forums .bbp-author-avatar-topic {
  flex:0 0 40px;
  margin:0!important;
  display:block!important}
#bbpress-forums .bbp-author-avatar-topic img.avatar {
  width:40px!important;
  height:40px!important;
  border-radius:50%!important;
  display:block}
#bbpress-forums a.bbp-topic-permalink {

/* block+flex:1 会把 a 拉成通栏，wei-forums 的 a:hover border-bottom 就成整行虚线 */
flex:0 1 auto;
  min-width:0;
  display:block;
  width:fit-content;
  max-width:100%;
  color:#0a0a0a!important;
  font-size:15px!important;
  font-weight:400!important;
  line-height:1.45!important;
  text-decoration:none!important;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  border-bottom:1px dotted transparent}
#bbpress-forums a.bbp-topic-permalink:hover,#bbpress-forums a.bbp-topic-permalink:focus {
  border-bottom-color:#a2a2a2!important;
  text-decoration:none!important}
#bbpress-forums .bbp-topic-freshness a:hover,#bbpress-forums .bbp-topic-freshness a:focus {
  border-bottom:0!important}
#bbpress-forums li.bbp-topic-reply-count {
  display:none!important}
#bbpress-forums li.bbp-topic-voice-count,#bbpress-forums li.bbp-topic-freshness {
  float:none!important;
  flex:0 0 auto;
  padding:0!important;
  margin:0!important;
  display:flex!important;
  align-items:center!important;
  color:#707070!important;
  font-size:12px!important;
  line-height:1.4!important;
  white-space:nowrap;
  text-align:right!important}
/* 右栏：时间 · 浏览；order 把 freshness 放到 voice 前 */
#bbpress-forums li.bbp-topic-freshness {
  order:2;
  min-width:4.5em;
  gap:0}
#bbpress-forums li.bbp-topic-voice-count {
  order:3;
  min-width:6.5em;
  padding-left:12px!important}
#bbpress-forums .bbp-topic-freshness a {
  color:#707070!important;
  font-size:12px!important;
  text-decoration:none!important}
#bbpress-forums .bbp-topic-freshness .bbp-topic-meta,#bbpress-forums .bbp-topic-freshness .bbp-author-avatar,#bbpress-forums .bbp-topic-freshness .bbp-author-name {
  display:none!important}
@media (max-width:640px) {
  .entry-content:has(#bbpress-forums) {
  padding-left:14px!important;
  padding-right:14px!important}
.wp-block-group.is-style-shadow-light:has(> .bbpress-wrapper),.wp-block-group.is-style-shadow-light:has(> #bbpress-forums) {
  padding:8px 10px!important;
  margin-bottom:22px!important}
#bbpress-forums li.bbp-body>ul.topic {
  flex-wrap:wrap;
  gap:10px;
  padding:18px 14px!important}
#bbpress-forums li.bbp-topic-title {
  flex:1 1 100%;
  white-space:normal!important}
#bbpress-forums a.bbp-topic-permalink {
  white-space:normal!important;
  overflow:visible;
  text-overflow:clip;
  line-height:1.5!important}
#bbpress-forums li.bbp-topic-voice-count,#bbpress-forums li.bbp-topic-reply-count,#bbpress-forums li.bbp-topic-freshness {
  min-width:0}
}

/* board chips (was inline in cff_render_topics) */
.cff-boards {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 2px 4px 10px;
  border-bottom: 1px solid #f0f0f0;
}
.cff-boards a {
  display: inline-block;
  padding: 5px 12px;
  border: 1px solid #e5e5e5;
  border-radius: 999px;
  text-decoration: none;
  color: #333;
  font-size: 13px;
  line-height: 1.3;
  background: #fff;
}
.cff-boards a.is-active,
.cff-boards a:hover {
  border-color: var(--cff-accent);
  color: var(--cff-accent);
  background: #fff;
}
