/* Recipe-specific blocks */

.meta-bar { display: flex; flex-wrap: wrap; gap: 0; border: 1px solid var(--line-subtle); border-radius: var(--radius-lg); overflow: hidden; background: var(--paper-raised); }
.meta-bar .m { flex: 1; min-width: 100px; text-align: center; padding: 14px 10px; border-right: 1px solid var(--line-subtle); }
.meta-bar .m:last-child { border-right: none; }
.meta-bar .m i { font-size: 19px; color: var(--ink-900); margin-bottom: 6px; display: block; }
.meta-bar .m b { display: block; font-size: 14px; }
.meta-bar .m span { font-size: 10.5px; color: var(--ink-500); }

.ingredient-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-subtle); }
.ingredient-row:last-child { border-bottom: none; }
.ingredient-row .qty { width: 52px; flex: none; font-weight: 600; }
.ingredient-row .unit { width: 76px; flex: none; }
.ingredient-row .name { flex: 1; }
.ingredient-row .drag { color: var(--ink-300); cursor: grab; }

.instruction-step { display: flex; gap: 14px; }
.instruction-step .num { width: 30px; height: 30px; border-radius: 50%; background: var(--ink-900); color: var(--paper); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; flex: none; }
.instruction-step .txt { flex: 1; padding-bottom: 20px; border-bottom: 1px solid var(--line-subtle); margin-bottom: 20px; }
.instruction-step:last-child .txt { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.instruction-step .txt p { margin: 0 0 8px; font-size: 13.5px; }
.instruction-step .txt img { border-radius: var(--radius-md); }

.nutrition-panel { border: 2px solid var(--ink-900); border-radius: var(--radius-md); padding: 14px 16px; background: var(--paper-raised); }
.nutrition-panel h5 { font-size: 20px; font-weight: 800; margin: 0 0 6px; border-bottom: 8px solid var(--ink-900); padding-bottom: 6px; }
.nutrition-panel .row { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--line-subtle); font-size: 12.5px; }
.nutrition-panel .row b { font-weight: 700; }

.cooked-strip { display: flex; align-items: center; gap: 14px; background: var(--paper-sunken); border-radius: var(--radius-lg); padding: 14px 16px; }
.cooked-strip .imgs { display: flex; }
.cooked-strip .imgs .ph, .cooked-strip .imgs img { width: 42px; height: 42px; border-radius: 10px; border: 2px solid var(--paper-raised); margin-left: -12px; object-fit: cover; }
.cooked-strip .imgs .ph:first-child, .cooked-strip .imgs img:first-child { margin-left: 0; }
.cooked-strip b { font-size: 14px; }
.cooked-strip span { font-size: 12px; color: var(--ink-500); }

.sticky-actions { display: flex; align-items: center; justify-content: space-between; background: var(--paper-raised); border: 1px solid var(--line-subtle); border-radius: var(--radius-pill); padding: 8px 10px 8px 18px; box-shadow: var(--shadow-soft); }
.sticky-actions .grp { display: flex; gap: 6px; }

.taxonomy-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-bottom: 1px solid var(--line-subtle); }
.taxonomy-row:last-child { border-bottom: none; }
.taxonomy-row .ic { width: 34px; height: 34px; border-radius: var(--radius-md); background: var(--paper-sunken); color: var(--ink-900); display: flex; align-items: center; justify-content: center; flex: none; }
.taxonomy-row b { font-size: 13px; display: block; }
.taxonomy-row span { font-size: 11px; color: var(--ink-500); }

.mod-item { display: flex; gap: 12px; padding: 13px; border: 1px solid var(--line-subtle); border-radius: var(--radius-md); background: var(--paper-raised); }
.mod-item img { width: 56px; height: 56px; border-radius: var(--radius-sm); flex: none; object-fit: cover; }
.mod-item .why { font-size: 11.5px; color: var(--ink-900); font-weight: 700; margin-top: 4px; }

.flag-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line-subtle); }
.flag-row:last-child { border-bottom: none; }
.flag-row b { font-size: 13px; display: block; font-family: ui-monospace, Menlo, monospace; font-weight: 600; }
.flag-row span { font-size: 11.5px; color: var(--ink-500); }

/* Placeholder when a recipe has no cover image */
.recipe-card .thumb .thumb-fallback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: var(--paper-sunken); color: var(--ink-300); font-size: 34px; }

/* Stretched-link card: title link covers the card; interactive elements sit above it */
.recipe-card { position: relative; display: block; color: inherit; }
.recipe-card .card-link { color: inherit; text-decoration: none; }
.recipe-card .card-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.recipe-card .creator-inline { display: flex; align-items: center; gap: 8px; color: inherit; position: relative; z-index: 2; }
.recipe-card .thumb .save-btn { position: relative; z-index: 2; }
.recipe-card .foot .like-btn { position: relative; z-index: 2; background: none; border: none; cursor: pointer; font-family: inherit; }
