/* ======================================================================
   RCAD v273 — single forum limpio y autónomo
   ----------------------------------------------------------------------
   Esta hoja es la única autoridad visual en /forums/forum/.../
   No depende del bbpress.css histórico ni del forum-builder antiguo.
   Comparte el shell de 1320 px y la miga global del resto del foro.
   ====================================================================== */
body.rcad-single-forum-v276{
  --rcad-forum-shell:1320px;
  --rcad-forum-gutter:24px;
  --rcad-forum-border:#dfe6ef;
  --rcad-forum-line:#e7ecf3;
  --rcad-forum-soft:#f4f6f9;
  --rcad-forum-head:#edf4fa;
  --rcad-forum-primary:#071b46;
  --rcad-forum-link:#075fb6;
  --rcad-forum-muted:#667085;
  --rcad-forum-accent:#f6a800;
}

/* 1. Neutralización real del layout heredado de Orbital. */
body.rcad-single-forum-v276 #content,
body.rcad-single-forum-v276 main#content,
body.rcad-single-forum-v276 .site-main,
body.rcad-single-forum-v276 #content-wrapper,
body.rcad-single-forum-v276 #content-wrapper.container,
body.rcad-single-forum-v276 #content-wrapper>.entry-content,
body.rcad-single-forum-v276 .entry-content{
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  margin-left:0!important;
  margin-right:0!important;
  padding-left:0!important;
  padding-right:0!important;
  float:none!important;
  flex:0 0 100%!important;
  box-sizing:border-box!important;
}
body.rcad-single-forum-v276 #content-wrapper{display:block!important;}
body.rcad-single-forum-v276 #secondary,
body.rcad-single-forum-v276 aside#secondary,
body.rcad-single-forum-v276 .entry-aside,
body.rcad-single-forum-v276 .rcad-forum-interior-sidebar{display:none!important;}
body.rcad-single-forum-v276 .rcad-forum-interior-grid,
body.rcad-single-forum-v276 .rcad-forum-interior-main{
  display:block!important;width:100%!important;max-width:none!important;margin:0!important;padding:0!important;
}

/* 2. Título de foro: mismo eje que breadcrumb y contenido. */
body.rcad-single-forum-v276 .default-header{
  width:100%!important;margin:0!important;padding:0!important;background:#f6f8fb!important;
}
body.rcad-single-forum-v276 .default-header>.container{
  width:min(var(--rcad-forum-shell),calc(100vw - (var(--rcad-forum-gutter) * 2)))!important;
  max-width:var(--rcad-forum-shell)!important;
  margin:0 auto!important;padding:42px 0 18px!important;box-sizing:border-box!important;
}
body.rcad-single-forum-v276 .default-header .category,
body.rcad-single-forum-v276 .default-header .meta{display:none!important;}
body.rcad-single-forum-v276 .default-header .title{
  margin:0!important;padding:0!important;color:var(--rcad-forum-primary)!important;
  font-size:clamp(30px,3vw,42px)!important;font-weight:500!important;line-height:1.15!important;
}

