/* ══════════════════════════════════════════════════
   RECIPE CARD — Cookbook style
   ══════════════════════════════════════════════════ */

/* ── Card shell ──────────────────────────────────── */
.recipe-card {
  align-self: flex-start;
  flex-shrink: 0;
  width: 490px;
  max-width: calc(100vw - 48px);
  border-radius: 18px;
  background: #fdf8ef;
  border: 1px solid #d9be9a;
  box-shadow:
    0 2px 12px rgba(100, 60, 10, 0.08),
    0 8px 32px rgba(100, 60, 10, 0.05),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
  overflow: hidden;
  font-family: var(--font);
}

/* ── Teal accent band ────────────────────────────── */
.rc-band {
  height: 5px;
  background: linear-gradient(90deg, #0d9488 0%, #14b8a6 50%, #0d9488 100%);
}

/* ── Header ──────────────────────────────────────── */
.rc-header {
  position: relative;
  padding: 20px 24px 18px;
  text-align: center;
  border-bottom: 1px dashed #d9be9a;
}

.rc-header .card-save-btn {
  position: absolute;
  top: 14px;
  right: 16px;
}

.rc-eyebrow {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #14b8a6;
  margin-bottom: 7px;
}

.rc-name {
  font-size: 1.45rem;
  font-weight: 700;
  color: #2b1a0f;
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-family: Georgia, 'Times New Roman', serif;
}

.rc-meta {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.rc-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.74rem;
  font-weight: 500;
  color: #7a5030;
  background: rgba(212, 169, 106, 0.15);
  border: 1px solid rgba(212, 169, 106, 0.35);
  border-radius: 20px;
  padding: 4px 12px;
}

/* ── Body: two-column grid ───────────────────────── */
.rc-body {
  display: grid;
  grid-template-columns: 44% 1fr;
}

.rc-col-ingr {
  padding: 17px 15px 17px 22px;
  border-right: 1px dashed #d9be9a;
}

.rc-col-steps {
  padding: 17px 22px 17px 15px;
}

/* ── Column heading ──────────────────────────────── */
.rc-col-title {
  font-size: 0.57rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #a07850;
  margin-bottom: 11px;
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(212, 169, 106, 0.4);
}

/* ── Ingredients list ────────────────────────────── */
.rc-ingr-list-wrap {
  max-height: 340px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(212, 169, 106, 0.45) transparent;
}

.rc-ingr-list-wrap::-webkit-scrollbar       { width: 3px; }
.rc-ingr-list-wrap::-webkit-scrollbar-track { background: transparent; }
.rc-ingr-list-wrap::-webkit-scrollbar-thumb { background: rgba(212, 169, 106, 0.55); border-radius: 2px; }

.rc-ingr-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.rc-ingr-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px;
  padding: 6px 0;
  border-bottom: 1px dotted rgba(212, 169, 106, 0.45);
}

.rc-ingr-row:last-child {
  border-bottom: none;
}

.rc-ingr-name {
  font-size: 0.78rem;
  font-weight: 400;
  color: #2b1a0f;
  flex: 1;
  min-width: 0;
  line-height: 1.35;
}

.rc-ingr-qty {
  font-size: 0.71rem;
  font-weight: 600;
  color: #8b6040;
  flex-shrink: 0;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* ── Step list ───────────────────────────────────── */
.rc-step-list {
  list-style: none;
  margin: 0;
  padding: 0;
  padding-right: 3px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 340px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(212, 169, 106, 0.45) transparent;
}

.rc-step-list::-webkit-scrollbar       { width: 3px; }
.rc-step-list::-webkit-scrollbar-track { background: transparent; }
.rc-step-list::-webkit-scrollbar-thumb { background: rgba(212, 169, 106, 0.55); border-radius: 2px; }

.rc-step-item {
  display: block;
}

.rc-step-label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  cursor: pointer;
  width: 100%;
  -webkit-user-select: none;
  user-select: none;
}

.rc-step-cb {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.rc-num-n {
  line-height: 1;
}

.rc-num-ok {
  display: none;
}

/* ── Checked state ──────────────────────────────── */
.rc-step-cb:checked + .rc-step-num {
  background: #059669;
}

.rc-step-cb:checked + .rc-step-num .rc-num-n {
  display: none;
}

.rc-step-cb:checked + .rc-step-num .rc-num-ok {
  display: block;
}

.rc-step-cb:checked ~ .rc-step-text {
  color: rgba(61, 37, 16, 0.3);
  text-decoration: line-through;
  text-decoration-color: rgba(61, 37, 16, 0.2);
}

.rc-step-num {
  flex-shrink: 0;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #14b8a6;
  color: #ffffff;
  font-size: 0.61rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  transition: background 0.2s ease;
}

.rc-step-text {
  font-size: 0.78rem;
  font-weight: 400;
  color: #3d2510;
  line-height: 1.55;
  transition: color 0.2s ease;
}

/* ── Nutrition footer ────────────────────────────── */
.rc-nutrition {
  border-top: 1px dashed #d9be9a;
  padding: 14px 22px 20px;
  background: rgba(212, 169, 106, 0.06);
}

.rc-macros {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.rc-macro {
  flex: 1;
  text-align: center;
  padding: 10px 4px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(212, 169, 106, 0.4);
  box-shadow: 0 1px 3px rgba(100, 60, 10, 0.06);
}

.rc-macro-val {
  display: block;
  font-size: 1.0rem;
  font-weight: 700;
  color: #2b1a0f;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1;
}

.rc-macro-lbl {
  display: block;
  margin-top: 3px;
  font-size: 0.57rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #8b6040;
}
