/* HWGrow homepage banner manager v1.1.15. Header/footer/theme layout intentionally untouched. */
.hwg-home-empty-intro-wrapper{display:none!important;margin:0!important;padding:0!important;height:0!important;min-height:0!important}
.hwg-home-carousel{position:relative;width:100%;margin:0 0 34px;background:#fff;overflow:hidden}.hwg-home-carousel-track{position:relative}.hwg-home-carousel-slide{display:none;width:100%}.hwg-home-carousel-slide.is-active{display:block}.hwg-home-carousel-image{display:block;width:100%;overflow:hidden;background:#eee}.hwg-home-carousel-image img{display:block;width:100%;height:auto;max-height:720px;object-fit:cover}.hwg-home-carousel-copy{width:calc(100% - 40px);max-width:1170px;margin:0 auto;padding:24px 0 14px;text-align:left;box-sizing:border-box}.hwg-home-carousel-eyebrow{display:inline-block;background:#76cd26;color:#fff;padding:5px 11px;margin-bottom:14px;text-transform:uppercase;font-size:12px;letter-spacing:.06em}.hwg-home-carousel-copy h2{margin:0 0 14px;font:inherit;font-size:32px;font-weight:700;line-height:1.2;text-transform:uppercase;letter-spacing:.01em}.hwg-home-carousel-copy h2 a{color:inherit;text-decoration:none}.hwg-home-carousel-copy p{margin:0 0 14px;max-width:900px;font-size:17px;line-height:1.55}.hwg-home-carousel-links{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-weight:700}.hwg-home-carousel-links a{color:#168a1f;text-decoration:underline;text-underline-offset:2px}.hwg-home-carousel-links span{font-weight:400;color:#555}.hwg-home-carousel-arrow{position:absolute;top:min(34vw,340px);transform:translateY(-50%);width:42px;height:42px;border:0;border-radius:999px;background:rgba(0,0,0,.58);color:#fff;font-size:30px;line-height:1;display:flex;align-items:center;justify-content:center;cursor:pointer;z-index:4}.hwg-home-carousel-arrow.prev{left:14px}.hwg-home-carousel-arrow.next{right:14px}.hwg-home-carousel-dots{display:flex;justify-content:center;gap:7px;padding:0 0 4px}.hwg-home-carousel-dots button{width:9px;height:9px;padding:0;border:0;border-radius:50%;background:#bbb;cursor:pointer}.hwg-home-carousel-dots button.is-active{background:#76cd26;transform:scale(1.18)}
.hwg-growmies-preview{border:1px solid #e2e4e6;border-radius:10px;padding:14px;background:#fff}.hwg-growmies-preview-head{display:flex;justify-content:space-between;gap:8px;align-items:center;margin-bottom:10px}.hwg-growmies-preview-head span{font-size:11px;opacity:.65}.hwg-growmies-preview-messages article{display:flex;gap:8px;padding:7px 0;border-top:1px solid #eee}.hwg-growmies-preview-messages article:first-child{border-top:0}.hwg-growmies-preview-messages article > img.hwg-growmies-preview-avatar{width:34px;height:34px;border-radius:50%;object-fit:cover}.hwg-growmies-preview-messages p{margin:2px 0 0;font-size:12px;line-height:1.3}.hwg-growmies-preview-button{display:block;margin-top:10px;text-align:center;background:#76cd26;color:#102006!important;text-decoration:none!important;font-weight:700;border-radius:7px;padding:9px 10px}
@media(max-width:760px){.hwg-home-carousel{margin-bottom:24px}.hwg-home-carousel-image img{max-height:none}.hwg-home-carousel-copy{width:calc(100% - 28px);max-width:1170px;margin:0 auto;padding:18px 0 12px;text-align:left}.hwg-home-carousel-copy h2{font-size:24px}.hwg-home-carousel-copy p{font-size:15px}.hwg-home-carousel-arrow{top:28vw;width:36px;height:36px;font-size:26px}.hwg-home-carousel-arrow.prev{left:8px}.hwg-home-carousel-arrow.next{right:8px}.hwg-home-carousel-dots{padding:4px 0 0}}


/* v1.1.1: make My Growmies Chat preview immune to broad Atoms/sidebar image rules. */
.hwg-growmies-preview{
  width:100%!important;
  max-width:100%!important;
  box-sizing:border-box!important;
  overflow:hidden!important;
}
.hwg-growmies-preview-head{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  gap:2px!important;
  align-items:start!important;
}
.hwg-growmies-preview-head strong{
  display:block!important;
  margin:0!important;
  line-height:1.2!important;
}
.hwg-growmies-preview-head span{
  display:block!important;
  margin:0!important;
  line-height:1.3!important;
}
.hwg-growmies-preview-messages,
.hwg-growmies-preview-messages article,
.hwg-growmies-preview-messages article > div{
  min-width:0!important;
  box-sizing:border-box!important;
}
.hwg-growmies-preview-messages article{
  display:grid!important;
  grid-template-columns:34px minmax(0,1fr)!important;
  gap:8px!important;
  align-items:start!important;
}
.hwg-growmies-preview .hwg-growmies-preview-messages article > img.hwg-growmies-preview-avatar{
  display:block!important;
  width:34px!important;
  height:34px!important;
  min-width:34px!important;
  min-height:34px!important;
  max-width:34px!important;
  max-height:34px!important;
  aspect-ratio:1/1!important;
  border-radius:50%!important;
  object-fit:cover!important;
  object-position:center!important;
  margin:0!important;
  padding:0!important;
  float:none!important;
}
.hwg-growmies-preview-messages article strong{
  display:block!important;
  overflow:hidden!important;
  white-space:nowrap!important;
  text-overflow:ellipsis!important;
  line-height:1.2!important;
}
.hwg-growmies-preview-messages article p{
  overflow-wrap:anywhere!important;
  word-break:normal!important;
}
@media(max-width:760px){
  .hwg-growmies-preview{
    padding:12px!important;
    border-radius:9px!important;
    margin-left:0!important;
    margin-right:0!important;
  }
  .hwg-growmies-preview-head{margin-bottom:7px!important}
  .hwg-growmies-preview-messages article{
    grid-template-columns:30px minmax(0,1fr)!important;
    gap:7px!important;
    padding:6px 0!important;
  }
  .hwg-growmies-preview .hwg-growmies-preview-messages article > img.hwg-growmies-preview-avatar{
    width:30px!important;
    height:30px!important;
    min-width:30px!important;
    min-height:30px!important;
    max-width:30px!important;
    max-height:30px!important;
  }
  .hwg-growmies-preview-messages article strong{font-size:13px!important}
  .hwg-growmies-preview-messages p{font-size:12px!important;line-height:1.28!important}
  .hwg-growmies-preview-button{padding:10px!important;font-size:14px!important}
}



/* v1.1.7: exact Atoms source fix, verified against the live diagnostic. */
/* The legacy semantic-intro plugin still renders this server-side. Hide it before JS runs. */
body.home .hwg-home-intro,
body.front-page .hwg-home-intro{
  display:none!important;
  margin:0!important;
  padding:0!important;
  height:0!important;
  min-height:0!important;
  max-height:0!important;
  overflow:hidden!important;
  border:0!important;
}

/* Atoms library/custom_css.php applies the global margin-top to every
   .atbs-block-custom-margin. The homepage hero is the first
   #site-content child and carries .atbs-feature-slider-d. Remove that
   inter-module margin only for this first homepage hero. */
body.home #site-content > .atbs-feature-slider-d:first-child,
body.front-page #site-content > .atbs-feature-slider-d:first-child{
  margin-top:0!important;
  padding-top:0!important;
}
body.home #site-content > .atbs-feature-slider-d:first-child > .atbs-block__inner,
body.front-page #site-content > .atbs-feature-slider-d:first-child > .atbs-block__inner{
  margin-top:0!important;
  padding-top:0!important;
}

