/* What every solution's own page shares (Views/Solutions/_ItemLayout.cshtml), on top of the banner in serviceGroup.css.
   Each page's body is designed on its own; its styles go in its own file, linked from the page. */

/* The name may be long: balanced lines, never one word left alone */
.itm-hero .grp-hero__title {
  max-width: 96rem;
  text-wrap: balance;
}

/* The trail has five steps (Home › Services › line › category › page). Short of room, the line and the category give way
   first, cut with an ellipsis, so the page's own name stays readable (main.css only lets the last step shrink). The weight
   is that large so the page's share of the shrinking stays under a pixel's fraction, which would already show its "…" */
@media (min-width: 768px) {
  .itm-hero .breadcrumb__item:nth-child(3),
  .itm-hero .breadcrumb__item:nth-child(4) {
    flex-shrink: 100000;
    min-width: 10rem;
  }
  .itm-hero .breadcrumb__link {
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* Five steps do not fit under 1024px (at 768–900px the page's name was cut to "…" and VI trails ran off the screen):
   phones and tablets keep home, the category and the page */
@media (max-width: 1023px) {
  .itm-hero .breadcrumb__item:nth-child(2),
  .itm-hero .breadcrumb__item:nth-child(3) {
    display: none;
  }
}
