@layer sections {
/* ── Steps ─────────────────────────────────────────────── */
.detail-right {
  flex: 1;
  padding: 28px 36px;
  overflow-y: auto;
  background: var(--bg);
}
.steps-list { display: flex; flex-direction: column; gap: 12px; max-width: 680px; margin-bottom: 32px; }
.step-row {
  display: flex;
  gap: 18px;
  padding: 20px 22px;
  border-radius: var(--r-lg);
  background: transparent;
  border: 1px solid transparent;
  transition: background var(--t-slow), border-color var(--t-slow);
}
.step-row--active {
  background: var(--surface) !important;
  border-color: var(--border) !important;
  box-shadow: 0 2px 12px oklch(var(--shadow-color) / 0.05);
}
.step-num {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--border);
  color: var(--faint);
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--t-slow), color var(--t-slow);
  margin-top: 1px;
}
.step-row--active .step-num {
  background: var(--sage-bg) !important;
  color: var(--sage-fg) !important;
}
.step-content { flex: 1; min-width: 0; }
.step-text { font-size: 17px; color: var(--text); line-height: 1.6; margin: 0; }
.step-ingredients { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.step-ingredient-pill {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  color: var(--peach-fg);
  background: var(--peach-bg);
  border: none;
  border-radius: 24px;
  padding: 7px 16px;
  cursor: pointer;
  transition: opacity var(--t-slow);
}
/* Green check badge anchored to the pill's top-right corner; hidden until
   the pill is marked .processed. The pill itself fades to read as "done". */
.step-ingredient-pill-check {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--sage-dot);
  color: white;
  display: none;
  align-items: center;
  justify-content: center;
}
.step-ingredient-pill.processed { opacity: 0.45; }
.step-ingredient-pill.processed .step-ingredient-pill-check { display: inline-flex; }
.step-actions { margin-top: 10px; display: flex; gap: 8px; align-items: center; }
/* Back sits at the left edge; the right-hand element (Next, or the
   "enjoy" note) is pushed to the opposite side regardless of whether
   a Back button is present on this step. */
.btn-next-step, .step-done { margin-left: auto; }
/* Back & Next share box geometry so they render at identical size, the
   transparent border on Next matches Back's visible border, and min-width
   keeps the two equal in width despite different label lengths. */
.btn-back-step, .btn-next-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 120px;
  font-size: 14px;
  line-height: 1;
  font-weight: 500;
  border: 1px solid transparent;
  border-radius: var(--r);
  padding: 8px 16px;
  cursor: pointer;
  transition: background var(--t);
}
.btn-back-step {
  color: var(--muted);
  background: none;
  border-color: var(--border);
}
.btn-back-step:hover { background: var(--bg); }
.btn-next-step {
  color: var(--sage-fg);
  background: var(--sage-bg);
}
.step-done { font-family: 'DM Serif Display', serif; font-style: italic; font-size: 15px; color: var(--faint); }
}