/* The custom carousel is mounted next to the original Atoms article in
   the first .slide-content. Keep the replaced card (including its Welcome
   category/date bubble) permanently hidden once mounted. */
.hwg-home-banner-host > article.post,
.hwg-home-banner-host > .post{
  display:none!important;
}
.hwg-home-banner-host{
  margin-top:0!important;
  padding-top:0!important;
}
.hwg-home-banner-host > .hwg-home-carousel{
  margin-top:0!important;
  top:auto!important;
  transform:none!important;
}

/* Wide screens: center the information column, but keep its content left aligned. */
.hwg-home-carousel-copy{
  width:calc(100% - 40px)!important;
  max-width:1170px!important;
  margin-left:auto!important;
  margin-right:auto!important;
  text-align:left!important;
}
.hwg-home-carousel-copy h2,
.hwg-home-carousel-copy p,
.hwg-home-carousel-links{
  text-align:left!important;
}

@media(max-width:760px){
  .hwg-home-carousel-copy{
    width:calc(100% - 28px)!important;
    max-width:1170px!important;
    margin-left:auto!important;
    margin-right:auto!important;
  }
}


/* v1.1.9: exact Atoms page-builder class confirmed from diagnostic HTML. */
body.home-page .hwg-home-intro{display:none!important;margin:0!important;padding:0!important;height:0!important;min-height:0!important;max-height:0!important;overflow:hidden!important;border:0!important}
body.home-page #site-content.site-content{padding-top:0!important}
body.home-page #site-content>.atbs-feature-slider-d:first-child,body.home-page #site-content>.atbs-feature-slider-d:first-child>.atbs-block__inner{margin-top:0!important;padding-top:0!important}
body.home-page .hwg-home-carousel-copy{width:calc(100% - 40px)!important;max-width:1170px!important;margin-left:auto!important;margin-right:auto!important;text-align:left!important;box-sizing:border-box!important}
body.home-page .hwg-home-carousel-copy h2,body.home-page .hwg-home-carousel-copy p,body.home-page .hwg-home-carousel-links{text-align:left!important}
@media(max-width:760px){body.home-page .hwg-home-carousel-copy{width:calc(100% - 28px)!important}}

