/* Child block styling */
.mun-stats-item{
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  min-height: 220px;
  padding: clamp(16px, 2vw, 28px);
  gap: 40px;
}
.mun-stats-item--unavailable .mun-stats-item__number {
  opacity: .6;
}
.mun-stats-item__heading{
  font-weight: 600;
  font-size: 20px;
  text-align: center;
}

.mun-stats-item__value{
  display:flex;
  align-items: baseline;
  gap: 10px;
  white-space: nowrap; 
  justify-content: center;
}

.mun-stats-item__number{
  display: inline-block;        /* så min-width funkar */
  font-variant-numeric: tabular-nums; /* jämna sifferbredder */
  font-feature-settings: "tnum" 1;     /* fallback */
  font-weight: 700;
  font-size: 150px;
  line-height: 1;
  font-family: 'Roboto Condensed', sans-serif;
}

.mun-stats-item__affix{
  font-weight: 700;
  font-size: clamp(18px, 2vw, 44px);
  font-family: 'Roboto Condensed', sans-serif;
  line-height: 1;
  letter-spacing: -2.55px;
}


/* Divider (vertical bar) */
.mun-stats-item__divider{
  width: 6px;
  height: clamp(180px, 18vw, 320px);
  background: currentColor;
  border-radius: 999px;
  align-self: center;
}

/* Default order: heading -> divider -> value */
.mun-stats-item__heading{ order: 1; }
.mun-stats-item__divider{ order: 2; }
.mun-stats-item__value{ order: 3; }

/* Featured (varannan): value -> divider -> heading */
.mun-stats-item.is-featured .mun-stats-item__value{ order: 1; }
.mun-stats-item.is-featured .mun-stats-item__divider{ order: 2; }
.mun-stats-item.is-featured .mun-stats-item__heading{ order: 3; }

@media (max-width: 781px){

  /* Gör ytan tajtare */
  .wp-block-moveupnorth-stats-carousel.mun-stats-carousel{
    padding-block: 24px;
  }

  /* Flytta pilarna till en tydlig "nav-rad" */
  .wp-block-moveupnorth-stats-carousel .mun-stats-carousel__nav{
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
  }

  .wp-block-moveupnorth-stats-carousel .mun-stats-carousel__btn{
    width: 52px;
    height: 52px;
  }

  /* Gör själva item-kompositionen tajtare */
  .wp-block-moveupnorth-stats-carousel .mun-stats-item{
    gap: 14px; /* minskar luft mellan rubrik/divider/value */
    padding-inline: 16px;
  }

  /* Divider: mycket kortare i mobil */
  .wp-block-moveupnorth-stats-carousel .mun-stats-item__divider{
    height: 140px; /* justera 110–160 efter smak */
    width: 6px;
  }

  /* Rubrik lite mindre + maxbredd så den inte känns "ensam" */
  .wp-block-moveupnorth-stats-carousel .mun-stats-item__heading{
    font-size: 18px;
    line-height: 1.2;
    max-width: 18ch;
    margin: 0 auto;
    text-align: center;
  }

  /* Värde: clamp så det inte blir för stort på smala skärmar */
  .wp-block-moveupnorth-stats-carousel .mun-stats-item__number{
    font-size: clamp(72px, 18vw, 120px);
    line-height: 1;
  }

  .wp-block-moveupnorth-stats-carousel .mun-stats-item__affix{
    font-size: clamp(18px, 4.2vw, 24px);
  }
}