/*
 * Page styles of /iparagak/elelmiszeripar-es-italgyartas/environment-management-system/ (PKG-G47ERU). Every selector starts with the page-ems-food body class (plan §8.3).
 * Layout only: the tiles, the checklists, the split and the dark band are the shared classes of site.css; this file
 * adds the turquoise subtitles of the brochure, the overview photo of the product page (PKG-K96QTY), the numbered
 * cycle of the solution, the closing download row and the back button. The sister page ems-chemical.css uses the same rules
 * with its own prefix.
 */

/* --- The brochure's turquoise subtitles under "A probléma" and "A megoldás" --- */
.page-ems-food .ems__subtitle {
  margin: calc(var(--space-3) * -1) 0 0;
  max-width: 48ch;
  font: 500 var(--fs-3) / 1.35 var(--ff-display);
  color: var(--c-turq-700);
}

.page-ems-food .section--ink .ems__subtitle {
  color: var(--c-turq);
}

/* --- Introductions under the tile rows and the headings --- */
.page-ems-food .ems__intro,
.page-ems-food .ems__note {
  margin: var(--space-7) 0 0;
}

.page-ems-food .ems__problem-lead,
.page-ems-food .ems__solution-lead {
  margin: 0 0 var(--space-7);
}

.page-ems-food .ems__highlights,
.page-ems-food .ems__cycle {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-ems-food .ems__highlights h3 {
  font-size: var(--fs-2);
}

.page-ems-food .section--ink .ems__solution-lead strong {
  color: var(--c-on-dark);
}

.page-ems-food .tile strong {
  color: var(--c-text);
}

.page-ems-food .section--ink .tile strong {
  color: var(--c-on-dark);
}

/* --- The overview photo of the product page under the introduction (PKG-K96QTY): the same frame, caption and layout
   as environment-management.css. Never wider than its own 512 px; from 60em the caption sits beside it, below that
   under it. --- */
.page-ems-food .ems__overview {
  margin: var(--space-7) 0 0;
  display: grid;
  gap: var(--space-4);
}

@media (min-width: 60em) {
  .page-ems-food .ems__overview {
    grid-template-columns: minmax(0, 32rem) minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
  }
}

.page-ems-food .ems__overview-frame {
  max-width: 32rem;
  background: var(--c-paper);
  border: 1px solid var(--c-line);
}

.page-ems-food .ems__overview-frame img {
  height: auto;
}

.page-ems-food .ems__overview-caption {
  max-width: 44ch;
  color: var(--c-text-2);
  font-size: var(--fs-1);
}

/* --- The six steps of the solution: numbered boxes in their real order, two columns from 36em --- */
.page-ems-food .ems__cycle {
  display: grid;
  gap: var(--space-3);
  counter-reset: ems-step;
}

@media (min-width: 36em) {
  .page-ems-food .ems__cycle {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.page-ems-food .ems__cycle-step {
  counter-increment: ems-step;
  display: grid;
  grid-template-columns: 2.25rem 1.75rem minmax(0, 1fr);
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  border: 1px solid var(--c-ink-line);
  border-radius: var(--radius-m);
  background: var(--c-ink-2);
}

.page-ems-food .ems__cycle-step::before {
  content: counter(ems-step);
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--c-turq);
  font: 500 var(--fs-2) / 1 var(--ff-display);
  font-variant-numeric: tabular-nums;
  color: var(--c-ink);
}

.page-ems-food .ems__cycle-icon {
  width: 1.75rem;
  height: 1.75rem;
  color: var(--c-turq);
}

.page-ems-food .ems__cycle-title {
  font-family: var(--ff-display);
  font-weight: 500;
  color: var(--c-on-dark);
}

.page-ems-food .ems__benefits-title {
  margin: 0 0 var(--space-4);
  font-size: var(--fs-3);
  color: var(--c-on-dark);
}

.page-ems-food .ems__cards {
  margin-top: var(--space-8);
}

/* --- Case study --- */
.page-ems-food .ems__case p:not(.kicker) {
  margin: 0 0 var(--space-4);
}

/* --- The closing call next to the download card, then the button back to the industry page --- */
.page-ems-food .ems__cta .lead {
  margin-bottom: var(--space-5);
}

.page-ems-food .ems__cta-action {
  margin: 0;
}

.page-ems-food .ems__closing .download-card {
  color: var(--c-text);
}

.page-ems-food .ems__back {
  margin: var(--space-8) 0 0;
  padding-top: var(--space-6);
  border-top: 1px solid var(--c-ink-line);
}

/* The industry name makes the label long: on narrow screens it wraps instead of overflowing the page. */
.page-ems-food .ems__back .btn {
  max-width: 100%;
  white-space: normal;
  line-height: 1.3;
  text-align: left;
}

/* The shared arrow points to the right; mirrored, it points back. */
.page-ems-food .ems__back-icon {
  transform: scaleX(-1);
}