/* 3. Miga: copia exacta del sistema global del resto del foro. */
body.rcad-single-forum-v276 .rcad-global-forum-breadcrumb{
  width:100%!important;margin:0!important;padding:0!important;border:0!important;
  border-bottom:1px solid #dfe6ef!important;background:#f4f6f9!important;box-shadow:none!important;
  position:relative!important;z-index:20!important;
}
body.rcad-single-forum-v276 .rcad-global-forum-breadcrumb .bbp-breadcrumb{
  width:min(var(--rcad-forum-shell),calc(100vw - (var(--rcad-forum-gutter) * 2)))!important;
  max-width:var(--rcad-forum-shell)!important;min-height:44px!important;margin:0 auto!important;padding:0!important;
  border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;
  display:flex!important;align-items:center!important;gap:12px!important;box-sizing:border-box!important;
}
body.rcad-single-forum-v276 .rcad-global-forum-breadcrumb .bbp-breadcrumb>p,
body.rcad-single-forum-v276 .rcad-global-forum-breadcrumb .bbp-breadcrumb p{
  display:flex!important;align-items:center!important;flex:1 1 auto!important;flex-wrap:wrap!important;
  min-width:0!important;width:auto!important;margin:0!important;padding:0!important;border:0!important;
  background:transparent!important;box-shadow:none!important;color:#6b7d96!important;font-size:12px!important;line-height:1.35!important;
}
body.rcad-single-forum-v276 .rcad-global-forum-breadcrumb .bbp-breadcrumb a{
  color:#14345f!important;font-weight:650!important;text-decoration:none!important;
}
body.rcad-single-forum-v276 .rcad-global-forum-breadcrumb .bbp-breadcrumb a:hover{color:#075ad8!important;}
body.rcad-single-forum-v276 .rcad-global-forum-breadcrumb .bbp-breadcrumb .bbp-breadcrumb-sep{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;margin:0 8px!important;
  color:#aab4c3!important;font-size:14px!important;font-weight:400!important;line-height:1!important;
}
body.rcad-single-forum-v276 .rcad-global-forum-breadcrumb .bbp-breadcrumb-current{color:#6b7d96!important;font-weight:400!important;}
body.rcad-single-forum-v276 #bbpress-forums>.bbp-breadcrumb{margin:0!important;padding:0!important;}

/* 4. Shell único de contenido. */
body.rcad-single-forum-v276 #bbpress-forums{
  width:min(var(--rcad-forum-shell),calc(100vw - (var(--rcad-forum-gutter) * 2)))!important;
  max-width:var(--rcad-forum-shell)!important;margin:0 auto!important;padding:0 0 44px!important;
  box-sizing:border-box!important;color:#172b4d!important;font-size:14px!important;float:none!important;
}
body.rcad-single-forum-v276 #bbpress-forums *{box-sizing:border-box;}
body.rcad-single-forum-v276 #bbpress-forums ul,
body.rcad-single-forum-v276 #bbpress-forums li{list-style:none!important;margin:0!important;}
body.rcad-single-forum-v276 #bbpress-forums>.bbp-template-notice.info,
body.rcad-single-forum-v276 #bbpress-forums .bbp-forum-description{display:none!important;}
body.rcad-single-forum-v276 #bbpress-forums #subscription-toggle{
  display:flex!important;justify-content:flex-end!important;margin:0 0 10px!important;font-size:12px!important;
}
body.rcad-single-forum-v276 #bbpress-forums #subscription-toggle a{color:#4d6078!important;text-decoration:none!important;}

/* Encabezado "Debates del foro" más compacto. */
body.rcad-single-forum-v276 #bbpress-forums .rcad-forum-interior-main>h2,
body.rcad-single-forum-v276 #bbpress-forums .bbp-forum-title-main{
  margin:0 0 12px!important;color:var(--rcad-forum-primary)!important;font-size:18px!important;font-weight:700!important;
}

