/**
 * bbPress Tweaks — Tweak #5: restaurar el borde inferior de los botones de
 * foros embebidos en LearnDash (Responder / Suscribirme / Agregar a favoritos).
 *
 * Causa: learndash.min.css (plugin LearnDash, >= 4.25) aplica
 *   .learndash-wrapper:not(.ld-registration__outer-wrapper)
 *     :not(.learndash-wrapper--modern) a:not(.button):not(.screen-reader-shortcut)
 *     { border-bottom: none !important }
 * (especificidad 0,5,1) a todo enlace dentro del wrapper. Los botones de
 * bbPress/BuddyBoss son <a> sin clase .button, así que pierden el borde
 * inferior. Las contra-reglas del propio tema
 * (.learndash-wrapper a.favorite-toggle, ... — especificidad 0,2,1) perdieron
 * cuando LearnDash infló su selector con la cadena de :not(), y el tema nunca
 * cubrió el botón Responder.
 *
 * El :not(#bbt) es inflado deliberado de especificidad: #bbt no existe en el
 * DOM — :not() suma la especificidad de su argumento, así que cada selector
 * queda a nivel de ID (1,x,x) y vence a cualquier pila de clases sin depender
 * de un ID real. Mismo combate documentado en docs/plan-comentarios-b10.md
 * (v0.3.0/v0.3.1). Los colores por estado replican exactamente las variables
 * que usa el tema en bbpress.min.css, así el fix hereda la paleta configurada.
 */

/* Responder / "Log In to Reply": estilo primario del tema. */
.learndash-wrapper a.bbp-topic-reply-link:not(#bbt),
.learndash-wrapper a.bbp-topic-login-link:not(#bbt) {
    border-bottom: 1px solid var(--bb-primary-button-border-regular) !important;
}

.learndash-wrapper a.bbp-topic-reply-link:not(#bbt):hover,
.learndash-wrapper a.bbp-topic-reply-link:not(#bbt):active,
.learndash-wrapper a.bbp-topic-login-link:not(#bbt):hover,
.learndash-wrapper a.bbp-topic-login-link:not(#bbt):active {
    border-bottom-color: var(--bb-primary-button-border-hover) !important;
}

/* Suscribirme / Agregar a favoritos: estilo secundario del tema. */
.learndash-wrapper a.subscription-toggle:not(#bbt),
.learndash-wrapper a.favorite-toggle:not(#bbt) {
    border-bottom: 1px solid var(--bb-content-border-color) !important;
}

.learndash-wrapper a.subscription-toggle:not(#bbt):hover,
.learndash-wrapper a.subscription-toggle:not(#bbt):active,
.learndash-wrapper a.favorite-toggle:not(#bbt):hover,
.learndash-wrapper a.favorite-toggle:not(#bbt):active {
    border-bottom-color: var(--bb-secondary-button-border-hover) !important;
}

/*
 * Estado "suscrito": el tema convierte el toggle en solo-texto sin borde
 * (#bbpress-forums#bbpress-forums .bb-user-subscribed a.subscription-toggle
 * { border: 0 }) — respetarlo para no pintarle un borde fantasma.
 */
.learndash-wrapper .bb-user-subscribed a.subscription-toggle:not(#bbt) {
    border-bottom: 0 !important;
}
