/* Mobile footer: full-width brand introduction followed by four compact,
   balanced link groups in a two-column layout. */
@media (max-width:760px){
  html body.btb-site .btb-footer{
    padding:38px 0 calc(18px + env(safe-area-inset-bottom,0px))!important;
  }
  html body.btb-site .btb-footer-main{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    grid-auto-flow:row!important;
    align-items:start!important;
    gap:25px 18px!important;
    width:calc(100% - 36px)!important;
    max-width:560px!important;
    margin:0 auto!important;
    padding:0 0 25px!important;
    box-sizing:border-box!important;
  }
  html body.btb-site .btb-footer-main>.btb-footer-brand{
    grid-column:1 / -1!important;
    grid-row:auto!important;
    width:100%!important;
    max-width:440px!important;
    margin:0!important;
  }
  html body.btb-site .btb-footer-main>div:not(.btb-footer-brand){
    grid-column:auto!important;
    grid-row:auto!important;
    min-width:0!important;
    width:100%!important;
    margin:0!important;
  }
  html body.btb-site .btb-footer-main>div:nth-child(2){grid-column:1!important}
  html body.btb-site .btb-footer-main>div:nth-child(3){grid-column:2!important}
  html body.btb-site .btb-footer-main>div:nth-child(4){grid-column:1!important}
  html body.btb-site .btb-footer-main>div:nth-child(5){grid-column:2!important}
  html body.btb-site .btb-footer img.btb-footer-logo{
    width:190px!important;
    max-width:100%!important;
    height:auto!important;
    margin:0 0 13px!important;
  }
  html body.btb-site .btb-footer-brand>p{
    max-width:42ch!important;
    margin:0 0 14px!important;
    font-size:11px!important;
    line-height:1.65!important;
  }
  html body.btb-site .btb-footer .btb-social-links{
    display:flex!important;
    flex-wrap:wrap!important;
    align-items:center!important;
    gap:7px!important;
    margin:0!important;
  }
  html body.btb-site .btb-footer .btb-social-links>a{
    display:grid!important;
    place-items:center!important;
    width:32px!important;
    min-width:32px!important;
    height:32px!important;
    min-height:32px!important;
    margin:0!important;
    font-size:10px!important;
  }
  html body.btb-site .btb-footer h3{
    margin:0 0 10px!important;
    font-size:10px!important;
    line-height:1.35!important;
    letter-spacing:.07em!important;
    overflow-wrap:anywhere!important;
  }
  html body.btb-site .btb-footer ul,
  html body.btb-site .btb-footer .btb-footer-menu{
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    gap:3px!important;
    min-width:0!important;
    margin:0!important;
    padding:0!important;
    list-style:none!important;
  }
  html body.btb-site .btb-footer li{
    min-width:0!important;
    margin:0!important;
    padding:0!important;
  }
  html body.btb-site .btb-footer li a,
  html body.btb-site .btb-footer a:not(.btb-brand-text){
    display:inline-flex!important;
    align-items:flex-start!important;
    min-height:27px!important;
    max-width:100%!important;
    padding:4px 0!important;
    font-size:10px!important;
    line-height:1.45!important;
    white-space:normal!important;
    overflow-wrap:anywhere!important;
  }
  html body.btb-site .btb-footer .btb-footer-contact-copy{
    margin:14px 0 4px!important;
    font-size:10px!important;
    line-height:1.5!important;
  }
  html body.btb-site .btb-footer a.btb-footer-contact{
    display:inline-flex!important;
    min-height:28px!important;
    font-size:10px!important;
    font-weight:850!important;
  }
  html body.btb-site .btb-footer-bottom{
    display:flex!important;
    flex-direction:column!important;
    align-items:flex-start!important;
    justify-content:flex-start!important;
    gap:6px!important;
    width:calc(100% - 36px)!important;
    max-width:560px!important;
    min-height:0!important;
    margin:0 auto!important;
    padding:16px 0 4px!important;
    border-top:1px solid rgba(252,232,237,0.16)!important;
    font-size:9px!important;
    line-height:1.5!important;
    box-sizing:border-box!important;
  }
  html body.btb-site .btb-footer-bottom>span{
    display:block!important;
    width:100%!important;
    text-align:left!important;
    overflow-wrap:anywhere!important;
  }
  html body.btb-site .btb-footer-bottom>span:nth-child(2),
  html body.btb-site .btb-footer-bottom>span:last-child{
    grid-column:auto!important;
    text-align:left!important;
  }
}
@media(max-width:380px){
  html body.btb-site .btb-footer-main{
    width:calc(100% - 28px)!important;
    column-gap:13px!important;
  }
  html body.btb-site .btb-footer h3{font-size:9px!important}
  html body.btb-site .btb-footer li a,
  html body.btb-site .btb-footer a:not(.btb-brand-text){font-size:9px!important}
  html body.btb-site .btb-footer-bottom{width:calc(100% - 28px)!important}
  html body.btb-site main .btb-home-blog .btb-home-blog-grid>article>div{
    padding:13px 14px 14px!important;
  }
}


