@layer pages {
/* ═══════════════════════════════════════════════════════════════════
   RECIPE DETAIL
   ======================================================================= */
.recipe-detail { padding-bottom: calc(72px + var(--space-7)); }

/* ── Detail Hero — fond parchment (macheta 02) ───────────────────────── */
.detail-hero {
  background: var(--surface);
  padding: var(--space-3) var(--space-4) var(--space-4);  /* mobile-first base */
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.detail-hero__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  min-height: 44px;
  margin-bottom: var(--space-4);
}

.detail-back-btn {
  display: flex; align-items: center; gap: 6px;
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  background: none; border: none;
  padding: 10px 8px 10px 0; cursor: pointer;
  min-height: 44px;
  -webkit-tap-highlight-color: transparent;
  transition: color var(--duration-fast);
}
.detail-back-btn:hover { color: var(--text-primary); }
.detail-back-btn:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; border-radius: var(--radius-sm); }
.detail-back-btn svg { flex-shrink: 0; }

.detail-hero__actions { display: flex; align-items: center; gap: var(--space-2); flex-shrink: 0; }

.detail-icon-btn {
  width: 44px; height: 44px;
  border-radius: var(--radius-full);
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0;
  transition: background var(--duration-fast), border-color var(--duration-fast);
}
.detail-icon-btn:hover { background: var(--surface-2); border-color: var(--border-strong); }
.detail-icon-btn:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.detail-icon-btn svg { width: 16px; height: 16px; stroke-width: 1.6; stroke-linecap: round; }
.detail-icon-btn--active { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); }

/* ── Stat row — 4 cifre (macheta 02) ─────────────────────────────────── */
.stat-row {
  display: flex;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg);
  margin-top: var(--space-4);
}
.stat-item {
  flex: 1;
  padding: 10px var(--space-2);
  text-align: center;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-val {
  font-family: var(--font-family-serif);
  font-size: var(--font-size-base);  /* mobile-first base */
  color: var(--text-primary);
  display: block;
  line-height: 1;
}
.stat-label {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: block;
  margin-top: 3px;
}
.stat-item.hl .stat-val { color: var(--brand); }

/* ── Share buttons ─────────────────────────────────────────────────── */
.detail-share {
  display: flex; gap: var(--space-2);
  padding: var(--space-2) var(--space-5) var(--space-3);
}
.detail-share__btn {
  width: 36px; height: 36px;
  border-radius: var(--radius-full);
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary);
  text-decoration: none;
  cursor: pointer;
  transition: background var(--duration-fast), color var(--duration-fast), border-color var(--duration-fast);
}
.detail-share__btn:hover { background: var(--brand-soft); color: var(--brand); border-color: var(--brand); }
.detail-share__btn:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }

/* ── Autor compact în hero ────────────────────────────────────────────── */
.detail-author-row {
  display: flex; align-items: center; gap: var(--space-2);
  margin-bottom: var(--space-4);
}
.detail-author-avatar {
  width: 24px; height: 24px;
  border-radius: var(--radius-full);
  background: var(--brand-soft); border: 1px solid var(--brand);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: var(--font-weight-bold);
  color: var(--brand-hover); flex-shrink: 0;
}
.detail-author-label { font-size: var(--font-size-xs); color: var(--text-muted); }

/* ── Recipe title ─────────────────────────────────────────────────────── */
.recipe-title {
  font-family: var(--font-family-serif);
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-normal);
  color: var(--text-primary);
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-3);
}

/* ── Photo area — sub hero ────────────────────────────────────────────── */
.recipe-photo {
  margin: var(--space-4) var(--space-4) 0;  /* mobile-first base */
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  position: relative;
  min-height: 160px;  /* mobile-first base */
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
}
.recipe-photo img { width: 100%; height: 160px; object-fit: cover; }  /* mobile-first */
.recipe-photo__placeholder {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 160px; background: var(--surface);  /* mobile-first */
}
.recipe-photo__placeholder svg { width: 36px; height: 36px; stroke: var(--border-strong); fill: none; stroke-width: 1.2; stroke-linecap: round; }

/* ── Tab-uri ingrediente / preparare ─────────────────────────────────── */
.recipe-tabs { padding: 0 var(--space-5); margin-top: var(--space-4); }

