/* Adult BMI mobile scale fix 1.33.62.
   Desktop geometry is unchanged. On mobile the bar and marker use one responsive track. */
.bmi-full-scale{position:relative;padding-top:0}
.bmi-full-scale__track{position:relative;padding-top:1.4rem;min-width:0}
.bmi-full-scale__mobile-legend{display:none}

@media (max-width:640px){
  .bmi-full-scale{
    overflow:visible;
    padding:0;
  }
  .bmi-full-scale__track{
    width:100%;
    min-width:0;
    padding-top:1.4rem;
  }
  .bmi-full-scale__bar,
  .bmi-full-scale__captions{
    min-width:0;
    width:100%;
  }
  .bmi-full-scale__bar{
    min-height:2.8rem;
  }
  .bmi-full-scale__bar span{
    padding-inline:.08rem;
    font-size:clamp(.49rem,2.2vw,.62rem);
    line-height:1.05;
    white-space:nowrap;
  }
  .bmi-full-scale__captions{
    display:none;
  }
  .bmi-full-scale__marker{
    left:var(--bmi-marker);
  }
  .bmi-full-scale__marker::after{
    height:4rem;
  }
  .bmi-full-scale__marker span{
    top:4.48rem;
    z-index:4;
  }
  .bmi-full-scale__mobile-legend{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:.48rem .7rem;
    margin-top:2.55rem;
  }
  .bmi-full-scale__mobile-legend>span{
    display:grid;
    grid-template-columns:12px minmax(0,1fr) auto;
    gap:.42rem;
    align-items:center;
    min-width:0;
    color:#61695d;
    font-size:.68rem;
  }
  .bmi-full-scale__mobile-legend i{
    display:block;
    width:10px;
    height:10px;
    border-radius:50%;
  }
  .bmi-full-scale__mobile-legend i.is-underweight{background:#d7e3ef}
  .bmi-full-scale__mobile-legend i.is-reference{background:#dfe9ce}
  .bmi-full-scale__mobile-legend i.is-overweight{background:#f2dfaa}
  .bmi-full-scale__mobile-legend i.is-obesity1{background:#efc595}
  .bmi-full-scale__mobile-legend i.is-obesity2{background:#e9ad91}
  .bmi-full-scale__mobile-legend i.is-obesity3{background:#e98888}
  .bmi-full-scale__mobile-legend b{
    overflow:hidden;
    color:#535d4e;
    font-size:.67rem;
    font-weight:650;
    text-overflow:ellipsis;
    white-space:nowrap;
  }
  .bmi-full-scale__mobile-legend small{
    color:#7b8276;
    font-size:.62rem;
    white-space:nowrap;
  }
}

@media (max-width:380px){
  .bmi-full-scale__bar span{font-size:.47rem}
  .bmi-full-scale__mobile-legend{grid-template-columns:1fr}
}