/* 5A. Categoría con subforos: Foro | Temas | Mensajes | Último mensaje. */
body.rcad-single-forum-v276 #bbpress-forums ul.bbp-forums{
  width:100%!important;max-width:none!important;margin:0!important;padding:0!important;
  border:1px solid var(--rcad-forum-border)!important;border-radius:6px!important;overflow:hidden!important;background:#fff!important;
}
body.rcad-single-forum-v276 #bbpress-forums ul.bbp-forums>li.bbp-header{
  display:block!important;margin:0!important;padding:0!important;background:var(--rcad-forum-head)!important;border:0!important;border-bottom:1px solid var(--rcad-forum-border)!important;
}
body.rcad-single-forum-v276 #bbpress-forums ul.bbp-forums>li.bbp-header>ul{
  display:grid!important;grid-template-columns:minmax(0,1fr) 110px 120px 300px!important;align-items:center!important;
  width:100%!important;min-height:42px!important;margin:0!important;padding:0!important;
}
body.rcad-single-forum-v276 #bbpress-forums ul.bbp-forums>li.bbp-header li{
  float:none!important;width:auto!important;padding:0 16px!important;color:#49627f!important;font-size:11px!important;
  font-weight:700!important;text-transform:uppercase!important;letter-spacing:.025em!important;text-align:center!important;
}
body.rcad-single-forum-v276 #bbpress-forums ul.bbp-forums>li.bbp-header .bbp-forum-info{text-align:left!important;}
body.rcad-single-forum-v276 #bbpress-forums ul.bbp-forums>li.bbp-body{padding:0!important;}
body.rcad-single-forum-v276 #bbpress-forums ul.bbp-forums>li.bbp-body>ul.forum{
  display:grid!important;grid-template-columns:minmax(0,1fr) 110px 120px 300px!important;align-items:stretch!important;
  width:100%!important;min-height:82px!important;margin:0!important;padding:0!important;background:#fff!important;
  border:0!important;border-bottom:1px solid var(--rcad-forum-line)!important;
}
body.rcad-single-forum-v276 #bbpress-forums ul.bbp-forums>li.bbp-body>ul.forum:last-child{border-bottom:0!important;}
body.rcad-single-forum-v276 #bbpress-forums ul.bbp-forums>li.bbp-body>ul.forum:hover{background:#fbfcfe!important;}
body.rcad-single-forum-v276 #bbpress-forums ul.bbp-forums>li.bbp-body>ul.forum>li{
  float:none!important;width:auto!important;min-width:0!important;margin:0!important;padding:15px 16px!important;
  display:flex!important;align-items:center!important;border-left:1px solid var(--rcad-forum-line)!important;
}
body.rcad-single-forum-v276 #bbpress-forums ul.bbp-forums>li.bbp-body>ul.forum>li:first-child{border-left:0!important;}
body.rcad-single-forum-v276 #bbpress-forums .bbp-forum-info{position:relative!important;padding-left:56px!important;}
body.rcad-single-forum-v276 #bbpress-forums .bbp-forum-info::before,
body.rcad-single-forum-v276 #bbpress-forums .bbp-topic-title::before{
  content:""!important;position:absolute!important;left:18px!important;top:50%!important;transform:translateY(-50%)!important;
  width:28px!important;height:28px!important;border:1px solid #f3c45c!important;border-radius:50%!important;background:#fff9e9!important;box-shadow:none!important;
}
body.rcad-single-forum-v276 #bbpress-forums .bbp-forum-info::after,
body.rcad-single-forum-v276 #bbpress-forums .bbp-topic-title::after{
  content:""!important;position:absolute!important;left:27px!important;top:50%!important;transform:translateY(-57%)!important;
  width:9px!important;height:8px!important;border:1.5px solid #e8a400!important;border-radius:5px!important;background:transparent!important;
}
body.rcad-single-forum-v276 #bbpress-forums .rcad-forum-row-icon{display:none!important;}
body.rcad-single-forum-v276 #bbpress-forums .bbp-forum-title,
body.rcad-single-forum-v276 #bbpress-forums .bbp-topic-permalink{
  color:var(--rcad-forum-link)!important;font-size:14px!important;font-weight:650!important;line-height:1.35!important;text-decoration:none!important;
}
body.rcad-single-forum-v276 #bbpress-forums .bbp-forum-title:hover,
body.rcad-single-forum-v276 #bbpress-forums .bbp-topic-permalink:hover{text-decoration:underline!important;text-underline-offset:3px!important;}
body.rcad-single-forum-v276 #bbpress-forums .bbp-forum-content{display:none!important;}
body.rcad-single-forum-v276 #bbpress-forums .bbp-forum-topic-count,
body.rcad-single-forum-v276 #bbpress-forums .bbp-forum-reply-count{
  justify-content:center!important;text-align:center!important;color:var(--rcad-forum-primary)!important;font-size:15px!important;font-weight:750!important;
}
body.rcad-single-forum-v276 #bbpress-forums .bbp-forum-freshness{
  gap:8px!important;color:var(--rcad-forum-muted)!important;font-size:12px!important;line-height:1.35!important;
}