/* Align the page's reserved scroll space exactly with the fixed mobile nav.
   The nav is 68px tall; the old 76px body reserve exposed an 8px paper strip
   between the footer and the navigation at the very bottom of the page. */
@media(max-width:760px){
  html body.btb-site{
    padding-bottom:calc(68px + env(safe-area-inset-bottom,0px))!important;
  }
  html body.btb-site .btb-footer{
    margin-bottom:0!important;
    background:#000000!important;
  }
  html body.btb-site .btb-footer-bottom{
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:center!important;
    gap:5px!important;
    width:calc(100% - 36px)!important;
    max-width:560px!important;
    padding:15px 0 17px!important;
    text-align:center!important;
  }
  html body.btb-site .btb-footer-bottom>span,
  html body.btb-site .btb-footer-bottom>span:nth-child(2),
  html body.btb-site .btb-footer-bottom>span:last-child{
    display:block!important;
    width:100%!important;
    margin:0!important;
    text-align:center!important;
    line-height:1.5!important;
  }
}
@media(max-width:380px){
  html body.btb-site .btb-footer-bottom{
    width:calc(100% - 28px)!important;
  }
}


/* WordPress core Social Icons block in the footer. Keep the native SVG marks
   while preserving BTB's outlined circular icon treatment. */
html body.btb-site .btb-footer ul.btb-social-links.wp-block-social-links{
  display:flex!important;
  flex-flow:row wrap!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:9px!important;
  width:auto!important;
  margin:20px 0 0!important;
  padding:0!important;
  list-style:none!important;
}
html body.btb-site .btb-footer ul.btb-social-links.wp-block-social-links>li.wp-social-link{
  display:block!important;
  flex:0 0 auto!important;
  width:auto!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  list-style:none!important;
}
html body.btb-site .btb-footer ul.btb-social-links.wp-block-social-links>li>a.wp-block-social-link-anchor{
  display:grid!important;
  place-items:center!important;
  width:36px!important;
  min-width:36px!important;
  max-width:36px!important;
  height:36px!important;
  min-height:36px!important;
  margin:0!important;
  padding:0!important;
  border:1px solid rgba(255,255,255,0.25)!important;
  border-radius:50%!important;
  background:transparent!important;
  color:#FCE8ED!important;
  text-decoration:none!important;
  box-sizing:border-box!important;
  transition:color .18s ease,border-color .18s ease,background .18s ease!important;
}
html body.btb-site .btb-footer ul.btb-social-links.wp-block-social-links>li>a.wp-block-social-link-anchor svg{
  display:block!important;
  width:16px!important;
  min-width:16px!important;
  max-width:16px!important;
  height:16px!important;
  min-height:16px!important;
  max-height:16px!important;
  margin:0!important;
  fill:currentColor!important;
  color:inherit!important;
}
html body.btb-site .btb-footer ul.btb-social-links.wp-block-social-links>li>a.wp-block-social-link-anchor:hover{
  border-color:#E41C43!important;
  background:#E41C43!important;
  color:#000000!important;
}
@media(max-width:760px){
  html body.btb-site .btb-footer ul.btb-social-links.wp-block-social-links{
    gap:7px!important;
    margin:0!important;
  }
  html body.btb-site .btb-footer ul.btb-social-links.wp-block-social-links>li>a.wp-block-social-link-anchor{
    width:32px!important;
    min-width:32px!important;
    max-width:32px!important;
    height:32px!important;
    min-height:32px!important;
  }
  html body.btb-site .btb-footer ul.btb-social-links.wp-block-social-links>li>a.wp-block-social-link-anchor svg{
    width:15px!important;
    min-width:15px!important;
    max-width:15px!important;
    height:15px!important;
    min-height:15px!important;
    max-height:15px!important;
  }
}


