/* McCloud Gutter controlled branding update v2.
   Approved main logo + separate Best of Caldwell / Best of Burke badges.
   Mobile intentionally swaps to the approved square logo for readability. */

.site-header .mg-brand-cluster{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:.42rem!important;
  flex:0 1 auto!important;
  min-width:0!important;
  line-height:0!important;
}
.site-header .mg-brand-cluster .brand{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  flex:0 0 auto!important;
  min-width:0!important;
  max-width:none!important;
  line-height:0!important;
}
.site-header .mg-brand-cluster .brand picture{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  line-height:0!important;
}
.site-header .mg-brand-cluster .brand img.mg-main-logo{
  display:block!important;
  width:128px!important;
  height:128px!important;
  max-width:128px!important;
  max-height:128px!important;
  object-fit:contain!important;
  object-position:center!important;
  border-radius:0!important;
  filter:drop-shadow(0 5px 9px rgba(11,43,92,.12))!important;
}
.site-header .mg-header-award{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  flex:0 0 auto!important;
  line-height:0!important;
  text-decoration:none!important;
}
.site-header .mg-header-award img{
  display:block!important;
  width:auto!important;
  height:62px!important;
  max-height:62px!important;
  max-width:66px!important;
  object-fit:contain!important;
  border-radius:0!important;
  box-shadow:none!important;
  filter:none!important;
}
.site-header .mg-header-award:focus-visible{
  outline:3px solid #0c63b7!important;
  outline-offset:3px!important;
  border-radius:6px!important;
}

@media (max-width:1100px){
  .site-header .mg-brand-cluster{gap:.28rem!important}
  .site-header .mg-brand-cluster .brand img.mg-main-logo{
    width:112px!important;height:112px!important;max-width:112px!important;max-height:112px!important
  }
  .site-header .mg-header-award img{
    height:48px!important;max-height:48px!important;max-width:52px!important
  }
}

/* Mobile: use the approved square/plain logo instead of shrinking the tagline version
   until its small type becomes unreadable. Awards remain visible but secondary. */
@media (max-width:900px){
  .site-header .mg-brand-cluster{
    flex:1 1 auto!important;
    max-width:calc(100% - 5rem)!important;
    gap:.20rem!important;
  }
  .site-header .mg-brand-cluster .brand img.mg-main-logo{
    width:72px!important;height:72px!important;max-width:72px!important;max-height:72px!important
  }
  .site-header .mg-header-award img{
    height:34px!important;max-height:34px!important;max-width:38px!important
  }
}

@media (max-width:520px){
  .site-header .mg-brand-cluster{
    gap:.14rem!important;
    max-width:calc(100% - 4.5rem)!important;
  }
  .site-header .mg-brand-cluster .brand img.mg-main-logo{
    width:66px!important;height:66px!important;max-width:66px!important;max-height:66px!important
  }
  .site-header .mg-header-award img{
    height:30px!important;max-height:30px!important;max-width:33px!important
  }
}