/* ── Scale bar ────────────────────────────────────────────────────────── */
.scale-bar {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bg);
  border: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  padding: 10px var(--space-5);
  position: sticky;
  top: 0;
  z-index: 10;
  margin-bottom: 0;
  box-shadow: 0 2px 8px rgba(42,37,32,0.06);
}
.scale-bar__label { font-size: var(--font-size-sm); color: var(--text-secondary); }
.scale-bar__label span { font-size: var(--font-size-xs); color: var(--text-muted); margin-left: 4px; }
.scale-bar__controls { display: flex; align-items: center; gap: var(--space-3); }
.scale-bar__btn {
  width: 44px; height: 44px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 18px; color: var(--text-primary); line-height: 1;
  transition: background var(--duration-fast);
}
.scale-bar__btn:hover { background: var(--surface-2); }
.scale-bar__btn:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.scale-bar__value {
  font-family: var(--font-family-serif);
  font-size: var(--font-size-md);
  color: var(--text-primary);
  min-width: 24px; text-align: center;
}

/* ── Ingredient list în detail (macheta 02) ───────────────────────────── */
.ingredients-section { padding: var(--space-4) var(--space-5); }

.ingredient-group__name {
  font-family: var(--font-family-serif);
  font-size: var(--font-size-md);
  color: var(--text-primary);
  margin-bottom: var(--space-3);
  margin-top: var(--space-4);
}
.ingredient-group__name:first-child { margin-top: 0; }

.ingredient-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px var(--space-3);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.ingredient-item:nth-child(even) { background: var(--surface); }
.ingredient-item:last-child { border-bottom: none; }
.ingredient-item__name {
  display: flex; align-items: center; gap: var(--space-2);
  font-size: var(--font-size-sm); color: var(--text-primary);
}
.ingredient-item__dot {
  width: 5px; height: 5px; border-radius: var(--radius-full);
  background: var(--brand); flex-shrink: 0;
}
.ingredient-item__note { font-size: var(--font-size-xs); color: var(--text-muted); }
.ingredient-item__qty {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  font-weight: var(--font-weight-medium);
  flex-shrink: 0;
}

/* ── Sectiune preparare ───────────────────────────────────────────────── */
.instructions-section { padding: var(--space-4) var(--space-5); }

.step-item {
  display: flex; gap: var(--space-4);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--border);
}
.step-item:last-child { border-bottom: none; }
.step-num {
  font-family: var(--font-family-serif);
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-normal);
  color: var(--border-strong);
  line-height: 1; flex-shrink: 0; min-width: 32px;
}
.step-body { flex: 1; }
.step-text {
  font-size: var(--font-size-base);
  color: var(--text-primary);
  line-height: var(--line-height-loose);
}
.step-timer-pill {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: var(--space-3);
  padding: 6px var(--space-3);
  border: 1px solid var(--brand);
  background: var(--brand-soft);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs); color: var(--brand);
  font-weight: var(--font-weight-medium); cursor: pointer;
}
.step-timer-pill svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }

/* ═══════════════════════════════════════════════════════════════════
   RECIPE LIST / CATEGORY / TAG
   ======================================================================= */
.list-page { padding-bottom: var(--space-5); }

.list-header {
  padding: var(--space-4) var(--space-5) 0;
}
.list-header__title {
  font-family: var(--font-family-serif);
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-normal);
  color: var(--text-primary);
  margin-bottom: var(--space-1);
}
.list-header__count {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  margin-bottom: var(--space-3);
}

/* Drawer filtre */
.filter-drawer-overlay {
  position: fixed; inset: 0;
  background: var(--overlay);
  z-index: var(--z-overlay);
  display: none;
}
.filter-drawer-overlay.open { display: block; }

.filter-drawer {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--bg);
  border-radius: 20px 20px 0 0;
  z-index: var(--z-modal);
  max-height: 80vh; overflow-y: auto;
  transform: translateY(100%);
  transition: transform var(--duration-slow) var(--easing-enter);
  padding-bottom: var(--space-6);
}
.filter-drawer.open { transform: translateY(0); }

