/* ============================================
   RECIPE PAGES
   ============================================ */

/* ── Library Page ── */
.recipes-page { padding-top: 5rem; }

.recipes-hero {
  background: linear-gradient(160deg, #1A0F0F 0%, #2D1212 60%, #3D1A1A 100%);
  color: var(--bg);
  padding: 5rem 3rem 4rem;
  text-align: center;
}

.recipes-hero-inner { max-width: 800px; margin: 0 auto; }

.recipes-hero .section-label { color: var(--accent); }

.recipes-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  color: var(--bg);
  margin: 0.75rem 0;
}

.recipes-sub {
  color: rgba(250,247,242,0.65);
  font-size: 1.0625rem;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

/* Search form */
.recipes-search { max-width: 700px; margin: 0 auto; }

.search-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(250,247,242,0.1);
  border: 1px solid rgba(250,247,242,0.2);
  border-radius: var(--radius-full);
  padding: 0.75rem 1.25rem;
  margin-bottom: 1rem;
  transition: border-color 0.2s;
}

.search-wrap:focus-within { border-color: var(--accent); }

.search-wrap .search-icon { width: 18px; height: 18px; color: rgba(250,247,242,0.5); flex-shrink: 0; }

.search-wrap input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--bg);
  font-family: var(--font-body);
  font-size: 0.9375rem;
}

.search-wrap input::placeholder { color: rgba(250,247,242,0.4); }

.search-wrap button {
  background: var(--accent);
  color: white;
  border: none;
  border-radius: var(--radius-full);
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.search-wrap button:hover { background: var(--accent-dark); }

.filter-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.filter-row select {
  background: rgba(250,247,242,0.08);
  border: 1px solid rgba(250,247,242,0.15);
  color: rgba(250,247,242,0.8);
  border-radius: var(--radius-full);
  padding: 0.5rem 1rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  cursor: pointer;
  outline: none;
}

.filter-row select option { background: #2D1212; color: var(--bg); }

.region-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.region-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  background: transparent;
  border: 1px solid rgba(250,247,242,0.2);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: rgba(250,247,242,0.8);
  cursor: pointer;
  user-select: none;
  transition: all 0.2s;
}

.region-chip:hover {
  border-color: var(--accent);
  color: var(--bg);
}

.region-chip input { margin: 0; accent-color: var(--accent); cursor: pointer; }

.region-chip:has(input:checked) {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.region-chip-count {
  font-size: 0.65rem;
  opacity: 0.7;
}

.ingredient-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 0.75rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.ingredient-chip {
  display: inline-block;
  background: rgba(250,247,242,0.12);
  color: var(--bg);
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  text-decoration: none;
  transition: background 0.2s;
}

.ingredient-chip:hover { background: rgba(250,247,242,0.2); }

.clear-btn {
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--accent);
  transition: all 0.2s;
}

.clear-btn:hover { background: var(--accent); color: white; }

.recipes-search .btn-primary {
  background: var(--accent);
  color: white;
  border: none;
  border-radius: var(--radius-full);
  padding: 0.6rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.recipes-search .btn-primary:hover { background: var(--accent-dark); }

.recipes-search .season-form-label {
  color: rgba(250,247,242,0.8);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
}

/* Sections */
.recipes-section {
  padding: 4rem 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.recipes-section-alt { background: var(--bg-alt); }

.section-header { margin-bottom: 2.5rem; }

.see-all-link {
  display: inline-block;
  font-size: 0.875rem;
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
  margin-top: 0.75rem;
  transition: color 0.2s;
}

.see-all-link:hover { color: var(--accent-dark); }

/* Season pills (season browse) */
.season-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.season-pill {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--fg-muted);
  text-decoration: none;
  transition: all 0.2s;
}

.season-pill:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(92,26,26,0.04);
}

.season-pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--bg);
}

@media (max-width: 600px) {
  .season-pills { gap: 0.4rem; }
  .season-pill { padding: 0.4rem 1rem; font-size: 0.75rem; }
}

/* Region pills (season browse) — togglable chip strip below season pills */
.region-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 0.75rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.region-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.85rem;
  background: rgba(250,247,242,0.1);
  border: 1px solid rgba(250,247,242,0.18);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  color: rgba(250,247,242,0.8);
  text-decoration: none;
  transition: all 0.2s;
}

