﻿/* What every solution's own page shares (Views/Solution/_ItemLayout.cshtml), on top of the shell in service-page.css: the
   banner (grp-*, first made for the group pages, which went on 06/11), then what the item pages add to it (itm-*).
   Each page's body is designed on its own; its styles go in its own file, linked from the page. */

/* ---------- Banner ---------- */
.grp-hero {
  padding: 12rem 0 6.4rem;
  background: linear-gradient(180deg, #e6f9fa 0%, #ffffff 100%);
  border-bottom: 1px solid #e3eef0;
}
.grp-hero__inner {
  max-width: 120rem;
}
.grp-hero__kicker {
  display: inline-block;
  padding: 0.4rem 1.2rem;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #9fe3e7;
  font-size: var(--fs-small);
  font-weight: 700;
  color: #0e2a38;
}
.grp-hero__title {
  margin: 1.6rem 0 0;
  font-size: var(--fs-h1);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: #0e2a38;
}
.grp-hero__text {
  max-width: 72rem;
  margin: 1.6rem 0 0;
  font-size: var(--fs-lead);
  line-height: 1.65;
  color: #3e5662;
}
.grp-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.6rem 2.4rem;
  margin-top: 3.2rem;
}
.grp-hero__link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  color: #0e2a38;
  text-decoration: none;
  border-bottom: 2px solid #00c2cb;
}
.grp-hero__link:hover {
  color: #00c2cb;
}
html[lang=ja] .grp-hero__title {
  word-break: keep-all;
  overflow-wrap: anywhere;
}

/* ---------- Phones ---------- */
@media (max-width: 767px) {
  /* The trail at the same height as on the other inner pages (11.2rem); the banner ends as the sections do (4.8rem) */
  .grp-hero {
    padding: 11.2rem 0 4.8rem;
  }
  .grp-hero__title {
    font-size: var(--fs-h1);
  }
  .grp-hero__text {
    font-size: var(--fs-lead);
  }
  .grp-hero__actions .btn-pill {
    width: 100%;
  }
}
/* Desktop: the trail starts below the corner of the header's logo, at the height of the line pages; that corner reaches
   furthest between 1367 and 1480px, where the logo is at full size and the container still near the screen's edge */
@media (min-width: 1025px) {
  .grp-hero {
    padding-top: 17.6rem;
  }
}
@media (min-width: 1367px) and (max-width: 1480px) {
  .grp-hero {
    padding-top: 20rem;
  }
}

/* ---------- Item pages ---------- */

/* 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 four steps (Home › line › category › page; the Services step went with the services page on 16/11). 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(2),
  .itm-hero .breadcrumb__item:nth-child(3) {
    flex-shrink: 100000;
    min-width: 10rem;
  }
  .itm-hero .breadcrumb__link {
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* The whole trail does 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) {
    display: none;
  }
}