/* 5B. Foro final con debates: reconstrucción completa del loop de topics. */
body.rcad-single-forum-v276 #bbpress-forums ul.bbp-topics{
  width:100%!important;max-width:none!important;min-width:0!important;margin:0!important;padding:0!important;
  border:1px solid var(--rcad-forum-border)!important;border-radius:6px!important;overflow:hidden!important;background:#fff!important;box-shadow:none!important;
}
body.rcad-single-forum-v276 #bbpress-forums ul.bbp-topics>li.bbp-header{
  display:block!important;margin:0!important;padding:0!important;background:var(--rcad-forum-head)!important;border:0!important;border-bottom:1px solid var(--rcad-forum-border)!important;
}
body.rcad-single-forum-v276 #bbpress-forums ul.bbp-topics>li.bbp-header>ul.forum-titles{
  display:grid!important;grid-template-columns:minmax(0,1fr) 92px 104px 300px!important;align-items:center!important;
  width:100%!important;min-height:42px!important;margin:0!important;padding:0!important;
}
body.rcad-single-forum-v276 #bbpress-forums ul.bbp-topics>li.bbp-header li{
  float:none!important;width:auto!important;min-width:0!important;padding:0 16px!important;color:#49627f!important;
  font-size:11px!important;font-weight:700!important;text-transform:uppercase!important;letter-spacing:.025em!important;text-align:center!important;
}
body.rcad-single-forum-v276 #bbpress-forums ul.bbp-topics>li.bbp-header .bbp-topic-title{text-align:left!important;padding-left:18px!important;}
body.rcad-single-forum-v276 #bbpress-forums ul.bbp-topics>li.bbp-body{margin:0!important;padding:0!important;}
body.rcad-single-forum-v276 #bbpress-forums ul.bbp-topics>li.bbp-body>ul.topic{
  display:grid!important;grid-template-columns:minmax(0,1fr) 92px 104px 300px!important;align-items:stretch!important;
  width:100%!important;min-height:88px!important;margin:0!important;padding:0!important;background:#fff!important;
  border:0!important;border-bottom:1px solid var(--rcad-forum-line)!important;
}
body.rcad-single-forum-v276 #bbpress-forums ul.bbp-topics>li.bbp-body>ul.topic:last-child{border-bottom:0!important;}
body.rcad-single-forum-v276 #bbpress-forums ul.bbp-topics>li.bbp-body>ul.topic:hover{background:#fbfcfe!important;}
body.rcad-single-forum-v276 #bbpress-forums ul.bbp-topics>li.bbp-body>ul.topic>li{
  float:none!important;width:auto!important;min-width:0!important;margin:0!important;padding:16px!important;
  border-left:1px solid var(--rcad-forum-line)!important;display:flex!important;align-items:center!important;
}
body.rcad-single-forum-v276 #bbpress-forums ul.bbp-topics>li.bbp-body>ul.topic>li:first-child{border-left:0!important;}
body.rcad-single-forum-v276 #bbpress-forums .bbp-topic-title{
  position:relative!important;padding-left:62px!important;display:block!important;align-content:center!important;
}
body.rcad-single-forum-v276 #bbpress-forums .bbp-topic-title .bbp-topic-pagination{display:inline-flex!important;gap:3px!important;margin-left:6px!important;vertical-align:middle!important;}
body.rcad-single-forum-v276 #bbpress-forums .bbp-topic-title .bbp-topic-pagination a{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;min-width:20px!important;height:20px!important;
  padding:0 5px!important;border:1px solid #dbe3ef!important;border-radius:4px!important;background:#fff!important;color:#60738f!important;font-size:10px!important;text-decoration:none!important;
}
body.rcad-single-forum-v276 #bbpress-forums .bbp-topic-meta{
  margin:5px 0 0!important;padding:0!important;color:#7a889b!important;font-size:11px!important;line-height:1.35!important;
}
body.rcad-single-forum-v276 #bbpress-forums .bbp-topic-meta .bbp-author-name{color:#51657f!important;font-weight:500!important;}
body.rcad-single-forum-v276 #bbpress-forums .bbp-topic-title .bbp-author-avatar img{width:16px!important;height:16px!important;border-radius:50%!important;vertical-align:middle!important;}
body.rcad-single-forum-v276 #bbpress-forums .bbp-topic-voice-count,
body.rcad-single-forum-v276 #bbpress-forums .bbp-topic-reply-count{
  justify-content:center!important;text-align:center!important;color:var(--rcad-forum-primary)!important;font-size:16px!important;font-weight:750!important;
}
body.rcad-single-forum-v276 #bbpress-forums .bbp-topic-freshness{
  display:flex!important;align-items:center!important;gap:8px!important;color:var(--rcad-forum-muted)!important;font-size:12px!important;line-height:1.3!important;
}
body.rcad-single-forum-v276 #bbpress-forums .bbp-topic-freshness>a,
body.rcad-single-forum-v276 #bbpress-forums .bbp-forum-freshness>a{color:var(--rcad-forum-link)!important;font-weight:600!important;text-decoration:none!important;}
body.rcad-single-forum-v276 #bbpress-forums .bbp-topic-freshness .bbp-topic-meta{margin:0!important;display:inline-flex!important;align-items:center!important;}
body.rcad-single-forum-v276 #bbpress-forums .bbp-topic-freshness img.avatar,
body.rcad-single-forum-v276 #bbpress-forums .bbp-forum-freshness img.avatar{
  width:30px!important;height:30px!important;min-width:30px!important;margin:0!important;border:1px solid #dbe3ef!important;border-radius:50%!important;object-fit:cover!important;
}
body.rcad-single-forum-v276 #bbpress-forums ul.bbp-topics>li.bbp-footer,
body.rcad-single-forum-v276 #bbpress-forums ul.bbp-forums>li.bbp-footer{display:none!important;}