.filter-drawer__handle {
  width: 36px; height: 4px;
  background: var(--border-strong);
  border-radius: 2px;
  margin: var(--space-3) auto var(--space-4);
}
.filter-drawer__title {
  font-family: var(--font-family-serif);
  font-size: var(--font-size-lg);
  color: var(--text-primary);
  padding: 0 var(--space-5) var(--space-4);
  border-bottom: 1px solid var(--border);
}
.filter-section { padding: var(--space-4) var(--space-5) 0; }
.filter-section__label {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}
.filter-pills { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.filter-pill {
  padding: 7px var(--space-3);
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  cursor: pointer;
  transition: background var(--duration-fast), border-color var(--duration-fast), color var(--duration-fast);
}
.filter-pill.active {
  background: var(--brand-soft);
  border-color: var(--brand);
  color: var(--brand-hover);
}
.filter-drawer__footer {
  display: flex; gap: var(--space-2);
  padding: var(--space-4) var(--space-5) 0;
}
.filter-drawer__reset  { flex: 0 0 auto; }
.filter-drawer__apply  { flex: 1; }

/* Radio inputs dentro de .filter-pill — visually hidden, pill é o target */
.filter-pill input[type="radio"] {
  position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════════════
   SEARCH
   ======================================================================= */
.search-page { padding-bottom: var(--space-5); }

/* Search input pe pagina cauta */
.search-form {
  padding: var(--space-4) var(--space-5);
  position: sticky; top: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  z-index: 1;
}
.search-input-wrap {
  display: flex; align-items: center; gap: var(--space-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px var(--space-4);
  transition: border-color var(--duration-fast);
}
.search-input-wrap:focus-within { border-color: var(--brand); }
.search-input-wrap svg { width: 17px; height: 17px; stroke: var(--text-muted); fill: none; stroke-width: 1.8; stroke-linecap: round; flex-shrink: 0; }
.search-real-input {
  flex: 1; border: none; background: transparent;
  font-size: var(--font-size-base); color: var(--text-primary);
  outline: none;
}
.search-real-input::placeholder { color: var(--text-disabled); }
.search-clear-btn {
  width: 22px; height: 22px;
  border-radius: var(--radius-full);
  background: var(--border-strong);
  display: none; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0;
}
.search-clear-btn.visible { display: flex; }
.search-clear-btn svg { width: 10px; height: 10px; stroke: var(--bg); fill: none; stroke-width: 2.5; stroke-linecap: round; }

/* Highlight termen cautat */
.search-highlight { background: var(--brand-soft); color: var(--brand-hover); border-radius: 2px; padding: 0 2px; }

/* Sectiune recent searches */
.recent-searches { padding: var(--space-4) var(--space-5) 0; }
.recent-label {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}
.recent-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px var(--space-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm); color: var(--text-secondary);
  cursor: pointer; margin: 0 4px var(--space-2) 0;
}
.recent-chip svg { width: 12px; height: 12px; stroke: var(--text-muted); fill: none; stroke-width: 1.8; stroke-linecap: round; }

/* ═══════════════════════════════════════════════════════════════
   EQUIPMENT — Form wizard Pas 2 + Detail + Cooking mode
   ═══════════════════════════════════════════════════════════════ */

/* ── Pas 2: listă ustensile adăugate ───────────────────────────── */
#equipment-container {
  padding: 0 var(--space-5);
}

.equip-row-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-2);
}

.equip-icon-wrap {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--brand);
}

.equip-name { flex: 1; min-width: 0; }
.equip-name-text {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.equip-name-detail {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  margin-top: 1px;
}

.equip-del-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-1);
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  transition: color var(--duration-fast), background var(--duration-fast);
}
.equip-del-btn:hover { color: var(--danger); background: var(--surface-2); }

/* ── Pas 3: selector ustensile per pas ─────────────────────────── */
.step-equip-selector {
  margin-top: var(--space-2);
}

.step-equip-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 5px var(--space-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  cursor: pointer;
  font-size: var(--font-size-xs);
  color: var(--text-secondary);
  transition: border-color var(--duration-fast), background var(--duration-fast);
}
.step-equip-toggle:hover,
.step-equip-toggle.has-selection {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-soft);
}

.step-equip-panel {
  margin-top: var(--space-2);
  padding: var(--space-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.step-equip-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

/* chip-btn — reutilizează step-ingr-chip-btn stiluri */
.step-equip-chip-btn { /* moștenește de la step-ingr-chip-btn */ }

/* ── Detail page: tags ───────────────────────────────────────────── */
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
}

.detail-tag {
  font-size: var(--font-size-sm);
  color: var(--brand-hover);
  background: var(--brand-soft);
  padding: 4px var(--space-3);
  border-radius: var(--radius-full);
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--duration-fast), color var(--duration-fast);
}
.detail-tag:hover {
  background: var(--brand);
  color: #fff;
}
.detail-tag:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

/* ── Detail page: secțiune ustensile ────────────────────────────── */
.recipe-equipment-section {
  padding: var(--space-3) var(--space-5) var(--space-4);
  border-bottom: 1px solid var(--border);
}

.recipe-equipment-title {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 var(--space-3);
}

