/*
 * Page styles of /termekek/helymeghatarozas/ (PKG-AWGZQB). Every selector starts with the page-positioning body class
 * (plan §8.3); the building blocks follow the other product pages (machine-monitoring.css: five tile grid, numbered
 * stages, remark, chips; environment-management.css: overview figure at its own size with the caption beside it).
 */

/* --- Overview figure: the illustration on a white card, never wider than its own 772 px. From 76em the caption sits
   beside it, below that under it (beside a 772 px image a narrower container leaves too little room). --- */
.page-positioning .pos__overview {
  margin: 0;
  display: grid;
  gap: var(--space-4);
}

@media (min-width: 76em) {
  .page-positioning .pos__overview {
    grid-template-columns: minmax(0, 48.25rem) minmax(0, 1fr);
    gap: clamp(2rem, 4vw, 3.5rem);
    align-items: center;
  }
}

.page-positioning .pos__overview-frame {
  max-width: 48.25rem;
  background: var(--c-paper);
  border: 1px solid var(--c-line);
}

.page-positioning .pos__overview-frame img {
  height: auto;
}

.page-positioning .pos__overview-caption {
  max-width: 60ch;
  color: var(--c-text-2);
  font-size: var(--fs-1);
}

.page-positioning .pos__overview-caption a {
  white-space: nowrap;
}

/* --- Five technologies: 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-positioning .pos__tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-positioning .pos__tiles > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

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

  .page-positioning .pos__tiles > * {
    grid-column: span 2;
  }

  .page-positioning .pos__tiles > :nth-child(n + 4) {
    grid-column: span 3;
  }

  .page-positioning .pos__tiles > :last-child:nth-child(odd) {
    grid-column: span 3;
  }
}

/* --- The remark under the tiles: the turquoise brand line without a surface of its own --- */
.page-positioning .pos__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);
}

/* --- Text columns --- */
.page-positioning .pos__text .lead {
  margin-bottom: var(--space-5);
}

.page-positioning .pos__nobr {
  white-space: nowrap;
}

/* --- Numbered design steps: a real sequence (the questions, then the choice), joined by a hairline --- */
.page-positioning .pos__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: pos-step;
}

.page-positioning .pos__step {
  counter-increment: pos-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-positioning .pos__step {
    column-gap: var(--space-5);
  }
}

.page-positioning .pos__step:last-child {
  padding-bottom: 0;
}

.page-positioning .pos__step::before {
  content: counter(pos-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-positioning .pos__step::after {
  content: '';
  position: absolute;
  left: calc(1.375rem - 0.5px);
  top: 3.25rem;
  bottom: 0.5rem;
  width: 1px;
  background: var(--c-line);
}

.page-positioning .pos__step:last-child::after {
  display: none;
}

/* --- Designing the solution is the dark dotted band: the paragraphs are muted (like .lead), the steps stay light, the
   circles and the joining line use the dark hairline. --- */
.page-positioning .section--ink .pos__text p {
  color: var(--c-on-dark-2);
}

.page-positioning .section--ink .pos__step {
  color: var(--c-on-dark);
}

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

.page-positioning .section--ink .pos__step::after {
  background: var(--c-ink-line);
}

/* --- Business benefits --- */
.page-positioning .pos__benefits {
  max-width: 60rem;
}

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

.page-positioning .pos__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-positioning .pos__chips {
    padding-top: 0.35rem;
  }
}