/* 6. Paginación discreta y sin franja agresiva. */
body.rcad-single-forum-v276 #bbpress-forums .bbp-pagination{
  display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;
  width:100%!important;margin:12px 0!important;padding:0!important;color:#667085!important;font-size:12px!important;
}
body.rcad-single-forum-v276 #bbpress-forums .bbp-pagination-links{display:flex!important;gap:5px!important;margin-left:auto!important;}
body.rcad-single-forum-v276 #bbpress-forums .bbp-pagination-links a,
body.rcad-single-forum-v276 #bbpress-forums .bbp-pagination-links span{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;min-width:32px!important;height:32px!important;
  padding:0 9px!important;border:1px solid #d8e0ea!important;border-radius:5px!important;background:#fff!important;color:#284667!important;text-decoration:none!important;
}
body.rcad-single-forum-v276 #bbpress-forums .bbp-pagination-links .current{border-color:#f6a800!important;color:#9a6400!important;}

/* 7. Formulario de nuevo tema: conserva funcionalidad, pero limpio y full width. */
body.rcad-single-forum-v276 #bbpress-forums .bbp-topic-form{width:100%!important;margin:26px 0 0!important;}
body.rcad-single-forum-v276 #bbpress-forums fieldset.bbp-form{
  width:100%!important;margin:0!important;padding:22px!important;border:1px solid var(--rcad-forum-border)!important;
  border-radius:6px!important;background:#fff!important;color:#172b4d!important;
}
body.rcad-single-forum-v276 #bbpress-forums fieldset.bbp-form legend{padding:0 8px!important;color:var(--rcad-forum-primary)!important;font-size:14px!important;font-weight:700!important;}
body.rcad-single-forum-v276 #bbpress-forums fieldset.bbp-form label{color:#334155!important;font-size:12px!important;font-weight:650!important;}
body.rcad-single-forum-v276 #bbpress-forums fieldset.bbp-form input[type="text"],
body.rcad-single-forum-v276 #bbpress-forums fieldset.bbp-form select,
body.rcad-single-forum-v276 #bbpress-forums fieldset.bbp-form textarea{
  width:100%!important;max-width:none!important;border:1px solid #cfd9e6!important;border-radius:5px!important;background:#fff!important;color:#172b4d!important;
}
body.rcad-single-forum-v276 #bbpress-forums fieldset.bbp-form input[type="text"],
body.rcad-single-forum-v276 #bbpress-forums fieldset.bbp-form select{min-height:40px!important;padding:8px 10px!important;}
body.rcad-single-forum-v276 #bbpress-forums .wp-editor-container{border:1px solid #cfd9e6!important;border-radius:5px!important;overflow:hidden!important;}
body.rcad-single-forum-v276 #bbpress-forums .bbp-submit-wrapper{display:flex!important;justify-content:flex-end!important;margin-top:14px!important;}
body.rcad-single-forum-v276 #bbpress-forums .bbp-submit-wrapper .button{
  min-height:38px!important;padding:0 18px!important;border:1px solid #d99000!important;border-radius:5px!important;
  background:#f6a800!important;color:#071b46!important;font-size:12px!important;font-weight:700!important;cursor:pointer!important;
}

@media(max-width:900px){
  body.rcad-single-forum-v276{--rcad-forum-gutter:12px;}
  body.rcad-single-forum-v276 .default-header>.container{padding-top:28px!important;}
  body.rcad-single-forum-v276 #bbpress-forums ul.bbp-forums>li.bbp-header,
  body.rcad-single-forum-v276 #bbpress-forums ul.bbp-topics>li.bbp-header{display:none!important;}
  body.rcad-single-forum-v276 #bbpress-forums ul.bbp-forums>li.bbp-body>ul.forum,
  body.rcad-single-forum-v276 #bbpress-forums ul.bbp-topics>li.bbp-body>ul.topic{
    grid-template-columns:minmax(0,1fr) 72px 78px!important;
  }
  body.rcad-single-forum-v276 #bbpress-forums .bbp-forum-freshness,
  body.rcad-single-forum-v276 #bbpress-forums .bbp-topic-freshness{
    grid-column:1/-1!important;border-left:0!important;border-top:1px solid #eef2f7!important;padding:10px 16px!important;
  }
  body.rcad-single-forum-v276 #bbpress-forums .bbp-forum-info,
  body.rcad-single-forum-v276 #bbpress-forums .bbp-topic-title{padding-left:56px!important;}
  body.rcad-single-forum-v276 #bbpress-forums fieldset.bbp-form{padding:16px!important;}
}