.recipe-equipment-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.recipe-equipment-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.recipe-equipment-icon {
  color: var(--brand);
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.recipe-equipment-body {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.recipe-equipment-name {
  font-size: var(--font-size-sm);
  color: var(--text-primary);
  font-weight: var(--font-weight-medium);
}
.recipe-equipment-name--link {
  color: var(--brand);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.recipe-equipment-name--link:hover { text-decoration: underline; }

.recipe-equipment-detail {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
}

/* ── Cooking mode: ustensile per pas și globale ─────────────────── */
.cook-step-equip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--border);
}

.cook-equip-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px var(--space-3);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  color: var(--text-secondary);
}

.cook-equip-section {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  margin: var(--space-4) var(--space-5) 0;
}

.cook-equip-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-3);
}


/* ═══════════════════════════════════════════════════════════════
   P19: Notes editor — owner inline edit
   ═══════════════════════════════════════════════════════════════ */
.notes-textarea {
  width: 100%;
  min-height: 120px;
  padding: var(--space-3);
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
  line-height: var(--line-height-loose);
  color: var(--text-primary);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  resize: vertical;
  transition: border-color var(--duration-fast);
}
.notes-textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--focus-ring);
}
.notes-textarea::placeholder { color: var(--text-muted); }
.notes-editor__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-2);
  min-height: 20px;
}
.notes-editor__status {
  font-size: var(--font-size-xs);
  color: var(--brand);
  transition: opacity var(--duration-fast);
}

/* ═══════════════════════════════════════════════════════════════
   P20: Timeline preparare vizuală — detail page
   ═══════════════════════════════════════════════════════════════ */
.step-timeline {
  position: relative;
  padding: var(--space-2) 0 var(--space-4);
}

.step-timeline__item {
  display: flex;
  gap: var(--space-3);
  position: relative;
  padding-bottom: var(--space-4);
}

/* Linia verticală de conectare */
.step-timeline__item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 17px;
  top: 36px;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.step-timeline__item.is-done:not(:last-child)::before {
  background: var(--brand);
}

/* Marker — cercul cu număr / checkbox */
.step-timeline__marker {
  flex-shrink: 0;
  width: 36px;
  display: flex;
  justify-content: center;
  padding-top: 2px;
}

.step-timeline__check {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  border: 2px solid var(--border-strong);
  background: var(--bg);
  cursor: pointer;
  transition: border-color var(--duration-fast), background var(--duration-fast);
}

.step-timeline__check:hover {
  border-color: var(--brand);
}

.step-timeline__checkbox {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  z-index: 1;
}

.step-timeline__num {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  color: var(--text-secondary);
  line-height: 1;
  transition: color var(--duration-fast);
}

/* Checked state */
.step-timeline__checkbox:checked ~ .step-timeline__num {
  color: #fff;
}

.step-timeline__checkbox:checked + .step-timeline__num,
.step-timeline__item.is-done .step-timeline__check {
  background: var(--brand);
  border-color: var(--brand);
}

.step-timeline__item.is-done .step-timeline__num {
  color: #fff;
}

.step-timeline__item.is-done .step-text {
  color: var(--text-muted);
  text-decoration: line-through;
  text-decoration-color: var(--border-strong);
}

.step-timeline__checkbox:focus-visible ~ .step-timeline__num {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

/* Content */
.step-timeline__content {
  flex: 1;
  min-width: 0;
  padding-top: 6px;
}

.step-timeline__content .step-text {
  font-size: var(--font-size-base);
  line-height: var(--line-height-loose);
  color: var(--text-primary);
  margin: 0;
  transition: color var(--duration-fast);
}

/* Pills ingrediente / ustensile per pas */
.step-timeline__pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  margin-top: var(--space-2);
}

.step-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  font-size: var(--font-size-xs);
  border-radius: var(--radius-full);
  line-height: 1.4;
  white-space: nowrap;
}

.step-pill--ing {
  background: var(--brand-soft);
  color: var(--brand-hover);
}

.step-pill--equip {
  background: var(--surface-2);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.step-pill__icon {
  display: inline-flex;
  width: 12px;
  height: 12px;
}

.step-pill__icon svg {
  width: 12px;
  height: 12px;
}

/* ── Mobile-first — ≥ 481px restaurare desktop ─────────────────── */
@media (min-width: 481px) {
  .stat-val { font-size: var(--font-size-md); }
  .detail-hero {
    padding: var(--space-4) var(--space-5) var(--space-5);
  }
  .recipe-photo {
    margin-left: var(--space-5);
    margin-right: var(--space-5);
    min-height: 190px;
  }
  .recipe-photo img,
  .recipe-photo__placeholder { height: 190px; }
}
} /* end @layer pages */
