/*
 * Page styles of /termekek/eses-es-ajulasfigyelo-rendszer/ (PKG-9ABG4J). Every selector starts with the
 * page-fall-detection body class (plan §8.3); the building blocks follow the other product pages
 * (energy-monitoring.css: full width overview figure; thermal-fire-prevention.css: six tile grid, numbered steps of the
 * dark band, limiting remark under the benefits, chips).
 */

/* --- Overview figure: the 1530 px illustration on a white card, full container width (never upscaled) --- */
.page-fall-detection .fd__overview {
  margin: 0;
}

.page-fall-detection .fd__overview-frame {
  background: var(--c-paper);
  border: 1px solid var(--c-line);
}

.page-fall-detection .fd__overview-frame img {
  height: auto;
}

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

/* --- Six functions: two columns between 40em and 64em (three full rows), three from 64em (tiles--3) --- */
@media (min-width: 40em) and (max-width: 63.99em) {
  .page-fall-detection .fd__tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* --- Text columns --- */
.page-fall-detection .fd__text .lead {
  margin-bottom: var(--space-5);
}

.page-fall-detection .fd__nobr {
  white-space: nowrap;
}

/* --- Numbered steps: a real sequence (wear, detect, alert, handle), joined by a hairline --- */
.page-fall-detection .fd__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: fd-step;
}

.page-fall-detection .fd__step {
  counter-increment: fd-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-fall-detection .fd__step {
    column-gap: var(--space-5);
  }
}

.page-fall-detection .fd__step:last-child {
  padding-bottom: 0;
}

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

.page-fall-detection .fd__step:last-child::after {
  display: none;
}

/* --- How it works 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-fall-detection .section--ink .fd__text p {
  color: var(--c-on-dark-2);
}

.page-fall-detection .section--ink .fd__step {
  color: var(--c-on-dark);
}

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

.page-fall-detection .section--ink .fd__step::after {
  background: var(--c-ink-line);
}

@media (min-width: 60em) {
  .page-fall-detection .fd__steps {
    margin-top: 0.35rem;
  }
}

/* --- Business and occupational safety benefits: limited to a readable width, the limiting remark under the list --- */
.page-fall-detection .fd__benefits {
  max-width: 60rem;
}

.page-fall-detection .fd__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-fall-detection .fd__chips {
  list-style: none;
  margin: 0;
  padding: 0;
  gap: var(--space-2);
}

.page-fall-detection .fd__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-fall-detection .fd__chips {
    padding-top: 0.35rem;
  }
}