/* RCAD v274 hotfix — aislamiento total frente a CSS legacy y centrado real */
body.rcad-single-forum-v276 #content-wrapper.container.flex{
  display:block!important;width:100%!important;max-width:none!important;margin:0!important;padding:0!important;
}
body.rcad-single-forum-v276 #content-wrapper.container.flex>.entry-content{
  display:block!important;width:100%!important;max-width:none!important;flex:none!important;margin:0!important;padding:0!important;
}
body.rcad-single-forum-v276 #bbpress-forums,
body.rcad-single-forum-v276 #bbpress-forums .rcad-forum-interior-grid,
body.rcad-single-forum-v276 #bbpress-forums .rcad-forum-interior-main{
  float:none!important;clear:both!important;
}
body.rcad-single-forum-v276 #bbpress-forums .rcad-forum-interior-grid,
body.rcad-single-forum-v276 #bbpress-forums .rcad-forum-interior-main{width:100%!important;max-width:100%!important;}
body.rcad-single-forum-v276 #bbpress-forums ul.bbp-topics,
body.rcad-single-forum-v276 #bbpress-forums ul.bbp-forums,
body.rcad-single-forum-v276 #bbpress-forums .bbp-topic-form,
body.rcad-single-forum-v276 #bbpress-forums .bbp-login-form,
body.rcad-single-forum-v276 #bbpress-forums fieldset.bbp-form{max-width:100%!important;}
/* elimina bullets/pseudoelementos legacy que aparecen como puntos azules */
body.rcad-single-forum-v276 #bbpress-forums ul.bbp-topics li::marker,
body.rcad-single-forum-v276 #bbpress-forums ul.bbp-forums li::marker{content:""!important;}
body.rcad-single-forum-v276 #bbpress-forums ul.bbp-topics li:not(.bbp-topic-title)::before,
body.rcad-single-forum-v276 #bbpress-forums ul.bbp-forums li:not(.bbp-forum-info)::before{content:none!important;display:none!important;}
/* cabecera y filas exactamente con las mismas 4 columnas */
body.rcad-single-forum-v276 #bbpress-forums ul.bbp-topics>li.bbp-header>ul.forum-titles,
body.rcad-single-forum-v276 #bbpress-forums ul.bbp-topics>li.bbp-body>ul.topic{
  grid-template-columns:minmax(0,1fr) 92px 104px 280px!important;
}
/* login de bbPress alineado con el bloque, sin reglas antiguas de 100vw */
body.rcad-single-forum-v276 #bbpress-forums .bbp-login-form,
body.rcad-single-forum-v276 #bbpress-forums .bbp-login-form fieldset{width:100%!important;margin-left:0!important;margin-right:0!important;}
@media(max-width:900px){
 body.rcad-single-forum-v276 #bbpress-forums{width:calc(100% - 32px)!important;}
 body.rcad-single-forum-v276 .default-header>.container,
 body.rcad-single-forum-v276 .rcad-global-forum-breadcrumb .bbp-breadcrumb{width:calc(100% - 32px)!important;}
}

/* ============================================================
 * RCAD v275 — icono de foro idéntico a la portada /forums/
 * ============================================================ */
body.rcad-single-forum-v276 #bbpress-forums .bbp-forum-info{padding-left:74px!important;}
/* v279: MISMO icono exacto que la portada /forums/.
   Se usa el mismo path SVG de .rcad-fi262-icon; no se dibuja a mano con bordes CSS. */
