﻿/* 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 ---------- */
/* The trail at the height it has on the other inner pages (13.6rem on tablets, more on desktops below); the banner ends as
   the sections do (9.6rem) */
.grp-hero {
  padding: 13.6rem 0 9.6rem;
  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: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  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;
}
/* The line the solution is part of (20/11, option A of three in-page sketches): a flat white card like the nodes of the
   board beside it, the line's icon in a cyan tile, "Part of" over the line's name. Navigation, not a call to action, so
   neither yellow nor the estimator's pill; no shadow (quiet secondary UI), the border turns cyan on hover */
.itm-line {
  display: inline-flex;
  align-items: center;
  gap: 1.2rem;
  max-width: 100%;
  padding: 0.8rem 1.8rem 0.8rem 0.8rem;
  border: 1px solid #cfe9ec;
  border-radius: 1.2rem;
  background: #ffffff;
  color: #0e2a38;
  text-decoration: none;
  transition: border-color 0.2s, background-color 0.2s;
}
.itm-line:hover,
.itm-line:focus-visible {
  border-color: #00c2cb;
  background: #f7fdfd;
  color: #0e2a38;
}
.itm-line:focus-visible {
  outline: 2px solid #0e2a38;
  outline-offset: 3px;
}
.itm-line__icon {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 4rem;
  height: 4rem;
  border-radius: 0.8rem;
  background: #00c2cb;
  color: #ffffff;
}
.itm-line__text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}
.itm-line__label {
  font-size: var(--fs-label);
  font-weight: 600;
  line-height: 1.3;
  color: #5b7280;
}
.itm-line__name {
  font-size: var(--fs-small);
  font-weight: 700;
  line-height: 1.3;
  text-wrap: balance;
}
html[lang=ja] .itm-line__name {
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.itm-line__arrow {
  display: inline-flex;
  flex: none;
  margin-left: 0.8rem;
  color: #00a3ab;
  transition: transform 0.2s;
}
.itm-line:hover .itm-line__arrow {
  transform: translateX(3px);
}
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);
  }
}
/* 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;
  }
}
