/* YR-002 visual corrections after desktop review.
   Loaded after home-yarak.css so these rules are the final contract for the
   mascot introduction block in the "Why Iranigram" section. */

@media (min-width:1024px){
  .ir-home-ref-brand-visual{
    overflow:visible !important;
  }

  /* Keep Yarak's identity badge small, centered under the mascot and above
     the surrounding fact cards. The mascot itself is centered around x=150px
     inside the desktop visual. */
  .ir-home-ref-brand-visual .ir-home-ref-brand-label{
    left:150px !important;
    right:auto !important;
    bottom:-6px !important;
    z-index:20 !important;
    width:168px !important;
    min-width:168px !important;
    height:56px !important;
    padding:0 12px !important;
    transform:translateX(-50%) !important;
    border-radius:14px !important;
  }

  .ir-home-ref-brand-visual .ir-home-ref-brand-label strong{
    font-size:16px !important;
    line-height:1.3 !important;
  }

  .ir-home-ref-brand-visual .ir-home-ref-brand-label span{
    margin-top:3px !important;
    font-size:9px !important;
    line-height:1.45 !important;
    white-space:nowrap;
  }

  /* White fact cards: icon on the RIGHT, copy immediately beside it. */
  .ir-home-ref-brand-visual .ir-home-ref-mini-fact{
    z-index:8 !important;
    box-sizing:border-box !important;
    display:flex !important;
    flex-direction:column !important;
    align-items:flex-start !important;
    justify-content:center !important;
    width:136px !important;
    min-height:62px !important;
    padding:9px 42px 9px 12px !important;
    direction:rtl !important;
    text-align:right !important;
  }

  .ir-home-ref-brand-visual .ir-home-ref-mini-fact::before{
    display:block !important;
    left:auto !important;
    right:13px !important;
    top:50% !important;
    margin:0 !important;
    transform:translateY(-50%) !important;
  }

  .ir-home-ref-brand-visual .ir-home-ref-mini-fact::after{
    content:none !important;
    display:none !important;
  }

  .ir-home-ref-brand-visual .ir-home-ref-mini-fact strong,
  .ir-home-ref-brand-visual .ir-home-ref-mini-fact span{
    width:100% !important;
    text-align:right !important;
  }
}

@media (max-width:1023px){
  body.ir-page-home .ir-home-ref-brand-label{
    z-index:20 !important;
    width:164px !important;
    min-width:164px !important;
    height:54px !important;
    padding:0 10px !important;
    border-radius:13px !important;
  }

  body.ir-page-home .ir-home-ref-brand-label strong{
    font-size:15px !important;
  }

  body.ir-page-home .ir-home-ref-brand-label span{
    margin-top:2px !important;
    font-size:8.8px !important;
    line-height:1.4 !important;
  }

  body.ir-page-home .ir-home-ref-mini-fact{
    box-sizing:border-box !important;
    display:flex !important;
    flex-direction:column !important;
    align-items:flex-start !important;
    justify-content:center !important;
    padding:9px 40px 9px 10px !important;
    direction:rtl !important;
    text-align:right !important;
  }

  body.ir-page-home .ir-home-ref-mini-fact::before{
    left:auto !important;
    right:12px !important;
    top:50% !important;
    transform:translateY(-50%) !important;
  }

  body.ir-page-home .ir-home-ref-mini-fact strong,
  body.ir-page-home .ir-home-ref-mini-fact span{
    width:100% !important;
    text-align:right !important;
  }
}

@media (max-width:420px){
  body.ir-page-home .ir-home-ref-brand-label{
    width:154px !important;
    min-width:154px !important;
    height:52px !important;
  }
}
