/*
 * Page styles of /termekek/gepallapot-monitorozas/ (PKG-7TYZMT). Every selector starts with the
 * page-machine-monitoring body class (plan §8.3); the building blocks follow the first product page
 * (ai-production.css: overview figure, numbered stages, chips).
 */

/* --- Overview figure: the infographic on a white card, full container width --- */
.page-machine-monitoring .mm__overview {
  margin: 0;
}

.page-machine-monitoring .mm__overview-frame {
  background: var(--c-paper);
  border: 1px solid var(--c-line);
}

.page-machine-monitoring .mm__overview-frame img {
  height: auto;
}

.page-machine-monitoring .mm__overview-caption {
  margin-top: var(--space-4);
  max-width: 72ch;
  color: var(--c-text-2);
  font-size: var(--fs-0);
}

.page-machine-monitoring .mm__overview-caption a {
  white-space: nowrap;
}

/* --- Five monitored areas: no empty (hairline coloured) cell in the tile grid. Two columns: the fifth tile takes the
   whole last row; three columns: a six column grid, the first row has three tiles, the second row two wider ones. --- */
@media (min-width: 40em) {
  .page-machine-monitoring .mm__tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-machine-monitoring .mm__tiles > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

@media (min-width: 64em) {
  .page-machine-monitoring .mm__tiles {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .page-machine-monitoring .mm__tiles > * {
    grid-column: span 2;
  }

  .page-machine-monitoring .mm__tiles > :nth-child(n + 4) {
    grid-column: span 3;
  }

  .page-machine-monitoring .mm__tiles > :last-child:nth-child(odd) {
    grid-column: span 3;
  }
}

/* --- Text columns --- */
.page-machine-monitoring .mm__text .lead {
  margin-bottom: var(--space-5);
}

.page-machine-monitoring .mm__nobr {
  white-space: nowrap;
}

/* --- Numbered stages: a real sequence, joined by a hairline (as on the first product page) --- */
.page-machine-monitoring .mm__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: mm-step;
}

.page-machine-monitoring .mm__step {
  counter-increment: mm-step;
  position: relative;
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  column-gap: var(--space-4);
  align-items: center;
  min-height: 2.75rem;
  padding-bottom: var(--space-5);
  font: 500 var(--fs-2) / var(--lh-snug) var(--ff-display);
  color: var(--c-text);
}

@media (min-width: 40em) {
  .page-machine-monitoring .mm__step {
    column-gap: var(--space-5);
  }
}

.page-machine-monitoring .mm__step:last-child {
  padding-bottom: 0;
}

.page-machine-monitoring .mm__step::before {
  content: counter(mm-step);
  grid-column: 1;
  align-self: start;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--c-line);
  border-radius: 50%;
  background: var(--c-paper);
  font: 300 var(--fs-3) / 1 var(--ff-display);
  font-variant-numeric: tabular-nums;
  color: var(--c-turq-700);
}

.page-machine-monitoring .mm__step::after {
  content: '';
  position: absolute;
  left: calc(1.375rem - 0.5px);
  top: 3.25rem;
  bottom: 0.5rem;
  width: 1px;
  background: var(--c-line);
}

.page-machine-monitoring .mm__step:last-child::after {
  display: none;
}

/* --- How it works is the dark dotted band (like the hardware process): the paragraphs are muted (like .lead), the
   stages stay light, the circles and the joining line use the dark hairline. --- */
.page-machine-monitoring .section--ink .mm__text p {
  color: var(--c-on-dark-2);
}

.page-machine-monitoring .section--ink .mm__step {
  color: var(--c-on-dark);
}

.page-machine-monitoring .section--ink .mm__step::before {
  border-color: var(--c-ink-line);
  background: var(--c-ink-2);
  color: var(--c-turq);
}

.page-machine-monitoring .section--ink .mm__step::after {
  background: var(--c-ink-line);
}

/* --- Business benefits and the limiting remark: the turquoise brand line without a surface of its own, so the mist
   band stays mist (a white card there made the band read as white, PKG-DCBC7D CR2). --- */
.page-machine-monitoring .mm__benefits {
  max-width: 60rem;
}

.page-machine-monitoring .mm__note {
  max-width: 60rem;
  margin: var(--space-6) 0 0;
  padding: var(--space-2) 0 var(--space-2) var(--space-5);
  border-left: 2px solid var(--c-turq);
  color: var(--c-text-2);
}

/* --- Building blocks: hairline chips --- */
.page-machine-monitoring .mm__chips {
  list-style: none;
  margin: 0;
  padding: 0;
  gap: var(--space-2);
}

.page-machine-monitoring .mm__chip {
  display: inline-block;
  padding: 0.45rem 0.95rem;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  background: var(--c-paper);
  color: var(--c-text);
  font-size: var(--fs-1);
  line-height: 1.3;
  white-space: nowrap;
}

@media (min-width: 60em) {
  .page-machine-monitoring .mm__chips {
    padding-top: 0.35rem;
  }
}
