/* QARAR Enterprise v26.3.137 — requested community, observatory, sharing and responsive-header refinements. */

/* 1) Community: center every hierarchy row without changing its DOM/order. */
@media (min-width:781px){
  body.page-template-page-community .community-group-people .org-people-grid,
  body.page-template-page-community-group .community-internal-people .org-people-grid,
  body.tax-qarar_person_group .internal-content .org-people-grid{
    grid-template-columns:repeat(auto-fit,minmax(240px,286px))!important;
    justify-content:center!important;
    justify-items:stretch!important;
    margin-inline:auto!important;
  }
}

/* 2) Observatory team portraits: show the complete uploaded portrait inside the circle. */
.qarar-observatory-person-photo img{
  width:100%!important;
  height:100%!important;
  object-fit:contain!important;
  object-position:center center!important;
  transform:none!important;
}

/* 3) Instagram visual treatment in the compact share row. */
.qarar-share-compact__action--instagram{color:#C13584;border-color:#efc8dd}
.qarar-share-compact__action--instagram svg{fill:none!important;stroke:currentColor!important;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

/* 4) Tablet/mobile header: reserve dedicated geometry for identity + tools.
      Search can no longer float over either bilingual title line. */
@media(max-width:1100px){
  .qarar-v7-header .header-identity-row,
  body.home .qarar-v7-header .header-identity-row,
  body.front-page .qarar-v7-header .header-identity-row{
    position:relative!important;
    display:grid!important;
    grid-template-columns:68px minmax(0,1fr) 104px!important;
    align-items:center!important;
    column-gap:10px!important;
  }
  .qarar-v7-header .brand-lockup.qarar-emblem-lockup{grid-column:1!important;grid-row:1!important}
  .qarar-v7-header .qarar-header-brand-copy{
    grid-column:2!important;grid-row:1!important;
    width:100%!important;min-width:0!important;max-width:none!important;
    margin:0!important;padding-inline-start:11px!important;
    align-self:center!important;
  }
  .qarar-v7-header .header-identity-actions{
    grid-column:3!important;grid-row:1!important;
    width:44px!important;justify-self:end!important;
    margin:0!important;padding:0!important;
  }
  .qarar-v7-header .navigation-tools{
    position:absolute!important;
    inset-inline-start:auto!important;
    inset-inline-end:52px!important;
    top:50%!important;
    transform:translateY(-50%)!important;
    z-index:9!important;
    margin:0!important;padding:0!important;border:0!important;
  }
  .qarar-v7-header .navigation-tools .lang-link{display:none!important}
  .qarar-v7-header .navigation-tools .search-toggle{width:38px!important;height:38px!important}
}
@media(max-width:620px){
  .qarar-v7-header .header-identity-row,
  body.home .qarar-v7-header .header-identity-row,
  body.front-page .qarar-v7-header .header-identity-row{
    grid-template-columns:58px minmax(0,1fr) 96px!important;
    column-gap:7px!important;
  }
  .qarar-v7-header .qarar-header-brand-copy{
    max-width:none!important;
    padding-inline-start:8px!important;
  }
  .qarar-v7-header .qarar-header-brand-ar{
    font-size:12px!important;line-height:1.22!important;white-space:normal!important;
  }
  .qarar-v7-header .qarar-header-brand-en{
    font-size:10.75px!important;line-height:1.22!important;white-space:normal!important;
  }
  .qarar-v7-header .navigation-tools{inset-inline-end:48px!important;top:50%!important}
}
@media(max-width:430px){
  .qarar-v7-header .header-identity-row,
  body.home .qarar-v7-header .header-identity-row,
  body.front-page .qarar-v7-header .header-identity-row{
    grid-template-columns:54px minmax(0,1fr) 88px!important;
    column-gap:5px!important;
  }
  .qarar-v7-header .qarar-header-brand-copy{max-width:none!important;padding-inline-start:6px!important}
  .qarar-v7-header .qarar-header-brand-ar{font-size:11px!important}
  .qarar-v7-header .qarar-header-brand-en{font-size:9.75px!important}
  .qarar-v7-header .navigation-tools{inset-inline-end:44px!important}
  .qarar-v7-header .navigation-tools .search-toggle{width:34px!important;height:34px!important}
}
.qarar-share--direct .qarar-share__action--instagram svg{background:#fceef6;color:#C13584;fill:none!important;stroke:currentColor!important;stroke-width:1.8!important}
