/*
 * rc256 · Estructura de la comunidad.
 * Selector doble #cp-community#cp-community, como en rc255, para ganar a las reglas del tema.
 */

/* El encabezado del tema deja 60 px vacíos antes de la comunidad. */
body:has(#cp-community) .penci-header-wrap{margin-bottom:0!important}

/* Columnas laterales: sin barra de desplazamiento propia. El script fija «top» para que
   cada columna avance con la página hasta mostrar su final y luego quede fija. */
@media (min-width:861px){
    #cp-community#cp-community .cp-community-layout>.cp-community-left,
    #cp-community#cp-community .cp-community-layout>.cp-community-right,
    #cp-community#cp-community .cp-community-detail>aside{position:sticky!important;top:var(--cp-col-top,calc(18px + var(--wp-admin--admin-bar--height,0px)))!important;align-self:start!important;max-height:none!important;padding:0!important;overflow:visible!important}
}

/* Respuestas del detalle con el mismo tono que el muro: sin mayúsculas forzadas. */
#cp-community#cp-community .cp-reply-actions button,
#cp-community#cp-community .cp-reply-actions .cp-community-feature-action button,
#cp-community#cp-community .cp-community-replies button[type="submit"]{letter-spacing:0!important;text-transform:none!important}
#cp-community#cp-community .cp-reply-actions button,
#cp-community#cp-community .cp-reply-actions .cp-community-feature-action button{min-height:34px;padding:6px 12px!important;border-radius:9px!important;font-size:12.5px!important;font-weight:700!important}
#cp-community#cp-community .cp-community-replies button[type="submit"]{border-radius:10px!important;font-size:14px!important;font-weight:700!important}

/* «Publicar» solo existe en la barra inferior del celular. */
#cp-community#cp-community .cp-community-nav__compose{display:none!important}

/* Celular: la navegación de la comunidad pasa a una barra fija inferior. */
@media (max-width:620px){
    #cp-community#cp-community{padding-bottom:calc(88px + env(safe-area-inset-bottom,0px))!important}
    #cp-community#cp-community .cp-community-nav.cp-community-nav--standalone{position:fixed!important;z-index:9990!important;right:0!important;bottom:0!important;left:0!important;display:flex!important;grid-template-columns:none!important;align-items:stretch!important;gap:0!important;width:100%!important;min-height:0!important;margin:0!important;padding:5px 4px calc(5px + env(safe-area-inset-bottom,0px))!important;overflow:visible!important;border:0!important;border-top:1px solid #dbe8e0!important;border-radius:0!important;background:rgba(255,255,255,.97)!important;box-shadow:0 -6px 20px rgba(18,52,35,.08)!important;-webkit-backdrop-filter:saturate(1.4) blur(8px);backdrop-filter:saturate(1.4) blur(8px)}
    #cp-community#cp-community .cp-community-nav--standalone a{position:relative;order:3;flex:1 1 0!important;grid-column:auto!important;min-width:0!important;min-height:52px!important;margin:0!important;padding:4px 1px!important;gap:3px!important;border:0!important;border-radius:10px!important;background:none!important;box-shadow:none!important;color:#5a6e63!important}
    #cp-community#cp-community .cp-community-nav--standalone a:nth-child(1),
    #cp-community#cp-community .cp-community-nav--standalone a:nth-child(2){order:1}
    #cp-community#cp-community .cp-community-nav--standalone a.is-active{background:#eef8f2!important;color:#08733a!important}
    #cp-community#cp-community .cp-community-nav--standalone a::after{font-size:10px!important;font-weight:800!important}
    #cp-community#cp-community .cp-community-nav--standalone .cp-community-nav__image{flex:0 0 24px!important;width:24px!important;height:24px!important}
    #cp-community#cp-community .cp-community-nav--standalone .cp-community-nav__back{display:none!important}
    #cp-community#cp-community .cp-community-nav--standalone .cp-community-nav__login{grid-column:auto!important}
    #cp-community#cp-community .cp-community-nav__compose{display:flex!important;order:2!important;justify-content:flex-start!important}
    #cp-community#cp-community .cp-community-nav__compose>span{display:grid;place-items:center;width:38px;height:38px;margin-top:-14px;border:3px solid #fff;border-radius:50%;background:#078a45;box-shadow:0 4px 12px rgba(7,138,69,.35);color:#fff;font-size:24px!important;font-weight:400;line-height:1}
    #cp-community#cp-community .cp-community-nav__jobs .cp-community-nav__new{top:-6px!important;right:2px!important;left:auto!important;padding:1px 5px!important;font-size:8px!important}
}