.region-pill:hover {
  border-color: var(--accent);
  color: var(--bg);
}

.region-pill.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.region-pill-count { font-size: 0.6rem; opacity: 0.7; }

/* Recipe grid */
.recipe-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.recipe-grid-featured {
  grid-template-columns: repeat(5, 1fr);
}

/* Recipe card */
.recipe-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--fg);
  transition: all 0.25s;
  overflow: hidden;
}

.recipe-card:hover {
  box-shadow: 0 8px 32px var(--shadow);
  transform: translateY(-3px);
  border-color: var(--primary);
}

.recipe-card.chef-card { border-color: rgba(196,121,58,0.3); }

.card-body { padding: 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; }

.card-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.difficulty-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  width: fit-content;
}

.diff-facile { background: #E8F5E9; color: #2E7D32; }
.diff-moyen { background: #FFF8E1; color: #F57F17; }
.diff-difficile { background: #FFF3E0; color: #E65100; }
.diff-expert { background: #FCE4EC; color: #880E4F; }

.chef-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--accent);
  color: white;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  width: fit-content;
}

.chef-badge-lg {
  font-size: 0.75rem;
  padding: 0.35rem 0.85rem;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--fg);
  line-height: 1.3;
  margin-top: 0.25rem;
}

.card-chef {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 500;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: var(--fg-muted);
  margin-top: 0.25rem;
}

.meta-family { font-weight: 500; }
.meta-time { color: var(--fg-muted); }

.card-rating {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.5rem;
}

.stars { color: var(--accent); font-size: 0.875rem; letter-spacing: 1px; }

.rating-num {
  font-weight: 700;
  color: var(--fg);
  font-size: 0.875rem;
}

.rating-count { font-size: 0.75rem; color: var(--fg-muted); }

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 3rem 0 1rem;
}

.page-btn {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--fg);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s;
}

.page-btn:hover { border-color: var(--primary); color: var(--primary); }

.page-info { font-size: 0.875rem; color: var(--fg-muted); }

/* Empty state */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--fg-muted);
}

.empty-state p { margin-bottom: 1.5rem; }

.btn-reset {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: var(--primary);
  color: var(--bg);
  border-radius: var(--radius-full);
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s;
}

.btn-reset:hover { background: var(--primary-light); }

/* ── Detail Page ── */
.detail-page { padding: 6rem 3rem 4rem; background: var(--bg); }

.detail-container { max-width: 960px; margin: 0 auto; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--fg-muted);
  margin-bottom: 2.5rem;
}

.breadcrumb a { color: var(--accent); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

.detail-header { margin-bottom: 3rem; }

.detail-badges {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.family-tag, .season-tag, .region-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  background: var(--bg-alt);
  color: var(--fg-muted);
}

.region-tag {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--accent);
}

.detail-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 400;
  color: var(--primary);
  margin-bottom: 0.75rem;
  line-height: 1.15;
}

.detail-chef {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--fg-muted);
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.detail-chef strong { color: var(--accent); }

.detail-stats {
  display: flex;
  gap: 2.5rem;
  padding: 1.5rem;
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--fg-muted);
}

.stat-item > div { display: flex; flex-direction: column; }

.stat-label { font-size: 0.75rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; }

.stat-value { font-size: 1rem; font-weight: 600; color: var(--fg); }

.detail-rating-stars {
  font-size: 1.75rem;
  color: var(--accent);
  letter-spacing: 4px;
  margin-top: 0.5rem;
}

.star-display { color: var(--border); }
.star-display.filled { color: var(--accent); }

/* Content: ingredients + steps */
.detail-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.panel-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--primary);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

/* Ingredients */
.ingredients-panel { position: sticky; top: 7rem; align-self: start; }

.ingredients-list { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }

.ingredient-item { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.9375rem; }

.ing-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 0.5rem;
}

.ing-text { color: var(--fg); line-height: 1.4; }

/* Steps */
.steps-list { list-style: none; display: flex; flex-direction: column; gap: 1.5rem; }

.step-item { display: flex; gap: 1.25rem; align-items: flex-start; }

.step-num {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--primary);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 500;
}

.step-text {
  font-size: 0.9375rem;
  color: var(--fg);
  line-height: 1.7;
  padding-top: 0.4rem;
}