body.rcad-single-forum-v276 #bbpress-forums .bbp-forum-info::before{
  content:""!important;position:absolute!important;left:16px!important;top:50%!important;transform:translateY(-50%)!important;
  width:42px!important;height:42px!important;border:0!important;border-radius:50%!important;box-shadow:none!important;
  background-color:#fff7e6!important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f6a800' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a4 4 0 0 1-4 4H8l-5 3V7a4 4 0 0 1 4-4h10a4 4 0 0 1 4 4z'/%3E%3C/svg%3E")!important;
  background-repeat:no-repeat!important;background-position:center!important;background-size:24px 24px!important;
}
body.rcad-single-forum-v276 #bbpress-forums .bbp-forum-info::after,
body.rcad-single-forum-v276 #bbpress-forums .bbp-forum-info > .bbp-forum-title::before{content:none!important;display:none!important;}

/* RCAD v276 — corrección estructural definitiva de subforos */
body.rcad-single-forum-v276 #bbpress-forums ul.bbp-forums > li.bbp-header .bbp-forum-info::before,
body.rcad-single-forum-v276 #bbpress-forums ul.bbp-forums > li.bbp-header .bbp-forum-info::after{
  content:none!important;display:none!important;
}
body.rcad-single-forum-v276 #bbpress-forums ul.bbp-forums > li.bbp-header .bbp-forum-info{
  position:static!important;padding-left:18px!important;
}
body.rcad-single-forum-v276 #bbpress-forums ul.bbp-forums > li.bbp-body > ul.forum > .bbp-forum-info{
  position:relative!important;display:flex!important;align-items:center!important;
  min-width:0!important;padding:15px 18px 15px 76px!important;overflow:visible!important;
}
body.rcad-single-forum-v276 #bbpress-forums ul.bbp-forums > li.bbp-body > ul.forum > .bbp-forum-info::before{
  left:20px!important;width:42px!important;height:42px!important;border:0!important;border-radius:50%!important;
  background-color:#fff7e6!important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f6a800' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a4 4 0 0 1-4 4H8l-5 3V7a4 4 0 0 1 4-4h10a4 4 0 0 1 4 4z'/%3E%3C/svg%3E")!important;
  background-repeat:no-repeat!important;background-position:center!important;background-size:24px 24px!important;
}
body.rcad-single-forum-v276 #bbpress-forums ul.bbp-forums > li.bbp-body > ul.forum > .bbp-forum-info::after{content:none!important;display:none!important;}
body.rcad-single-forum-v276 #bbpress-forums ul.bbp-forums > li.bbp-body > ul.forum > .bbp-forum-info .bbp-forum-title{
  display:block!important;min-width:0!important;margin:0!important;padding:0!important;overflow:visible!important;
  white-space:normal!important;text-indent:0!important;transform:none!important;
}

/* ============================================================
 * RCAD v277 — hilos/topics con el mismo sistema visual que subforos
 * ============================================================ */
