/* The three highlights of a use-case page, in the drawing language of the
   WIFIGATE Host and WIFIGATE Manager pages (css/automation.css, "Steps: three
   points on one wave"): white, one blue, thin lines, a drawing above each
   point of one wave and the copy below it. The highlights are not steps, so
   the points are status lights rather than numbers and the wave has no arrow.
   scripts/highlight-art.mjs draws the art and the wave. */
.niche-highlights--flow {
  --flow-blue: #146bff;
  --flow-hair: rgba(20, 107, 255, 0.3);
  padding: clamp(3.5rem, 8vw, 6rem) 0;
  background: #fff;
}

.niche-flow__track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 2.5rem;
}

.niche-flow__list,
.niche-flow__step {
  display: contents;
}

.niche-flow__art {
  grid-row: 1;
  justify-self: center;
  width: min(100%, 300px);
  height: auto;
}

.niche-flow__wave {
  grid-row: 2;
  grid-column: 1 / -1;
  width: 100%;
  height: auto;
}

.niche-flow__text {
  grid-row: 3;
  min-width: 0;
  margin-top: -1.6rem;
  text-align: center;
}

.niche-flow__step:nth-child(1) > * {
  grid-column: 1;
}

.niche-flow__step:nth-child(2) > * {
  grid-column: 2;
}

.niche-flow__step:nth-child(3) > * {
  grid-column: 3;
}

.niche-highlights--flow .niche-highlight__title {
  margin: 0 0 0.6rem;
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  line-height: 1.15;
}

.niche-highlights--flow .niche-highlight__text {
  max-width: 36ch;
  margin: 0 auto;
  line-height: 1.7;
}

.niche-highlights--flow .niche-highlight__cta {
  margin-top: 1.1rem;
}

/* Small print that qualifies a claim of the highlights. */
.niche-flow__note {
  margin: 2rem auto 0;
  color: #7c7c7c;
  font-size: 0.8rem;
  line-height: 1.55;
  text-align: center;
}

/* A point's own note sits at the foot of its column, so the notes of
   neighbouring points share one line whatever the length of their text. */
.niche-flow__text {
  display: flex;
  flex-direction: column;
}

.niche-flow__text .niche-highlight__note {
  margin-top: auto;
  padding-top: 0.6rem;
}

/* Narrow screens: the wave gives way to one column; a dashed line links the
   highlights and each title sits under its own status light. */
@media (max-width: 900px) {
  .niche-flow__track {
    display: block;
  }

  .niche-flow__wave {
    display: none;
  }

  .niche-flow__list {
    display: grid;
    gap: 0;
  }

  .niche-flow__step {
    display: block;
    text-align: center;
  }

  .niche-flow__step + .niche-flow__step::before {
    display: block;
    width: 0;
    height: 2.5rem;
    margin: 1.75rem auto;
    border-inline-start: 2px dashed var(--flow-hair);
    content: "";
  }

  .niche-flow__art {
    display: block;
    width: min(100%, 280px);
    margin-inline: auto;
  }

  .niche-flow__text {
    margin-top: 0.75rem;
  }

  .niche-highlights--flow .niche-highlight__title::before {
    display: block;
    width: 1.5rem;
    height: 1.5rem;
    margin: 0 auto 0.8rem;
    border: 2px solid var(--flow-blue);
    border-radius: 50%;
    background: radial-gradient(circle, var(--flow-blue) 0 0.3rem, #fff 0.34rem);
    content: "";
  }
}

/* ---------- Key benefits: a small drawing where the icon tile was ----------
   The drawing (scripts/benefit-art.mjs) keeps the tile's size and place and
   stands alone: no border, no background. Its colour is the benefit blue. */
.bento-card__icon--art {
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: #146bff;
}

.bento-card__icon--art svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

html.a11y-high-contrast .bento-card__icon--art {
  border: 0;
  background: none;
  color: #0542ad;
}
