/* tagline-20261127: practice-area line under the header wordmark.
   Brandmark is an inline-flex column; wordmark and tagline share one center axis.
   Non-heading, title case, Montserrat Medium. Existing header min-heights absorb the extra line. */
@font-face{
  font-family:"SS Tag";
  src:url(/assets/fonts/montserrat-500.woff2) format("woff2");
  font-weight:500;
  font-display:swap;
}

html body.v4 header .brandmark.editorial-brand{
  display:inline-flex!important;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:3px;
  text-decoration:none!important;
  line-height:0;
  text-align:center;
  justify-self:start;
  width:auto;
  max-width:100%;
}

html body.v4 header .brandmark.editorial-brand picture,
html body.v4 header .brandmark.editorial-brand img{
  display:block;
  flex:0 0 auto;
}

html body.v4 header .brand-tagline{
  display:block;
  box-sizing:border-box;
  width:max-content;
  max-width:100%;
  margin:0;
  padding:0;
  font-family:"SS Tag","SS Head",Montserrat,Inter,system-ui,sans-serif;
  font-size:12px;
  font-weight:500;
  font-style:normal;
  letter-spacing:.01em;
  /* Cancel trailing letter-spacing so the box matches ink for true centering. */
  margin-inline-end:-.01em;
  color:#4a5670;
  line-height:1.2;
  text-transform:none!important;
  text-align:center;
  white-space:nowrap;
  overflow:visible;
  hyphens:none;
}

html body.v4 header .brand-tagline .brand-tagline-br{display:none}

/* Tablet and phone: keep the full tagline on one centered line. */
@media (max-width:1120px){
  html body.v4 header .brandmark.editorial-brand{gap:2px}
  html body.v4 header .brand-tagline{
    font-size:10.5px;
    letter-spacing:.01em;
    margin-inline-end:-.01em;
    white-space:nowrap;
  }
  html body.v4 header .brand-tagline .brand-tagline-br{display:none!important}
}

/* Phones: shrink type and slightly tighten the call pill so the full line fits
   without overlapping the number. Tagline may be wider than the wordmark and
   stays centered on it. */
@media (max-width:480px){
  html body.v4 header .wrap.nav{gap:8px}
  html body.v4 header .brand-tagline{
    font-size:8.5px;
    letter-spacing:0;
    margin-inline-end:0;
    line-height:1.15;
  }
  html body.v4 header .callbtn,
  html body.v4 header .callbtn.callbtn-live,
  html[lang="es"] body.v4 header .callbtn.callbtn-live{
    padding:5px 6px!important;
    min-height:44px;
    gap:1px!important;
  }
  html body.v4 header .callbtn .availability,
  html body.v4 header .callbtn .availability-text,
  html body.v4 header .callbtn .p,
  html body.is-home header .callbtn.callbtn-live .availability,
  html body.is-home header .callbtn.callbtn-live .p{
    font-size:10.5px!important;
    letter-spacing:0!important;
  }
}

/* Tightest phones: a little less chrome so 8.5px still clears the call pill. */
@media (max-width:360px){
  html body.v4 header .wrap.nav{
    gap:6px;
    padding-left:12px!important;
    padding-right:12px!important;
  }
  html body.v4 header .callbtn,
  html body.v4 header .callbtn.callbtn-live,
  html[lang="es"] body.v4 header .callbtn.callbtn-live{
    padding:4px 5px!important;
  }
  html body.v4 header .callbtn .availability,
  html body.v4 header .callbtn .availability-text,
  html body.v4 header .callbtn .p,
  html body.is-home header .callbtn.callbtn-live .availability,
  html body.is-home header .callbtn.callbtn-live .p{
    font-size:10px!important;
  }
  html body.v4 header .callbtn,
  html body.v4 header .callbtn.callbtn-live,
  html[lang="es"] body.v4 header .callbtn.callbtn-live{
    padding:4px 4px!important;
  }
  /* “Disponibles ahora” is wider than the phone number; shrink that label
     so the one-line Spanish tagline still clears the pill at 360px. */
  html body.v4 header .callbtn .availability-text,
  html body.is-home header .callbtn.callbtn-live .availability-text{
    font-size:9px!important;
  }
}
