
.asnfrecipes-index,
.asnfrecipe-detail {
  --asnf-green: #225c2b;
  --asnf-green-soft: #eff7ef;
  --asnf-text: #2d2d2d;
  --asnf-border: #e4e4df;
  --asnf-accent: #ff6e61;
  color: var(--asnf-text);
}

.asnfrecipes-heading h1,
.asnfrecipe-detail h1 {
  color: var(--asnf-green);
  font-weight: 800;
}

.asnfrecipes-heading h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin: 0 0 1rem;
}

.asnfrecipes-tabs {
  display: flex;
  gap: 1.4rem;
  overflow-x: auto;
  padding: 0 0 .7rem;
  margin-bottom: 1.8rem;
  border-bottom: 1px solid var(--asnf-border);
  scrollbar-width: thin;
}

.asnfrecipes-tabs a {
  color: var(--asnf-text);
  text-decoration: none;
  white-space: nowrap;
  padding-bottom: .65rem;
  border-bottom: 3px solid transparent;
}

.asnfrecipes-tabs a.active {
  color: var(--asnf-green);
  border-color: var(--asnf-accent);
  font-weight: 700;
}

.asnfrecipes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.asnfrecipe-card {
  background: #fff;
  border: 1px solid var(--asnf-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0,0,0,.045);
  transition: transform .18s ease, box-shadow .18s ease;
}

.asnfrecipe-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
}

.asnfrecipe-card-image {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  background: #f4f4f2;
  overflow: hidden;
}

.asnfrecipe-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.asnfrecipe-no-image {
  height: 100%;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#777;
}

.asnfrecipe-category,
.asnfrecipe-detail-category {
  color: var(--asnf-green);
  font-weight: 700;
}

.asnfrecipe-category {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: rgba(255,255,255,.92);
  border-radius: 999px;
  padding: .35rem .75rem;
  font-size: .85rem;
}

.asnfrecipe-card-body {
  padding: 1rem;
}

.asnfrecipe-card h2 {
  font-size: 1.1rem;
  margin: 0 0 .5rem;
}

.asnfrecipe-card h2 a {
  color: var(--asnf-text);
  text-decoration: none;
}

.asnfrecipe-card p {
  color: #666;
  line-height: 1.45;
  min-height: 2.8em;
}

.asnfrecipe-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  font-size: .85rem;
  color: #666;
}

.asnfrecipe-back {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--asnf-green);
  text-decoration: none;
  font-weight: 700;
}

.asnfrecipe-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 2rem;
}

.asnfrecipe-hero-copy h1 {
  font-size: clamp(2.1rem, 5vw, 4rem);
  margin: .4rem 0 1rem;
}

.asnfrecipe-hero-copy > p {
  font-size: 1.05rem;
  color: #666;
  line-height: 1.6;
}

.asnfrecipe-hero-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 22px;
}

.asnfrecipe-facts {
  display: grid;
  grid-template-columns: repeat(5, minmax(0,1fr));
  gap: .7rem;
  margin-top: 1.4rem;
}

.asnfrecipe-facts div {
  background: var(--asnf-green-soft);
  border-radius: 12px;
  padding: .8rem;
}

.asnfrecipe-facts strong,
.asnfrecipe-facts span {
  display:block;
}

.asnfrecipe-facts span {
  color:#666;
  font-size:.82rem;
  margin-top:.2rem;
}

.asnfrecipe-layout {
  display: grid;
  grid-template-columns: minmax(260px, .8fr) minmax(0, 1.8fr);
  gap: 1.5rem;
  align-items: start;
}

.asnfrecipe-panel {
  background: #fff;
  border: 1px solid var(--asnf-border);
  border-radius: 16px;
  padding: 1.2rem;
  margin-bottom: 1.2rem;
}

.asnfrecipe-panel h2 {
  color: var(--asnf-green);
  margin-top: 0;
}

.asnfrecipe-ingredients {
  list-style:none;
  padding:0;
  margin:0;
}

.asnfrecipe-ingredients li {
  display:flex;
  justify-content:space-between;
  gap:1rem;
  padding:.65rem 0;
  border-bottom:1px solid #eee;
}

.asnfrecipe-ingredients li:last-child {
  border-bottom:0;
}

.asnfrecipe-ing-name {
  font-weight:600;
}

.asnfrecipe-ing-qty {
  color:#666;
  white-space:nowrap;
}

.asnfrecipe-timebar {
  display:flex;
  flex-wrap:wrap;
  gap:1rem;
  background:#f7f7f4;
  padding:.8rem 1rem;
  border-radius:12px;
  margin-bottom:1.2rem;
}

.asnfrecipe-steps {
  list-style:none;
  padding:0;
  margin:0;
  counter-reset: steps;
}

.asnfrecipe-steps li {
  display:grid;
  grid-template-columns:42px 1fr;
  gap:.8rem;
  align-items:start;
  padding:.9rem 0;
  border-bottom:1px solid #eee;
}

.asnfrecipe-step-number {
  width:36px;
  height:36px;
  border-radius:50%;
  background:var(--asnf-green);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:700;
}

.asnfrecipe-steps p {
  margin:.35rem 0 0;
  line-height:1.6;
}

.asnfrecipe-tips {
  background:#fffaf1;
}

.asnfrecipes-empty {
  grid-column:1/-1;
  padding:2rem;
  text-align:center;
  background:#f8f8f6;
  border-radius:14px;
}

@media (max-width: 1100px) {
  .asnfrecipes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .asnfrecipe-facts {
    grid-template-columns: repeat(3, minmax(0,1fr));
  }
}

@media (max-width: 768px) {
  .asnfrecipes-grid {
    grid-template-columns: 1fr;
  }

  .asnfrecipe-hero,
  .asnfrecipe-layout {
    grid-template-columns: 1fr;
  }

  .asnfrecipe-hero-image {
    order:-1;
  }

  .asnfrecipe-facts {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }

  .asnfrecipe-panel {
    padding:1rem;
  }

  .asnfrecipe-timebar {
    flex-direction:column;
    gap:.35rem;
  }
}