.detail-back { padding-top: 2rem; border-top: 1px solid var(--border); }

.back-link {
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}

.back-link:hover { color: var(--accent-dark); }

/* ── Responsive ── */
@media (max-width: 1100px) {
  .recipe-grid { grid-template-columns: repeat(3, 1fr); }
  .recipe-grid-featured { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 800px) {
  .recipe-grid { grid-template-columns: repeat(2, 1fr); }
  .recipe-grid-featured { grid-template-columns: repeat(2, 1fr); }
  .detail-content { grid-template-columns: 1fr; }
  .ingredients-panel { position: static; }
  .recipes-hero { padding: 4rem 1.5rem 3rem; }
  .recipes-section { padding: 3rem 1.5rem; }
}

@media (max-width: 500px) {
  .recipe-grid { grid-template-columns: 1fr; }
  .recipe-grid-featured { grid-template-columns: 1fr; }
  .filter-row { flex-direction: column; }
  .detail-page { padding: 5rem 1.5rem 3rem; }
  .detail-stats { flex-direction: column; gap: 1rem; }
}

/* ── Interactive rating widget ── */
.rating-widget {
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.rating-widget .detail-rating-stars { margin-top: 0; }

#rating-form { display: inline-flex; padding: 0; margin: 0; }

.star-input {
  background: none;
  border: none;
  padding: 0 4px;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--border);
  cursor: pointer;
  font-family: inherit;
  transition: color 0.15s, transform 0.15s;
}

.star-input:hover,
.star-input:focus { color: var(--accent); outline: none; }

.star-input:hover { transform: scale(1.1); }

.star-input.filled { color: var(--accent); }

.rating-summary {
  font-size: 0.9375rem;
  color: var(--fg);
  font-weight: 500;
}

.rating-msg {
  font-size: 0.8125rem;
  color: var(--fg-muted);
  min-height: 1.2em;
  margin: 0;
}

/* ── Top-Rated Section (homepage) ── */
.top-rated-section {
  padding: var(--space-2xl) 3rem;
  background: var(--bg-alt);
}

.recent-recipes-section { margin-top: 2rem; }
.favorites-section { margin-top: 2rem; }

.top-rated-inner { max-width: 1200px; margin: 0 auto; }

.top-rated-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.recipe-card .card-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--bg);
  overflow: hidden;
}

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

/* Half-star overlay (5 raw glyphs in fg width = pct%) */
.stars-overlay { position: relative; display: inline-block; line-height: 1; }
.stars-overlay .stars-bg { color: var(--border); }
.stars-overlay .stars-fg {
  position: absolute; top: 0; left: 0;
  color: var(--accent);
  overflow: hidden;
  white-space: nowrap;
}

@media (max-width: 1100px) { .top-rated-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 800px)  { .top-rated-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px)  { .top-rated-grid { grid-template-columns: 1fr; } }

/* Meal-plans show page */
.meal-plan-section { padding: 4rem 3rem; max-width: 1100px; margin: 0 auto; }
.meal-plan-table { width: 100%; border-collapse: collapse; font-family: var(--font-body); }
.meal-plan-table th, .meal-plan-table td { padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.meal-plan-table th { font-family: var(--font-display); font-weight: 500; font-size: 1.1rem; color: var(--accent); }
.meal-plan-table td.day-cell { width: 9rem; font-family: var(--font-display); font-weight: 500; color: var(--primary); }
.meal-plan-table a { color: var(--fg); text-decoration: none; font-weight: 500; }
.meal-plan-table a:hover { color: var(--accent); }
.meal-plan-table .family-tag { display: inline-block; margin-top: 0.25rem; font-size: 0.7rem; color: rgba(250,247,242,0.55); }

@media (max-width: 800px) {
  .meal-plan-table th, .meal-plan-table td { padding: 0.75rem 0.5rem; font-size: 0.9rem; }
  .meal-plan-table td.day-cell { width: 6rem; }
}

/* ── Recipe of the Day (homepage hero) ── */
.recipe-of-the-day {
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
  padding: 6rem 3rem 2rem; /* leave room for the fixed navbar (navbar height ≈ 5rem) */
}
.rod-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.rod-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  text-align: center;
  margin-bottom: 1.5rem;
}
.rod-card {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 2fr;
  gap: 2rem;
  align-items: center;
  max-width: 880px;
  margin: 0 auto;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.rod-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(26,15,15,0.10);
}
.rod-badge {
  position: absolute;
  top: -14px;
  left: 24px;
  background: var(--primary);
  color: var(--bg);
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  z-index: 2;
}
.rod-card .card-image { border-radius: var(--radius-md); overflow: hidden; }
.rod-card .card-image img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.rod-card .card-meta { display: flex; align-items: center; gap: 1rem; margin-top: 0.75rem; flex-wrap: wrap; }
.rod-card .card-chef { font-size: 0.9rem; color: var(--fg-muted); margin: 0.25rem 0 0; }
@media (max-width: 640px) {
  .recipe-of-the-day { padding: 5rem 1.25rem 1.5rem; }
  .rod-card { grid-template-columns: 1fr; }
  .rod-card .card-image img { aspect-ratio: 16/9; }
}