body.rcad-single-forum-v276 #bbpress-forums ul.bbp-topics > li.bbp-header > ul.forum-titles,
body.rcad-single-forum-v276 #bbpress-forums ul.bbp-topics > li.bbp-body > ul.topic{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 110px 120px 300px!important;
  width:100%!important;
  align-items:stretch!important;
}
body.rcad-single-forum-v276 #bbpress-forums ul.bbp-topics > li.bbp-header > ul.forum-titles{
  min-height:42px!important;align-items:center!important;
}
body.rcad-single-forum-v276 #bbpress-forums ul.bbp-topics > li.bbp-header .bbp-topic-title,
body.rcad-single-forum-v276 #bbpress-forums ul.bbp-topics > li.bbp-header .bbp-topic-voice-count,
body.rcad-single-forum-v276 #bbpress-forums ul.bbp-topics > li.bbp-header .bbp-topic-reply-count,
body.rcad-single-forum-v276 #bbpress-forums ul.bbp-topics > li.bbp-header .bbp-topic-freshness{
  position:static!important;display:flex!important;align-items:center!important;justify-content:center!important;
  width:auto!important;min-width:0!important;height:100%!important;padding:0 16px!important;
  border-left:1px solid var(--rcad-forum-border)!important;
}
body.rcad-single-forum-v276 #bbpress-forums ul.bbp-topics > li.bbp-header .bbp-topic-title{
  justify-content:flex-start!important;padding-left:18px!important;border-left:0!important;
}
body.rcad-single-forum-v276 #bbpress-forums ul.bbp-topics > li.bbp-header .bbp-topic-title::before,
body.rcad-single-forum-v276 #bbpress-forums ul.bbp-topics > li.bbp-header .bbp-topic-title::after{
  content:none!important;display:none!important;
}
body.rcad-single-forum-v276 #bbpress-forums ul.bbp-topics > li.bbp-body > ul.topic > .bbp-topic-title{
  grid-column:1!important;position:relative!important;display:flex!important;flex-direction:column!important;
  justify-content:center!important;align-items:flex-start!important;min-width:0!important;
  padding:16px 18px 16px 76px!important;overflow:visible!important;border-left:0!important;
}
body.rcad-single-forum-v276 #bbpress-forums ul.bbp-topics > li.bbp-body > ul.topic > .bbp-topic-title::before{
  content:""!important;display:block!important;position:absolute!important;left:20px!important;top:50%!important;
  transform:translateY(-50%)!important;width:42px!important;height:42px!important;border:0!important;border-radius:50%!important;box-shadow:none!important;
  background-color:#fff7e6!important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f6a800' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a4 4 0 0 1-4 4H8l-5 3V7a4 4 0 0 1 4-4h10a4 4 0 0 1 4 4z'/%3E%3C/svg%3E")!important;
  background-repeat:no-repeat!important;background-position:center!important;background-size:24px 24px!important;
}
body.rcad-single-forum-v276 #bbpress-forums ul.bbp-topics > li.bbp-body > ul.topic > .bbp-topic-title::after{content:none!important;display:none!important;}
body.rcad-single-forum-v276 #bbpress-forums ul.bbp-topics > li.bbp-body > ul.topic > .bbp-topic-title .bbp-topic-permalink{
  display:inline!important;max-width:100%!important;margin:0!important;padding:0!important;text-indent:0!important;
  transform:none!important;white-space:normal!important;overflow-wrap:anywhere!important;
}
body.rcad-single-forum-v276 #bbpress-forums ul.bbp-topics > li.bbp-body > ul.topic > .bbp-topic-voice-count,
body.rcad-single-forum-v276 #bbpress-forums ul.bbp-topics > li.bbp-body > ul.topic > .bbp-topic-reply-count,
body.rcad-single-forum-v276 #bbpress-forums ul.bbp-topics > li.bbp-body > ul.topic > .bbp-topic-freshness{
  position:static!important;display:flex!important;align-items:center!important;justify-content:center!important;
  width:auto!important;min-width:0!important;margin:0!important;padding:16px!important;
  border-left:1px solid var(--rcad-forum-line)!important;
}
body.rcad-single-forum-v276 #bbpress-forums ul.bbp-topics > li.bbp-body > ul.topic > .bbp-topic-freshness{
  justify-content:flex-start!important;gap:10px!important;
}
/* Un único contador de paginación: el inferior era el duplicado visual. */
body.rcad-single-forum-v276 #bbpress-forums ul.bbp-topics + .bbp-pagination{display:none!important;}
/* En los foros interiores no mostramos el formulario bbPress incrustado: la publicación usa el flujo Nuevo tema/modal RCAD. */
body.rcad-single-forum-v276 #bbpress-forums .bbp-topic-form,
body.rcad-single-forum-v276 #bbpress-forums .bbp-login-form,
body.rcad-single-forum-v276 #bbpress-forums > .bbp-template-notice:not(.error):not(.warning){display:none!important;}
@media(max-width:900px){
  body.rcad-single-forum-v276 #bbpress-forums ul.bbp-topics > li.bbp-body > ul.topic{
    grid-template-columns:minmax(0,1fr) 72px 78px!important;
  }
  body.rcad-single-forum-v276 #bbpress-forums ul.bbp-topics > li.bbp-body > ul.topic > .bbp-topic-freshness{
    grid-column:1/-1!important;border-left:0!important;border-top:1px solid var(--rcad-forum-line)!important;
  }
}

/* ============================================================
 * RCAD v278 — Listado de temas más limpio
 * - Oculta la mini paginación 1,2,3 junto al título.
 * - Oculta "Iniciado por..." únicamente en la columna del título.
 * - Conserva los metadatos de Último mensaje en su columna.
 * ============================================================ */
body.rcad-single-forum-v278 #bbpress-forums .bbp-topic-title .bbp-topic-pagination,
body.rcad-single-forum-v278 #bbpress-forums .bbp-topic-title > .bbp-topic-meta {
  display:none!important;
}
body.rcad-single-forum-v278 #bbpress-forums .bbp-topic-title {
  align-content:center!important;
}
