/* LaranSys v6.0.29 HF5
   Footer brand layout repair.
   Fixes a cascade regression introduced when logo selectors also targeted
   the .ls-footer-v617__brand container itself. */

/* Restore the footer grid dimensions from v6.0.17. */
.public-footer.ls-footer-v617 .ls-footer-v617__main{
  grid-template-columns:minmax(300px,1.45fr) repeat(3,minmax(140px,.72fr)) minmax(250px,1fr) !important;
  gap:44px !important;
  align-items:start !important;
}

/* IMPORTANT: brand is a vertical content container, never a logo-sized box. */
.public-footer.ls-footer-v617 .ls-footer-v617__brand{
  display:block !important;
  width:100% !important;
  min-width:0 !important;
  max-width:360px !important;
  overflow:visible !important;
  padding:0 !important;
  margin:0 !important;
}

/* Only the anchor is the logo box. */
.public-footer.ls-footer-v617 .ls-footer-v617__logo{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  width:auto !important;
  min-width:0 !important;
  max-width:176px !important;
  overflow:visible !important;
  margin:0 !important;
  padding:0 !important;
}

.public-footer.ls-footer-v617 .ls-footer-v617__logo img{
  display:block !important;
  width:164px !important;
  min-width:0 !important;
  max-width:164px !important;
  height:auto !important;
  max-height:none !important;
  object-fit:contain !important;
  object-position:left top !important;
  margin:0 !important;
}

/* Text must start below the logo instead of beside it. */
.public-footer.ls-footer-v617 .ls-footer-v617__brand > p{
  display:block !important;
  width:100% !important;
  max-width:330px !important;
  margin:18px 0 0 !important;
  color:#8f9c93 !important;
  font-size:13px !important;
  line-height:1.72 !important;
}

/* Pills return to a normal wrapping row. */
.public-footer.ls-footer-v617 .ls-footer-v617__pill-row{
  display:flex !important;
  flex-direction:row !important;
  align-items:center !important;
  gap:7px !important;
  flex-wrap:wrap !important;
  width:100% !important;
  max-width:330px !important;
  margin:20px 0 0 !important;
}

.public-footer.ls-footer-v617 .ls-footer-v617__pill-row span{
  flex:0 0 auto !important;
  white-space:nowrap !important;
}

/* Social area lives under the pills and stays horizontal/readable. */
.public-footer.ls-footer-v617 .ls-footer-v617__social{
  display:flex !important;
  flex-direction:column !important;
  align-items:flex-start !important;
  gap:10px !important;
  width:100% !important;
  max-width:330px !important;
  margin:22px 0 0 !important;
}

.public-footer.ls-footer-v617 .ls-footer-v617__social-label{
  display:flex !important;
  align-items:center !important;
  width:auto !important;
  white-space:nowrap !important;
}

.public-footer.ls-footer-v617 .ls-footer-v617__social-links{
  display:flex !important;
  flex-direction:row !important;
  flex-wrap:wrap !important;
  gap:8px !important;
  width:100% !important;
}

.public-footer.ls-footer-v617 .ls-footer-v617__social-link{
  display:inline-flex !important;
  flex:0 0 auto !important;
  align-items:center !important;
  width:auto !important;
  min-width:0 !important;
  max-width:100% !important;
  white-space:nowrap !important;
}

/* Keep navigation/contact columns stable. */
.public-footer.ls-footer-v617 .ls-footer-v617__column,
.public-footer.ls-footer-v617 .ls-footer-v617__contact{
  min-width:0 !important;
}

@media(max-width:1200px){
  .public-footer.ls-footer-v617 .ls-footer-v617__main{
    grid-template-columns:1.2fr repeat(2,1fr) !important;
    gap:34px !important;
  }

  .public-footer.ls-footer-v617 .ls-footer-v617__brand{
    grid-column:1/-1 !important;
    max-width:580px !important;
  }

  .public-footer.ls-footer-v617 .ls-footer-v617__brand > p,
  .public-footer.ls-footer-v617 .ls-footer-v617__pill-row,
  .public-footer.ls-footer-v617 .ls-footer-v617__social{
    max-width:520px !important;
  }

  .public-footer.ls-footer-v617 .ls-footer-v617__contact{
    grid-column:3 !important;
  }
}

@media(max-width:860px){
  .public-footer.ls-footer-v617 .ls-footer-v617__main{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:28px !important;
  }

  .public-footer.ls-footer-v617 .ls-footer-v617__brand,
  .public-footer.ls-footer-v617 .ls-footer-v617__contact{
    grid-column:1/-1 !important;
  }

  .public-footer.ls-footer-v617 .ls-footer-v617__brand{
    max-width:100% !important;
  }

  .public-footer.ls-footer-v617 .ls-footer-v617__logo img{
    width:150px !important;
    max-width:150px !important;
  }

  .public-footer.ls-footer-v617 .ls-footer-v617__brand > p,
  .public-footer.ls-footer-v617 .ls-footer-v617__pill-row,
  .public-footer.ls-footer-v617 .ls-footer-v617__social{
    max-width:560px !important;
  }
}

@media(max-width:520px){
  .public-footer.ls-footer-v617 .ls-footer-v617__main{
    grid-template-columns:1fr !important;
  }

  .public-footer.ls-footer-v617 .ls-footer-v617__brand,
  .public-footer.ls-footer-v617 .ls-footer-v617__contact{
    grid-column:auto !important;
  }

  .public-footer.ls-footer-v617 .ls-footer-v617__logo img{
    width:132px !important;
    max-width:132px !important;
  }

  .public-footer.ls-footer-v617 .ls-footer-v617__brand > p,
  .public-footer.ls-footer-v617 .ls-footer-v617__pill-row,
  .public-footer.ls-footer-v617 .ls-footer-v617__social{
    max-width:100% !important;
  }

  .public-footer.ls-footer-v617 .ls-footer-v617__social-link{
    max-width:100% !important;
  }
}