/* ── Print button (screen) ── */
.print-actions { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.print-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  background: var(--surface);
  color: var(--primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.print-btn:hover { border-color: var(--primary); color: var(--primary); }
.print-btn svg { width: 16px; height: 16px; }

/* ── Favorites toggle (recipe detail) ── */
.fav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  background: var(--surface);
  color: var(--primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background-color 0.2s;
}
.fav-toggle:hover { border-color: var(--primary); color: var(--primary); }
.fav-toggle svg { width: 16px; height: 16px; }
.fav-toggle .fav-toggle-label { font-size: 0.875rem; font-weight: 500; }
.fav-toggle.is-fav {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.fav-toggle.is-fav:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ── Print recipe ── */
@media print {
  /* Hide all non-recipe chrome */
  .navbar,
  .footer,
  .breadcrumb,
  .rating-widget,
  .detail-back,
  .print-actions {
    display: none !important;
  }

  /* Reset page chrome */
  body { background: #fff !important; color: #000 !important; }
  .detail-page { padding: 0 !important; background: #fff !important; }
  .detail-container { max-width: 100% !important; margin: 0 !important; }

  /* Title */
  .detail-title { color: #000 !important; font-size: 1.75rem !important; margin-bottom: 0.5rem !important; }
  .detail-chef { color: #000 !important; margin-bottom: 1rem !important; }

  /* Stats: keep prep/cook/time; show as a simple inline row */
  .detail-stats {
    background: transparent !important;
    border: 1px solid #000 !important;
    padding: 0.75rem !important;
    gap: 1.5rem !important;
    color: #000 !important;
    page-break-inside: avoid;
  }
  .stat-item { color: #000 !important; }
  .stat-label, .stat-value { color: #000 !important; }

  /* Single-column content: ingredients above steps */
  .detail-content {
    display: block !important;
    margin-top: 1.5rem !important;
  }
  .ingredients-panel {
    position: static !important;
    margin-bottom: 1.5rem !important;
    page-break-inside: avoid;
  }
  .panel-title {
    color: #000 !important;
    border-bottom: 1px solid #000 !important;
    margin-bottom: 0.75rem !important;
  }
  .ingredients-list { gap: 0.35rem !important; }
  .ingredient-item { color: #000 !important; }
  .ing-dot { background: #000 !important; }

  /* Steps */
  .steps-list { gap: 1rem !important; }
  .step-item { color: #000 !important; page-break-inside: avoid; }
  .step-num {
    background: transparent !important;
    color: #000 !important;
    border: 1px solid #000 !important;
    width: 1.75rem !important;
    height: 1.75rem !important;
    font-size: 0.875rem !important;
  }
  .step-text { color: #000 !important; padding-top: 0.25rem !important; }

  /* Badges: strip color, keep readable text */
  .detail-badges { margin-bottom: 0.75rem !important; }
  .difficulty-badge,
  .family-tag,
  .season-tag,
  .region-tag,
  .chef-badge {
    background: transparent !important;
    color: #000 !important;
    border: 1px solid #000 !important;
    padding: 0.15rem 0.5rem !important;
  }

  /* Keep simple B&W */
  a, a:visited { color: #000 !important; text-decoration: none !important; }

  /* Suppress background graphics in the print engine */
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}