/* Lamari Diarios v1.40.198
 * Perfil de miembro + BuddyBoss ReadyLaunch.
 *
 * Objetivos:
 * 1) La sidebar premium de Lamari comparte la PRIMERA fila con la cabecera.
 * 2) El contenido del resumen continúa debajo, en la columna principal.
 * 3) La sidebar nativa de ReadyLaunch (.bb-rl-secondary-container) no se renderiza
 *    visualmente en los perfiles personalizados de Lamari.
 * 4) El contenedor primario ReadyLaunch recupera todo el ancho disponible.
 */

/* --- BuddyBoss ReadyLaunch: retirar el lateral nativo de raíz --- */
body.kd-member-profile-page .bb-rl-secondary-container{
  display:none!important;
  visibility:hidden!important;
  opacity:0!important;
  pointer-events:none!important;
  width:0!important;
  min-width:0!important;
  max-width:0!important;
  height:0!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  overflow:hidden!important;
}
body.kd-member-profile-page .bb-rl-content-wrapper{
  display:block!important;
  grid-template-columns:minmax(0,1fr)!important;
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  padding:0!important;
}
body.kd-member-profile-page .bb-rl-primary-container{
  display:block!important;
  flex:1 1 100%!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  margin:0!important;
  padding:0!important;
}

/* Fallback para tarjetas nativas marcadas por el limpiador semántico. */
body.kd-member-profile-page .kd-native-profile-card-residual{
  display:none!important;
  visibility:hidden!important;
  opacity:0!important;
  pointer-events:none!important;
  width:0!important;
  height:0!important;
  min-width:0!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  overflow:hidden!important;
}

/* --- Perfil normal Lamari: arquitectura de dos columnas estable --- */
@media (min-width:961px){
  body.kd-member-profile-overview:not(.kd-member-company-profile):not(.kd-member-admin-profile) .kd-member-showcase{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 286px!important;
    grid-template-rows:auto auto!important;
    column-gap:24px!important;
    row-gap:20px!important;
    align-items:start!important;
    width:100%!important;
    max-width:none!important;
    padding-top:16px!important;
  }
  body.kd-member-profile-overview:not(.kd-member-company-profile):not(.kd-member-admin-profile) .kd-member-top-grid{
    display:block!important;
    grid-column:1!important;
    grid-row:1!important;
    align-self:start!important;
    width:100%!important;
    min-width:0!important;
    min-height:0!important;
    height:auto!important;
    margin:0!important;
    padding:0!important;
  }
  body.kd-member-profile-overview:not(.kd-member-company-profile):not(.kd-member-admin-profile) .kd-member-profile-aside{
    display:flex!important;
    visibility:visible!important;
    opacity:1!important;
    pointer-events:auto!important;
    position:static!important;
    grid-column:2!important;
    grid-row:1 / span 2!important;
    align-self:start!important;
    flex-direction:column!important;
    gap:14px!important;
    width:100%!important;
    min-width:0!important;
    height:auto!important;
    margin:0!important;
    padding:0!important;
    overflow:visible!important;
  }
  body.kd-member-profile-overview:not(.kd-member-company-profile):not(.kd-member-admin-profile) .kd-member-overview-content{
    display:block!important;
    grid-column:1!important;
    grid-row:2!important;
    align-self:start!important;
    width:100%!important;
    min-width:0!important;
    min-height:0!important;
    height:auto!important;
    margin:0!important;
    padding-top:0!important;
  }
}

/* Los componentes premium propios de Lamari nunca deben heredar el ocultado nativo. */
body.kd-member-profile-page .kd-member-profile-aside .kd-member-aside-action,
body.kd-member-profile-page .kd-member-profile-aside .kd-member-side-card{
  visibility:visible!important;
  opacity:1!important;
  pointer-events:auto!important;
  width:100%!important;
  height:auto!important;
}
body.kd-member-profile-page .kd-member-profile-aside .kd-member-side-card{display:block!important;}
body.kd-member-profile-page .kd-member-profile-aside>.kd-member-aside-action{
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:8px!important;
}
body.kd-member-profile-page .kd-member-profile-aside>.kd-member-aside-action form,
body.kd-member-profile-page .kd-member-profile-aside>.kd-member-aside-action>a{
  width:100%!important;
  margin:0!important;
}
body.kd-member-profile-page .kd-member-profile-aside>.kd-member-aside-action button,
body.kd-member-profile-page .kd-member-profile-aside>.kd-member-aside-action>a{
  justify-content:center!important;
  text-align:center!important;
}

/* Detalle premium de la tarjeta de datos propia de Lamari. */
body.kd-member-profile-page .kd-member-premium-profile-facts{display:grid;gap:0;margin:0;padding:0;}
body.kd-member-profile-page .kd-member-premium-profile-facts>div{display:grid;grid-template-columns:minmax(0,42%) minmax(0,58%);gap:10px;padding:9px 0;border-bottom:1px solid #edf2ee;align-items:start;}
body.kd-member-profile-page .kd-member-premium-profile-facts>div:last-child{border-bottom:0;}
body.kd-member-profile-page .kd-member-premium-profile-facts dt{margin:0;color:#8a968e;font-size:11px;font-weight:700;line-height:1.35;}
body.kd-member-profile-page .kd-member-premium-profile-facts dd{margin:0;color:#28332b;font-size:12px;font-weight:800;line-height:1.4;text-align:right;overflow-wrap:anywhere;}

/* Tablet/móvil: una sola arquitectura, sin lateral nativo de ReadyLaunch. */
@media(max-width:950px){
  body.kd-member-profile-overview:not(.kd-member-company-profile):not(.kd-member-admin-profile) .kd-member-showcase{display:block!important;width:100%!important;}
  body.kd-member-profile-overview:not(.kd-member-company-profile):not(.kd-member-admin-profile) .kd-member-profile-aside{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    width:100%!important;
    margin-top:20px!important;
  }
  body.kd-member-profile-overview:not(.kd-member-company-profile):not(.kd-member-admin-profile) .kd-member-profile-aside .kd-member-aside-action{grid-column:1 / -1!important;}
  body.kd-member-profile-overview:not(.kd-member-company-profile):not(.kd-member-admin-profile) .kd-member-overview-content{display:block!important;width:100%!important;}
}
@media(max-width:700px){
  body.kd-member-profile-overview:not(.kd-member-company-profile):not(.kd-member-admin-profile) .kd-member-profile-aside{display:flex!important;flex-direction:column!important;}
}
