.dish-main { max-width: 940px; margin: 0 auto; padding: 22px 16px 0; }

.card { background: #fffdf8; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 2px 4px rgba(60,40,20,.06), 0 18px 50px rgba(60,40,20,.10); overflow: hidden; }

/* Hero photo */
.card-photo { position: relative; aspect-ratio: 16 / 7; background: linear-gradient(135deg, var(--brand), var(--brand-dark)); overflow: hidden; }
.card-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-photo-ph { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; color: rgba(255,255,255,.5); font-size: 56px; }
.card-photo.noimg .card-photo-ph { display: flex; }
.card-photo-top { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; color: #fff; font-size: 13px; background: linear-gradient(rgba(0,0,0,.45), transparent); }
.card-back { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.card-source { display: inline-flex; align-items: center; gap: 6px; opacity: .95; color: #fff; text-decoration: none; }
.card-source:hover { text-decoration: underline; }
.card-source.verified { color: #c6f4d6; opacity: 1; font-weight: 600; }

.similar { max-width: 940px; margin: 34px auto 0; padding: 0 16px; }
.similar .section-title { display: flex; align-items: center; gap: 9px; }
.similar .section-title i { color: var(--brand); }

/* Head */
.card-head { padding: 20px 26px 6px; }
.card-title { font-family: var(--serif); font-weight: 700; font-size: clamp(25px, 4.5vw, 38px); line-height: 1.1; margin: 0; }
.card-desc { margin: 10px 0 0; font-size: 15px; color: var(--muted); max-width: 65ch; }
.card-actions { display: flex; gap: 10px; margin: 16px 0 4px; flex-wrap: wrap; }
.act-btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 999px; padding: 9px 16px; font-size: 14px; font-weight: 600; font-family: var(--sans); cursor: pointer; }
.act-btn:hover { border-color: var(--brand); }
.like-btn.on { background: #fdecef; border-color: #f3b6c4; color: #d6336c; }
.like-btn.on i { color: #e0245e; }
.like-count { background: rgba(0,0,0,.07); border-radius: 999px; padding: 1px 8px; font-size: 12px; }
.bm-btn.on { background: var(--brand); border-color: var(--brand); color: #fff; }

.card-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.chip { background: var(--brand-soft); color: var(--brand-dark); border-radius: 999px; padding: 5px 12px; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }

/* Two columns */
.card-cols { display: grid; grid-template-columns: 1fr 1.4fr; gap: 0; margin-top: 12px; }
.card-ingredients { padding: 18px 24px 24px; border-right: 1px solid var(--line); }
.card-steps { padding: 18px 26px 24px; }
.card-cols h2 { font-family: var(--serif); font-size: 19px; margin: 0 0 10px; display: inline-flex; align-items: center; gap: 9px; color: var(--brand-dark); }

.ci-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 6px; }
.scaler { display: inline-flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 4px 8px; font-size: 13px; }
.scaler-btn { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); color: var(--brand-dark); font-size: 16px; line-height: 1; cursor: pointer; }
.scaler-btn:hover { background: var(--brand-soft); border-color: var(--brand); }
.scaler-val { font-weight: 700; min-width: 16px; text-align: center; }
.scaler-label { color: var(--muted); }

/* Ingredients — each row owns its own border so it always matches its height */
.ingredient-list { list-style: none; margin: 6px 0 0; padding: 0; }
.ingredient { border-bottom: 1px solid var(--line); }
.ingredient:last-child { border-bottom: none; }
.ingredient label { display: flex; align-items: flex-start; gap: 11px; padding: 10px 2px; line-height: 1.45; cursor: pointer; font-size: 15px; }
.ingredient input { margin-top: 3px; accent-color: var(--brand); width: 16px; height: 16px; flex: 0 0 auto; }
.ingredient input:checked + .ing-text { text-decoration: line-through; color: var(--muted); }
.ing-qty { font-weight: 700; color: var(--brand-dark); }

/* Steps — explicit tick makes it obvious each step is clickable */
.steps-hint { font-size: 12.5px; color: var(--muted); margin: 0 0 12px; display: flex; align-items: center; gap: 7px; }
.step-list { margin: 0; padding: 0; list-style: none; }
.step label { display: flex; gap: 12px; align-items: flex-start; padding: 12px 10px; cursor: pointer; font-size: 15.5px; border-radius: 10px; transition: background .12s; }
.step label:hover { background: #faf3e9; }
.step input { display: none; }
.step-num { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-dark); font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; }
.step-text { flex: 1; padding-top: 3px; }
.step-tick { flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); color: transparent; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; margin-top: 2px; transition: all .15s; }
.step input:checked ~ .step-text { text-decoration: line-through; color: var(--muted); }
.step input:checked ~ .step-num { background: #e6efe9; color: var(--accent); }
.step input:checked ~ .step-tick { background: var(--accent); border-color: var(--accent); color: #fff; }

.card-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding: 18px 26px 24px; border-top: 1px solid var(--line); background: #fbf6ee; }
.card-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tag { background: var(--brand-soft); color: var(--brand-dark); border-radius: 999px; padding: 4px 12px; font-size: 12.5px; font-weight: 600; }
.orig-link { text-decoration: none; font-weight: 600; font-size: 14px; color: var(--brand-dark); display: inline-flex; align-items: center; gap: 7px; }
.orig-link:hover { color: var(--brand); }

@media (max-width: 700px) {
    .card-cols { grid-template-columns: 1fr; }
    .card-ingredients { border-right: none; border-bottom: 1px solid var(--line); }
}