/* v1.1.10: tighten only the transition from the homepage hero to the first article grid. */
body.home-page .hwg-home-carousel{margin-bottom:12px!important}
body.home-page #site-content > .atbs-feature-slider-d + .listing-grid-1-has-sidebar{margin-top:18px!important}
@media(max-width:760px){
  body.home-page .hwg-home-carousel{margin-bottom:8px!important}
  body.home-page #site-content > .atbs-feature-slider-d + .listing-grid-1-has-sidebar{margin-top:14px!important}
}

/* v1.1.11: HWGrow banner is now an independent primary homepage module. */
body.home-page #site-content.site-content{
  padding-top:0!important;
}
body.home-page #site-content > .hwg-home-carousel:first-child{
  display:block!important;
  width:100%!important;
  margin:0 0 6px!important;
  padding:0!important;
}
/* Compact handoff from hero to the first remaining Atoms module. */
body.home-page #site-content > .hwg-home-carousel:first-child + .atbs-block-custom-margin{
  margin-top:8px!important;
}
/* If the legacy Atoms Featured Slider gets restored, it must not compete with HWGrow. */
body.home-page #site-content > .atbs-feature-slider-d{
  display:none!important;
}
@media(max-width:760px){
  body.home-page #site-content > .hwg-home-carousel:first-child{margin-bottom:4px!important}
  body.home-page #site-content > .hwg-home-carousel:first-child + .atbs-block-custom-margin{margin-top:6px!important}
}


/* v1.1.12 — explicit Atoms Short Code module placement.
   The shortcode wrapper breaks out of ordinary inner-width containers so the
   hero image can remain full-bleed while the copy uses its centered max width. */
body.home-page .hwg-home-banner-shortcode-wrap{
  display:block!important;
  width:100vw!important;
  max-width:none!important;
  position:relative!important;
  left:50%!important;
  margin-left:-50vw!important;
  margin-right:-50vw!important;
  margin-top:0!important;
  margin-bottom:0!important;
  padding:0!important;
  box-sizing:border-box!important;
  overflow:hidden!important;
}
body.home-page .hwg-home-banner-shortcode-wrap > .hwg-home-carousel{
  margin-top:0!important;
}
body.home-page .hwg-home-banner-module,
body.home-page .hwg-home-banner-module.atbs-block-custom-margin{
  margin-top:0!important;
  margin-bottom:0!important;
  padding-top:0!important;
  padding-bottom:0!important;
}


/* v1.1.13: render Community Chat GIFs as media instead of leaking [[HWGGIF:...]] tokens. */
.hwg-growmies-preview .hwg-growmies-preview-message{
  min-width:0!important;
  overflow:hidden!important;
}
.hwg-growmies-preview .hwg-growmies-preview-gif{
  display:block!important;
  width:auto!important;
  height:auto!important;
  min-width:0!important;
  min-height:0!important;
  max-width:100%!important;
  max-height:180px!important;
  aspect-ratio:auto!important;
  object-fit:contain!important;
  object-position:left top!important;
  border-radius:8px!important;
  margin:5px 0 1px!important;
  padding:0!important;
  float:none!important;
  background:#f3f4f3!important;
}
@media(max-width:760px){
  .hwg-growmies-preview .hwg-growmies-preview-gif{
    max-height:160px!important;
    border-radius:7px!important;
  }
}


/* v1.1.14: show real My Growmies Chat photo attachments in the sidebar preview. */
.hwg-growmies-preview .hwg-growmies-preview-photo{
  display:block!important;
  width:auto!important;
  height:auto!important;
  min-width:0!important;
  min-height:0!important;
  max-width:100%!important;
  max-height:210px!important;
  aspect-ratio:auto!important;
  object-fit:contain!important;
  object-position:left top!important;
  border-radius:8px!important;
  margin:5px 0 1px!important;
  padding:0!important;
  float:none!important;
  background:#f3f4f3!important;
}
@media(max-width:760px){
  .hwg-growmies-preview .hwg-growmies-preview-photo{max-height:180px!important;border-radius:7px!important}
}


/* v1.1.15: force chat photo attachments to occupy visible sidebar width. */
.hwg-growmies-preview .hwg-growmies-preview-photo{
  width:100%!important;
  max-width:100%!important;
}
