/* ==========================================================================
   ETHNOS R287 V1.7 — correction locale mode salon
   A MODIFIER :
   - bouton "Explorer tous les salons" : orange standard + placé avant
     la liste "Dans ce contexte" ;
   - salon central : haut juste sous l'onglet Profil ;
   - bord droit du salon : aligné sur le bord gauche de l'onglet Profil.

   A NE PAS TOUCHER :
   - Profil ;
   - Tchat hors mode salon ;
   - navigation ;
   - Annuaire / Médias / Maps ;
   - structure fonctionnelle R287.
   ========================================================================== */

@media (min-width:901px){

  /* Bouton remonté : avant la liste contextuelle, sans toucher au DOM. */
  body.r287v14Active .r287v14ContextHead{
    order:0 !important;
  }

  body.r287v14Active .r287v14Explore{
    order:1 !important;
    margin:10px 10px 4px !important;
    min-height:34px !important;
    border:1px solid rgba(6,28,41,.16) !important;
    background:var(--r287-orange) !important;
    color:var(--r287-slate) !important;
    box-shadow:0 3px 0 rgba(6,28,41,.20) !important;
  }

  body.r287v14Active .r287v14ContextList{
    order:2 !important;
  }

  /* Salon actif uniquement.
     Le Profil reste inchangé : on cale le salon sur ses dimensions existantes. */
  html[data-ethnos-ui="discord-r111"] body.r287v14Active .r287v14Chat{
    position:fixed !important;
    top:var(--ethnos-card-height) !important;
    right:var(--ethnos-context-width) !important;
    bottom:calc(var(--footer-legal,22px) + var(--r110-dock-height,54px) + var(--r185-edge-gap,10px)) !important;
    left:var(--ethnos-search-width) !important;
    width:auto !important;
    height:auto !important;
    margin:0 !important;
  }
}
