/* ============================================================
   EatStruct Core Styles
   ============================================================ */

:root {
  --es-primary:   #2196F3;
  --es-green:     #4CAF50;
  --es-orange:    #FF9800;
  --es-red:       #F44336;
  --es-purple:    #9C27B0;
  --es-bg:        #f8f9fa;
  --es-card-bg:   #ffffff;
  --es-border:    #e0e0e0;
  --es-text:      #212121;
  --es-muted:     #5c5c5c;
  --es-radius:    10px;
  --es-shadow:    0 2px 8px rgba(0,0,0,.08);
}

/* ── Container ─────────────────────────────────────────────── */
.es-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px 60px;
}

/* ── Breadcrumbs ────────────────────────────────────────────── */
.es-breadcrumbs ol { display:flex; flex-wrap:wrap; gap:6px; list-style:none; margin:0 0 20px; padding:0; font-size:.85rem; color:var(--es-muted); }
.es-breadcrumbs li + li::before { content:"›"; margin-right:6px; }
.es-breadcrumbs a { color:var(--es-primary); text-decoration:none; }

/* ── Buttons ────────────────────────────────────────────────── */
.es-btn { display:inline-block; padding:10px 20px; background:var(--es-primary); color:#fff; border:none; border-radius:6px; cursor:pointer; font-size:.95rem; text-decoration:none; transition:background .2s; }
.es-btn:hover { background:#1976D2; color:#fff; }
.es-btn--outline { background:transparent; border:2px solid var(--es-primary); color:var(--es-primary); }
.es-btn--outline:hover { background:var(--es-primary); color:#fff; }

/* ── Diet badges ────────────────────────────────────────────── */
.es-diet-badges { display:flex; flex-wrap:wrap; gap:6px; margin:8px 0; }
.es-badge { display:inline-block; padding:3px 10px; border-radius:20px; font-size:.75rem; font-weight:600; text-transform:uppercase; letter-spacing:.04em; }
.es-badge--vegan       { background:#C8E6C9; color:#1B5E20; }
.es-badge--vegetarian  { background:#DCEDC8; color:#33691E; }
.es-badge--chicken     { background:#FFE0B2; color:#A03008; } /* was #BF360C → 4.42:1 fail; #A03008 → 5.67:1 ✓ */
.es-badge--beef        { background:#F8BBD0; color:#880E4F; }
.es-badge--pork        { background:#FFCCBC; color:#7B1D0A; }
.es-badge--seafood     { background:#BBDEFB; color:#0D47A1; }
.es-badge--dairy       { background:#E1BEE7; color:#4A148C; }
.es-badge--high-protein{ background:#C5CAE9; color:#1A237E; }
.es-badge--low-carb    { background:#B2DFDB; color:#004D40; }

/* ── Recipe archive grid ────────────────────────────────────── */
.es-recipe-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:20px; margin:20px 0; }

.es-recipe-card { position:relative; display:flex; flex-direction:column; background:var(--es-card-bg); border-radius:var(--es-radius); box-shadow:var(--es-shadow); overflow:hidden; transition:transform .2s,box-shadow .2s; }
.es-recipe-card:hover { transform:translateY(-3px); box-shadow:0 6px 20px rgba(0,0,0,.12); }
/* Stretched link — the title <a> covers the whole card via ::after */
.es-recipe-card__link { color:var(--es-text); text-decoration:none; }
.es-recipe-card__link::after { content:''; position:absolute; inset:0; z-index:0; }
/* Badges stay tappable above the stretched link overlay */
.es-recipe-card .es-badge,
.es-recipe-card .es-diet-badges { position:relative; z-index:1; }
.es-recipe-card__img { height:140px; overflow:hidden; display:flex; align-items:center; justify-content:center; font-size:3.8rem; }
.es-recipe-card__img img { width:100%; height:100%; object-fit:cover; }

/* Emoji card backgrounds — colour-coded by diet tag */
.es-recipe-card__img--emoji                       { background:linear-gradient(135deg,#f5f5f5,#ececec); }
.es-recipe-card__img--emoji[data-diet*="vegan"]    { background:linear-gradient(135deg,#E8F5E9,#C8E6C9); }
.es-recipe-card__img--emoji[data-diet*="vegetarian"]{ background:linear-gradient(135deg,#F1F8E9,#DCEDC8); }
.es-recipe-card__img--emoji[data-diet*="chicken"]  { background:linear-gradient(135deg,#FFF3E0,#FFE0B2); }
.es-recipe-card__img--emoji[data-diet*="beef"]     { background:linear-gradient(135deg,#FCE4EC,#F8BBD0); }
.es-recipe-card__img--emoji[data-diet*="pork"]     { background:linear-gradient(135deg,#FBE9E7,#FFCCBC); }
.es-recipe-card__img--emoji[data-diet*="seafood"]  { background:linear-gradient(135deg,#E3F2FD,#BBDEFB); }
.es-recipe-card__img--emoji[data-diet*="dairy"]    { background:linear-gradient(135deg,#F3E5F5,#E1BEE7); }
.es-recipe-card__body { padding:14px; flex:1; }
.es-recipe-card__title { margin:0 0 8px; font-size:1rem; font-weight:600; line-height:1.4; }
.es-recipe-card__footer { display:flex; gap:8px; margin-top:10px; flex-wrap:wrap; }

/* ── Nutrition pills ────────────────────────────────────────── */
.es-nut-pill { padding:2px 8px; border-radius:12px; font-size:.75rem; background:#f5f5f5; color:var(--es-muted); }
.es-nut-pill--protein { background:#E8F5E9; color:#2E7D32; }

/* ── Archive layout ─────────────────────────────────────────── */
.es-archive__layout { display:grid; grid-template-columns:260px 1fr; gap:30px; }
@media(max-width:768px){ .es-archive__layout { grid-template-columns:1fr; } }

.es-filter-sidebar { background:var(--es-card-bg); border-radius:var(--es-radius); padding:20px; box-shadow:var(--es-shadow); height:fit-content; position:sticky; top:20px; }
.es-filter-group { margin-top:20px; }
.es-filter-group h4 { font-size:.85rem; text-transform:uppercase; letter-spacing:.08em; color:var(--es-muted); margin:0 0 10px; }
.es-filter-group a { display:flex; justify-content:space-between; padding:6px 0; text-decoration:none; color:var(--es-text); font-size:.9rem; border-bottom:1px solid #f0f0f0; }
.es-filter-group a:hover,.es-filter-group a.active { color:var(--es-primary); font-weight:600; }
.es-filter-group a small { color:var(--es-muted); }

.es-archive__header { margin-bottom:20px; }
.es-archive__header h1 { margin:0 0 4px; }
.es-archive__count { color:var(--es-muted); margin:0; }

/* ── Search ─────────────────────────────────────────────────── */
.es-search-form { display:flex; gap:8px; margin-bottom:16px; }
.es-search-input { flex:1; min-width:0; padding:10px 14px; border:1px solid var(--es-border); border-radius:6px; font-size:.95rem; }

/* Sidebar search — stack vertically so button doesn't overflow */
.es-filter-sidebar .es-search-form { flex-direction:column; gap:6px; }
.es-filter-sidebar .es-search-form .es-search-input { width:100%; }
.es-filter-sidebar .es-search-form .es-btn { width:100%; text-align:center; }

/* ── Recipe single ──────────────────────────────────────────── */
.es-recipe-single article { background:var(--es-card-bg); border-radius:var(--es-radius); padding:30px; box-shadow:var(--es-shadow); margin-bottom:30px; }
.es-recipe__header { margin-bottom:24px; }
.es-recipe__title { font-size:2rem; margin:0 0 12px; }
.es-recipe__meta { display:flex; gap:20px; flex-wrap:wrap; font-size:.9rem; color:var(--es-muted); margin-top:12px; }
.es-recipe__meta span strong { color:var(--es-text); }
.es-recipe__body { display:grid; grid-template-columns:1fr 2fr; gap:30px; }
@media(max-width:768px){ .es-recipe__body { grid-template-columns:1fr; } }

.es-recipe__ingredients h2,
.es-recipe__instructions h2 { font-size:1.2rem; margin:0 0 16px; border-bottom:2px solid var(--es-primary); padding-bottom:8px; }
.es-recipe__ingredients ul { list-style:none; padding:0; margin:0; }
.es-recipe__ingredients li { padding:8px 0; border-bottom:1px solid #f5f5f5; font-size:.95rem; display:flex; justify-content:space-between; align-items:center; }
.es-ing-link { color:var(--es-muted); font-size:.8rem; text-decoration:none; }
.es-ing-link:hover { color:var(--es-primary); }
.es-recipe__instructions ol { padding-left:20px; }
.es-recipe__instructions li { margin-bottom:14px; line-height:1.6; }

/* ── Nutrition panel ────────────────────────────────────────── */
.es-recipe__nutrition { grid-column:1/-1; background:#f9f9f9; border-radius:8px; padding:20px; margin-top:20px; }
.es-nutrition-grid { display:flex; gap:16px; flex-wrap:wrap; margin:16px 0; }
.es-nut-card { background:#fff; border-radius:8px; padding:14px 20px; text-align:center; box-shadow:0 1px 4px rgba(0,0,0,.06); min-width:90px; }
.es-nut-card__val { display:block; font-size:1.6rem; font-weight:700; color:var(--es-primary); }
.es-nut-card__label { font-size:.8rem; color:var(--es-muted); }
.es-macro-chart-wrap { max-width:220px; margin:0 auto; }

/* ── Food single ────────────────────────────────────────────── */
.es-food__header h1 { font-size:2rem; margin:0 0 8px; }
.es-food__subtitle { color:var(--es-muted); margin:0 0 12px; }
.es-food__quick-stats { display:flex; gap:16px; flex-wrap:wrap; margin:24px 0; }
.es-stat-card { background:var(--es-card-bg); border-radius:var(--es-radius); padding:16px 20px; text-align:center; box-shadow:var(--es-shadow); min-width:100px; flex:1; }
.es-stat-card__val { font-size:1.8rem; font-weight:700; color:var(--es-text); }
.es-stat-card__val small { font-size:.7em; color:var(--es-muted); margin-left:2px; }
.es-stat-card__label { font-size:.8rem; color:var(--es-muted); margin-top:4px; }

.es-food__charts { display:grid; grid-template-columns:1fr 1fr; gap:30px; margin:30px 0; }
@media(max-width:600px){ .es-food__charts { grid-template-columns:1fr; } }
.es-chart-wrap { background:var(--es-card-bg); border-radius:var(--es-radius); padding:20px; box-shadow:var(--es-shadow); }
.es-chart-wrap h2 { font-size:1.1rem; margin:0 0 16px; }

/* ── Mineral bars ───────────────────────────────────────────── */
.es-mineral-bars { display:flex; flex-direction:column; gap:10px; margin-top:12px; }
.es-mineral-bar { display:grid; grid-template-columns:140px 1fr 50px; align-items:center; gap:10px; }
.es-mineral-bar__label { font-size:.85rem; color:var(--es-text); }
.es-mineral-bar__track { background:#f0f0f0; border-radius:4px; height:10px; overflow:hidden; }
.es-mineral-bar__fill { height:100%; background:var(--es-primary); border-radius:4px; transition:width .4s; }
.es-mineral-bar__val { font-size:.8rem; color:var(--es-muted); text-align:right; }

/* ── Compare form ───────────────────────────────────────────── */
.es-compare-form { display:flex; gap:10px; max-width:400px; }

/* ── Tag cloud ──────────────────────────────────────────────── */
.es-tag-cloud { display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; }
.es-tag { padding:6px 14px; background:var(--es-bg); border:1px solid var(--es-border); border-radius:20px; text-decoration:none; color:var(--es-text); font-size:.85rem; transition:all .2s; }
.es-tag:hover { background:var(--es-primary); color:#fff; border-color:var(--es-primary); }

/* ── SEO link sections ──────────────────────────────────────── */
.es-seo-links, .es-recipe__ing-links, .es-related-recipes, .es-food__recipes { margin-top:40px; padding-top:30px; border-top:1px solid var(--es-border); }
.es-seo-links h3, .es-recipe__ing-links h3, .es-related-recipes h3, .es-food__recipes h2 { font-size:1.2rem; margin:0 0 16px; }

/* ── Pagination ─────────────────────────────────────────────── */
.es-pagination ul { display:flex; flex-wrap:wrap; gap:6px; list-style:none; margin:30px 0; padding:0; justify-content:center; }
.es-pagination li a, .es-pagination li { padding:8px 14px; border-radius:6px; border:1px solid var(--es-border); text-decoration:none; color:var(--es-text); font-size:.9rem; }
.es-pagination li.active { background:var(--es-primary); color:#fff; border-color:var(--es-primary); }
.es-pagination li a:hover { background:#f0f0f0; }

/* ── No results ─────────────────────────────────────────────── */
.es-no-results { padding:40px; text-align:center; color:var(--es-muted); background:var(--es-card-bg); border-radius:var(--es-radius); }

/* ── Recipe source footer ───────────────────────────────────── */
.es-recipe__source { margin-top:24px; padding-top:16px; border-top:1px solid var(--es-border); color:var(--es-muted); }

/* ── Food comparison page ───────────────────────────────────── */
.es-food-compare { }
.es-compare__title { font-size:2rem; margin:0 0 6px; display:flex; align-items:center; gap:14px; flex-wrap:wrap; }
.es-compare__vs { display:inline-block; padding:4px 14px; background:var(--es-primary); color:#fff; border-radius:20px; font-size:1rem; font-weight:700; }
.es-compare__subtitle { color:var(--es-muted); margin:0 0 28px; }

/* Winner banners */
.es-compare__winners { display:flex; gap:20px; margin:24px 0; flex-wrap:wrap; }
.es-winner-card { flex:1; min-width:180px; background:var(--es-card-bg); border-radius:var(--es-radius); padding:20px; text-align:center; box-shadow:var(--es-shadow); border:2px solid var(--es-border); }
.es-winner-card--top { border-color:var(--es-primary); background:linear-gradient(135deg,#E3F2FD,#fff); }
.es-winner-emoji { font-size:2rem; }
.es-winner-name { font-weight:700; font-size:1rem; margin:8px 0 4px; }
.es-winner-wins { color:var(--es-primary); font-weight:600; font-size:.9rem; }

/* Chart */
.es-compare__chart-wrap { background:var(--es-card-bg); border-radius:var(--es-radius); padding:24px; box-shadow:var(--es-shadow); margin:24px 0; }

/* Comparison table */
.es-compare__table-wrap { overflow-x:auto; margin:24px 0; }
.es-compare__table { width:100%; border-collapse:collapse; background:var(--es-card-bg); border-radius:var(--es-radius); overflow:hidden; box-shadow:var(--es-shadow); }
.es-compare__table th { background:var(--es-primary); color:#fff; padding:12px 16px; text-align:left; font-size:.85rem; text-transform:uppercase; letter-spacing:.05em; }
.es-compare__table td { padding:12px 16px; border-bottom:1px solid #f0f0f0; font-size:.9rem; }
.es-compare__table tr:last-child td { border-bottom:none; }
.es-compare__table tr:nth-child(even) { background:#fafafa; }
.es-compare__cell--win { font-weight:700; color:var(--es-green); }
.es-compare__crown { color:#FFC107; margin-left:4px; }
.es-compare__diff { font-size:.82rem; }
.es-diff--more { color:var(--es-red); }
.es-diff--less { color:var(--es-green); }
.es-diff--equal { color:var(--es-muted); }

/* Back links */
.es-compare__backlinks { display:flex; gap:12px; margin-top:30px; flex-wrap:wrap; }
.es-compare__other { margin-top:30px; padding-top:24px; border-top:1px solid var(--es-border); }
.es-compare__other h2 { font-size:1.2rem; margin:0 0 16px; }
.es-compare__links { display:flex; flex-wrap:wrap; gap:8px; }

/* ── Foods archive ──────────────────────────────────────────── */
.es-food-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin:20px 0; }
@media(max-width:900px) { .es-food-grid { grid-template-columns:repeat(2,1fr); } }
@media(max-width:560px) { .es-food-grid { grid-template-columns:1fr; } }
.es-food-card { background:var(--es-card-bg); border-radius:var(--es-radius); padding:16px; box-shadow:var(--es-shadow); text-decoration:none; color:var(--es-text); transition:transform .2s,box-shadow .2s; display:flex; flex-direction:column; gap:6px; }
.es-food-card:hover { transform:translateY(-3px); box-shadow:0 6px 18px rgba(0,0,0,.1); }
.es-food-card__name { font-weight:700; font-size:.9rem; line-height:1.3; }
.es-food-card__cat { font-size:.72rem; color:var(--es-muted); text-transform:uppercase; letter-spacing:.05em; }
.es-food-card__stats { display:flex; gap:6px; flex-wrap:wrap; align-items:center; margin-top:4px; }
.es-food-card__stat { font-size:.75rem; padding:2px 7px; border-radius:10px; background:#f0f0f0; white-space:nowrap; }
.es-food-card__stat--cal { background:#FFF3E0; color:#E65100; }
.es-food-card__stat--pro { background:#E8F5E9; color:#2E7D32; }
.es-food-card__compare { margin-left:auto; font-size:.72rem; color:var(--es-primary,#4CAF50); white-space:nowrap; opacity:0; transition:opacity .15s; }
.es-food-card:hover .es-food-card__compare { opacity:1; }

/* ── High-in page ───────────────────────────────────────────── */
.es-high-in__header { margin-bottom:24px; }
.es-high-in__header h1 { margin:0 0 6px; }
.es-nutrient-tabs { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:24px; }
.es-nutrient-tab { padding:8px 16px; border-radius:20px; text-decoration:none; background:#f0f0f0; color:var(--es-text); font-size:.85rem; transition:all .2s; }
.es-nutrient-tab:hover,.es-nutrient-tab.active { background:var(--es-primary); color:#fff; }

/* ── Search page ────────────────────────────────────────────── */
.es-search-page { }
.es-search-hero { background:linear-gradient(135deg,#1976D2,#42A5F5); padding:50px 24px; text-align:center; color:#fff; border-radius:var(--es-radius); margin-bottom:30px; }
.es-search-hero h1 { margin:0 0 20px; font-size:2.2rem; }
.es-search-hero .es-search-form { max-width:580px; margin:0 auto; }
.es-search-hero .es-search-input { border:none; font-size:1.1rem; padding:14px 18px; }
.es-search-hero .es-btn { background:#FF9800; padding:14px 24px; font-size:1.1rem; }
.es-search-results__header { margin-bottom:20px; }
.es-search-tabs { display:flex; gap:12px; margin-bottom:24px; border-bottom:2px solid var(--es-border); }
.es-search-tab { padding:10px 20px; text-decoration:none; color:var(--es-muted); border-bottom:2px solid transparent; margin-bottom:-2px; transition:all .2s; }
.es-search-tab.active,.es-search-tab:hover { color:var(--es-primary); border-color:var(--es-primary); }

/* ══════════════════════════════════════════════════════════════
   HOMEPAGE
   ══════════════════════════════════════════════════════════════ */

/* ── Full-width breakout (works inside GeneratePress or any theme container) */
.es-hero,
.es-stats-bar,
.es-home-section--alt {
  width: 100vw;
  position: relative;
  left: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  right: 50%;
}

/* ── Hero ───────────────────────────────────────────────────── */
.es-hero {
  background: linear-gradient(135deg, #0D47A1 0%, #1976D2 50%, #42A5F5 100%);
  padding: 80px 16px 70px;
  text-align: center;
  color: #fff;
}
.es-hero__title {
  color: #ffffff !important;
  font-size: 2.8rem;
  font-weight: 800;
  margin: 0 0 16px;
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.es-hero__sub {
  color: rgba(255,255,255,.9) !important;
  font-size: 1.15rem;
  margin: 0 0 36px;
}
.es-hero__search { max-width: 620px; margin: 0 auto; }
.es-hero__search-wrap {
  display: flex;
  border-radius: 50px;
  overflow: hidden;
  box-shadow: 0 6px 30px rgba(0,0,0,.2);
}
.es-hero__search-input {
  flex: 1;
  padding: 16px 24px;
  border: none;
  font-size: 1.05rem;
  outline: none;
  color: var(--es-text);
}
.es-hero__search-btn {
  padding: 16px 30px;
  background: #FF9800;
  color: #1a1a1a;  /* was #fff → 2.05:1 fail; #1a1a1a → 7.84:1 ✓ */
  border: none;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s;
  white-space: nowrap;
}
.es-hero__search-btn:hover { background: #F57C00; }
.es-hero__search-hints {
  margin-top: 14px;
  font-size: .9rem;
  opacity: .8;
}
.es-hero__search-hints a {
  color: #fff;
  text-decoration: underline;
  margin: 0 6px;
}
.es-hero__search-hints a:hover { opacity: .7; }

/* ── Stats bar ───────────────────────────────────────────────── */
.es-stats-bar {
  background: var(--es-card-bg);
  border-bottom: 1px solid var(--es-border);
  padding: 0;
  box-sizing: border-box;
}
.es-stats-bar__inner {
  display: flex;
  justify-content: center;
  gap: 0;
  padding: 0 16px;
}
.es-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 40px;
  border-right: 1px solid var(--es-border);
}
.es-stat:last-child { border-right: none; }
.es-stat__num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--es-primary);
  line-height: 1;
}
.es-stat__label {
  font-size: .78rem;
  color: var(--es-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-top: 4px;
}
@media(max-width:600px) {
  .es-stats-bar__inner { flex-wrap: wrap; }
  .es-stat { padding: 16px 20px; border-right: none; border-bottom: 1px solid var(--es-border); width: 50%; }
}

/* ── Home sections ───────────────────────────────────────────── */
.es-home-section { padding: 60px 16px; }
.es-home-section--alt { background: var(--es-bg); }
.es-home-section .es-container { padding-top: 0; padding-bottom: 0; }
.es-home-section__title {
  color: var(--es-text) !important;
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 0 8px;
  text-align: center;
}
.es-home-section__sub {
  text-align: center;
  color: var(--es-muted);
  margin: 0 0 36px;
  font-size: 1rem;
}
/* Ensure all headings inside hero stay white */
.es-hero h1, .es-hero h2, .es-hero h3 { color: #ffffff !important; }
/* Ensure headings inside dark alt sections stay readable */
.es-how-step h3 { color: var(--es-text) !important; }

/* ── Diet cards ──────────────────────────────────────────────── */
.es-diet-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}
.es-diet-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 16px 20px;
  border-radius: var(--es-radius);
  text-decoration: none;
  color: var(--es-text);
  background: var(--es-card-bg);
  box-shadow: var(--es-shadow);
  border: 2px solid transparent;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.es-diet-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.es-diet-card--vegan:hover      { border-color: #4CAF50; }
.es-diet-card--vegetarian:hover { border-color: #8BC34A; }
.es-diet-card--chicken:hover    { border-color: #FF9800; }
.es-diet-card--beef:hover       { border-color: #E91E63; }
.es-diet-card--pork:hover       { border-color: #FF5722; }
.es-diet-card--seafood:hover    { border-color: #2196F3; }
.es-diet-card--dairy:hover      { border-color: #9C27B0; }
.es-diet-card__emoji { font-size: 2.8rem; line-height: 1; margin-bottom: 10px; }
.es-diet-card__label { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.es-diet-card__desc  { font-size: .78rem; color: var(--es-muted); margin-bottom: 8px; line-height: 1.4; }
.es-diet-card__count { font-size: .75rem; color: var(--es-primary); font-weight: 600; }

/* ── Ingredient chips ────────────────────────────────────────── */
.es-ingredient-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.es-ingredient-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--es-card-bg);
  border: 1px solid var(--es-border);
  border-radius: 50px;
  text-decoration: none;
  color: var(--es-text);
  font-size: .9rem;
  transition: background .2s, border-color .2s, color .2s;
}
.es-ingredient-chip:hover {
  background: var(--es-primary);
  border-color: var(--es-primary);
  color: #fff;
}
.es-ingredient-chip__count {
  background: #f0f0f0;
  color: var(--es-muted);
  border-radius: 20px;
  padding: 1px 8px;
  font-size: .75rem;
  transition: background .2s, color .2s;
}
.es-ingredient-chip:hover .es-ingredient-chip__count {
  background: rgba(255,255,255,.25);
  color: #fff;
}

/* ── Nutrient links ──────────────────────────────────────────── */
.es-nutrient-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-bottom: 40px;
}
.es-nutrient-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--es-card-bg);
  border-radius: var(--es-radius);
  box-shadow: var(--es-shadow);
  text-decoration: none;
  color: var(--es-text);
  font-weight: 600;
  font-size: .9rem;
  border: 1px solid var(--es-border);
  transition: transform .2s, box-shadow .2s;
}
.es-nutrient-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,.1);
  color: var(--es-primary);
}
.es-nutrient-link__emoji { font-size: 1.4rem; }

/* ── Compare CTA ─────────────────────────────────────────────── */
.es-compare-cta {
  background: linear-gradient(135deg, #E3F2FD, #BBDEFB);
  border-radius: var(--es-radius);
  padding: 36px;
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}
.es-compare-cta h3 { margin: 0 0 8px; font-size: 1.4rem; }
.es-compare-cta > p { color: var(--es-muted); margin: 0 0 20px; }
.es-compare-mini {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.es-compare-mini .es-input {
  padding: 10px 16px;
  border: 1px solid var(--es-border);
  border-radius: 6px;
  font-size: .95rem;
  width: 180px;
}
.es-compare-mini__vs {
  font-weight: 700;
  color: var(--es-muted);
  font-size: .9rem;
}
.es-compare-mini__hint {
  margin: 14px 0 0;
  font-size: .82rem;
  color: var(--es-muted);
}
.es-compare-mini__hint a { color: var(--es-primary); }

/* ── How it works ────────────────────────────────────────────── */
.es-how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media(max-width:700px) { .es-how-grid { grid-template-columns: 1fr; } }
.es-how-step {
  background: var(--es-card-bg);
  border-radius: var(--es-radius);
  padding: 28px 24px;
  box-shadow: var(--es-shadow);
  text-align: center;
}
.es-how-step__num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--es-primary);
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.es-how-step h3 { margin: 0 0 10px; font-size: 1.1rem; }
.es-how-step p  { margin: 0; color: var(--es-muted); font-size: .9rem; line-height: 1.6; }

/* ── SEO tag cloud ───────────────────────────────────────────── */
.es-seo-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.es-seo-links a {
  padding: 6px 14px;
  background: var(--es-bg);
  border: 1px solid var(--es-border);
  border-radius: 20px;
  text-decoration: none;
  color: var(--es-text);
  font-size: .85rem;
  transition: background .2s, color .2s;
}
.es-seo-links a:hover {
  background: var(--es-primary);
  color: #fff;
  border-color: var(--es-primary);
}

@media(max-width:768px) {
  .es-hero__title { font-size: 2rem; }
  .es-hero { padding: 60px 16px 50px; }
  .es-diet-cards { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .es-compare-cta { padding: 24px 16px; }
  .es-compare-mini .es-input { width: 140px; }
}

/* ── Footer nav ─────────────────────────────────────────────── */
.es-footer-nav {
  background: #1a1a2e;
  padding: 32px 24px 24px;
  text-align: center;
  margin-top: 0;
}
.es-footer-nav__list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
}
.es-footer-nav__list li a {
  color: #ccc;
  text-decoration: none;
  font-size: 14px;
  transition: color .2s;
}
.es-footer-nav__list li a:hover { color: #fff; }
.es-footer-nav__copy {
  color: #aaa;
  font-size: 13px;
  margin: 0;
}

/* ── Food Compare: autocomplete + popular chips ─────────────── */
.es-food__compare {
  margin: 40px 0;
}
.es-food__compare h2 {
  margin-bottom: 16px;
}

/* Input row */
.es-compare-wrap {
  position: relative;
  max-width: 560px;
}
.es-compare-input-row {
  display: flex;
  gap: 8px;
}
.es-compare-input {
  flex: 1;
  padding: 10px 14px;
  font-size: .95rem;
  border: 2px solid var(--es-border, #e0e0e0);
  border-radius: 8px;
  outline: none;
  transition: border-color .2s;
  background: var(--es-bg, #fff);
  color: var(--es-text, #333);
}
.es-compare-input:focus {
  border-color: var(--es-primary, #4CAF50);
}

/* Autocomplete dropdown */
.es-autocomplete-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin: 4px 0 0;
  padding: 4px 0;
  background: var(--es-bg, #fff);
  border: 1px solid var(--es-border, #e0e0e0);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
  list-style: none;
  z-index: 9999;
  max-height: 280px;
  overflow-y: auto;
}
.es-autocomplete-list[hidden] { display: none; }
.es-autocomplete-item {
  padding: 9px 14px;
  font-size: .88rem;
  cursor: pointer;
  color: var(--es-text, #333);
  line-height: 1.3;
  transition: background .1s;
}
.es-autocomplete-item:hover,
.es-autocomplete-item--active {
  background: var(--es-primary, #4CAF50);
  color: #fff;
}

/* Popular comparisons chips */
.es-compare-popular {
  margin-top: 20px;
}
.es-compare-popular__label {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #888;
  margin: 0 0 10px;
  font-weight: 600;
}
.es-compare-popular__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.es-compare-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: var(--es-bg, #f8f8f8);
  border: 1px solid var(--es-border, #e0e0e0);
  border-radius: 20px;
  font-size: .83rem;
  color: var(--es-text, #333);
  text-decoration: none;
  transition: background .15s, color .15s, border-color .15s;
  white-space: nowrap;
}
.es-compare-chip:hover {
  background: var(--es-primary, #4CAF50);
  color: #fff;
  border-color: var(--es-primary, #4CAF50);
}

/* ── Diet Analysis Panel ─────────────────────────────────────── */
.es-diet-analysis {
  margin: 40px 0;
  padding: 28px 24px;
  background: var(--es-bg, #fff);
  border: 1px solid var(--es-border, #e0e0e0);
  border-radius: 12px;
}
.es-diet-analysis h2 {
  margin: 0 0 20px;
  font-size: 1.25rem;
}
.es-per-serving {
  font-size: .8rem;
  font-weight: 400;
  color: #888;
}
.es-nutrition-summary {
  margin: -8px 0 24px;
  font-size: .98rem;
  line-height: 1.6;
  color: var(--es-text, #333);
}

/* Lever 2 editorial content */
.es-recipe__notes {
  margin: 32px 0;
  display: grid;
  gap: 20px;
}
.es-note h2 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}
.es-note p {
  margin: 0;
  line-height: 1.65;
  color: var(--es-text, #333);
}
.es-recipe__faq {
  margin: 40px 0;
  padding: 28px 24px;
  background: var(--es-bg, #fff);
  border: 1px solid var(--es-border, #e0e0e0);
  border-radius: 12px;
}
.es-recipe__faq > h2 {
  margin: 0 0 16px;
  font-size: 1.25rem;
}
.es-faq__item {
  padding: 14px 0;
  border-top: 1px solid var(--es-border, #ececec);
}
.es-faq__item:first-of-type {
  border-top: 0;
}
.es-faq__q {
  margin: 0 0 6px;
  font-size: 1.02rem;
  font-weight: 600;
}
.es-faq__a {
  margin: 0;
  line-height: 1.65;
  color: var(--es-text, #444);
}
.es-inline-link {
  color: var(--es-link, #c0392b);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.es-inline-link:hover {
  text-decoration: none;
}
.es-diet-analysis__inner {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  align-items: start;
}
@media(max-width:700px) {
  .es-diet-analysis__inner { grid-template-columns: 1fr; }
}

/* Calorie badge */
.es-calorie-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--es-primary, #4CAF50);
  color: #fff;
  border-radius: 10px;
  padding: 16px 12px 12px;
  margin-bottom: 16px;
  text-align: center;
}
.es-calorie-badge__num {
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
}
.es-calorie-badge__unit {
  font-size: .85rem;
  opacity: .85;
  margin-top: 2px;
}
.es-calorie-badge__dv {
  font-size: .78rem;
  opacity: .75;
  margin-top: 4px;
}

/* Macro donut */
.es-macro-chart-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}
.es-macro-chart-wrap canvas {
  max-width: 180px;
  max-height: 180px;
}
.es-macro-legend {
  display: flex;
  justify-content: center;
  gap: 12px;
  font-size: .8rem;
  color: #555;
  flex-wrap: wrap;
}
.es-macro-legend__dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 4px;
  vertical-align: middle;
}

/* Nutrient sections */
.es-nut-section {
  margin-bottom: 20px;
}
.es-nut-section__title {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #888;
  margin: 0 0 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--es-border, #e0e0e0);
}

/* Nutrient rows */
.es-nut-row {
  margin-bottom: 8px;
}
.es-nut-row__head {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 3px;
}
.es-nut-row__name {
  flex: 1;
  font-size: .88rem;
  color: var(--es-text, #333);
}
.es-nut-row__val {
  font-size: .88rem;
  font-weight: 600;
  color: var(--es-text, #333);
  white-space: nowrap;
}
.es-nut-row__dv {
  font-size: .75rem;
  color: #888;
  white-space: nowrap;
}

/* Progress bar */
.es-nut-bar {
  height: 6px;
  background: #f0f0f0;
  border-radius: 3px;
  overflow: hidden;
}
.es-nut-bar__fill {
  height: 100%;
  border-radius: 3px;
  transition: width .4s ease;
}

/* FDA footnote */
.es-dv-note {
  font-size: .75rem;
  color: #999;
  margin: 16px 0 0;
  border-top: 1px solid var(--es-border, #e0e0e0);
  padding-top: 10px;
}

/* ── Food Group Page ─────────────────────────────────────────── */
.es-food-group {}

.es-group__header { margin-bottom: 24px; }
.es-group__header h1 { font-size: 2rem; font-weight: 800; margin: 0 0 8px; color: var(--es-text); }
.es-group__subtitle { color: var(--es-muted); font-size: .95rem; margin: 0; }

/* Average stats banner */
.es-group__avg-bar {
  background: linear-gradient(135deg, var(--es-primary) 0%, #1565C0 100%);
  color: #fff;
  border-radius: var(--es-radius);
  padding: 20px 24px;
  margin-bottom: 32px;
}
.es-group__avg-title {
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  opacity: .8;
  margin-bottom: 14px;
}
.es-group__avg-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.es-group__avg-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.es-group__avg-num {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
}
.es-group__avg-lbl {
  font-size: .72rem;
  opacity: .75;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* Variants table */
.es-group__table-wrap { margin-bottom: 40px; }
.es-group__table-wrap h2 { font-size: 1.25rem; font-weight: 700; margin: 0 0 6px; }
.es-group__table-note { color: var(--es-muted); font-size: .85rem; margin: 0 0 14px; }

.es-group__table {
  width: 100%;
  border-collapse: collapse;
  font-size: .875rem;
  min-width: 700px;
}
.es-group__table thead th {
  background: #f0f4f8;
  padding: 10px 12px;
  text-align: left;
  font-weight: 700;
  color: var(--es-text);
  border-bottom: 2px solid var(--es-border);
  white-space: nowrap;
}
.es-group__th--num { text-align: right !important; }
.es-group__table tbody tr { border-bottom: 1px solid var(--es-border); transition: background .15s; }
.es-group__row { cursor: pointer; }
.es-group__row:hover { background: #f0f7ff; }
.es-group__td--name { padding: 10px 12px; font-weight: 500; color: var(--es-text); }
.es-group__td--num  { padding: 10px 12px; text-align: right; color: var(--es-muted); font-size: .82rem; white-space: nowrap; }

/* Compare section within group page */
.es-group__compare {
  background: var(--es-bg);
  border-radius: var(--es-radius);
  padding: 28px 24px;
  margin-top: 40px;
}
.es-group__compare h2 { font-size: 1.2rem; font-weight: 700; margin: 0 0 6px; }

@media (max-width: 600px) {
  .es-group__header h1 { font-size: 1.5rem; }
  .es-group__avg-num   { font-size: 1.2rem; }
  .es-group__avg-stats { gap: 16px; }
}

/* ── Food Group Compare Page ─────────────────────────────── */
.es-gc__header { margin-bottom: 28px; }
.es-gc__title {
  font-size: 1.9rem;
  font-weight: 800;
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  line-height: 1.2;
}
.es-gc__name--1 { color: #1565C0; }
.es-gc__name--2 { color: #E65100; }
.es-gc__vs-badge {
  display: inline-block;
  padding: 3px 14px;
  background: var(--es-primary);
  color: #fff;
  border-radius: 20px;
  font-size: 1rem;
  font-weight: 700;
  flex-shrink: 0;
}
.es-gc__subtitle { color: var(--es-muted); margin: 0; font-size: .95rem; }

/* Two-panel layout */
.es-gc__panels {
  display: grid;
  grid-template-columns: 1fr 48px 1fr;
  gap: 0;
  align-items: start;
  margin-bottom: 40px;
}
.es-gc__vs-sep {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  color: var(--es-muted);
  padding-top: 52px;
}
.es-gc__panel {
  background: var(--es-card-bg);
  border-radius: var(--es-radius);
  padding: 22px 20px 16px;
  box-shadow: var(--es-shadow);
  border-top: 4px solid var(--es-border);
}
.es-gc__panel--1 { border-top-color: #1565C0; border-radius: var(--es-radius) 0 0 var(--es-radius); }
.es-gc__panel--2 { border-top-color: #E65100; border-radius: 0 var(--es-radius) var(--es-radius) 0; }
.es-gc__panel-name {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--es-border);
}
.es-gc__panel--1 .es-gc__panel-name { color: #1565C0; }
.es-gc__panel--2 .es-gc__panel-name { color: #E65100; }
.es-gc__panel-stat {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 7px 0;
  border-bottom: 1px solid #f5f5f5;
  font-size: .9rem;
}
.es-gc__panel-stat:last-of-type { border-bottom: none; }
.es-gc__stat-label { color: var(--es-muted); }
.es-gc__stat-val { font-weight: 600; color: var(--es-text); }
.es-gc__stat-val--win { color: #2E7D32; }
.es-gc__panel-footer {
  margin-top: 12px;
  font-size: .75rem;
  color: var(--es-muted);
  text-align: right;
}

/* Comparison table */
.es-gc__table-wrap { margin-bottom: 32px; overflow-x: auto; }
.es-gc__table {
  width: 100%;
  border-collapse: collapse;
  font-size: .875rem;
  min-width: 480px;
  background: var(--es-card-bg);
  box-shadow: var(--es-shadow);
  border-radius: var(--es-radius);
  overflow: hidden;
}
.es-gc__table thead th {
  padding: 11px 14px;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  white-space: nowrap;
}
.es-gc__th--nutrient { background: #f0f4f8; color: var(--es-text); text-align: left; }
.es-gc__th--g1       { background: #E3F2FD; color: #1565C0; text-align: right; }
.es-gc__th--g2       { background: #FBE9E7; color: #E65100; text-align: right; }
.es-gc__th--higher   { background: #f0f4f8; color: var(--es-muted); text-align: center; }
.es-gc__table tbody tr { border-bottom: 1px solid #f0f0f0; transition: background .12s; }
.es-gc__table tbody tr:last-child { border-bottom: none; }
.es-gc__table tbody tr:hover { background: #fafafa; }
.es-gc__td--label { padding: 10px 14px; font-weight: 600; color: var(--es-text); }
.es-gc__td--val   { padding: 10px 14px; text-align: right; color: var(--es-muted); }
.es-gc__td--win1  { color: #1565C0; font-weight: 700; }
.es-gc__td--win2  { color: #E65100; font-weight: 700; }
.es-gc__td--badge { padding: 10px 14px; text-align: center; }
.es-gc__winner-chip {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 10px;
  font-size: .75rem;
  font-weight: 600;
  white-space: nowrap;
}
.es-gc__winner-chip--1  { background: #E3F2FD; color: #1565C0; }
.es-gc__winner-chip--2  { background: #FBE9E7; color: #E65100; }
.es-gc__winner-chip--eq { background: #f5f5f5; color: var(--es-muted); }

/* Action buttons */
.es-gc__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 36px; }
.es-gc__btn--1 { background: #1565C0 !important; }
.es-gc__btn--1:hover { background: #0D47A1 !important; }
.es-gc__btn--2 { background: #E65100 !important; }
.es-gc__btn--2:hover { background: #BF360C !important; }

/* Also compare section */
.es-gc__more {
  background: var(--es-bg);
  border-radius: var(--es-radius);
  padding: 22px 20px;
}
.es-gc__more h2 { font-size: 1rem; font-weight: 700; margin: 0 0 12px; }
.es-gc__chips   { display: flex; flex-wrap: wrap; gap: 8px; }

@media (max-width: 600px) {
  .es-gc__title { font-size: 1.4rem; }
  .es-gc__panels { grid-template-columns: 1fr; gap: 8px; }
  .es-gc__vs-sep { padding-top: 0; }
  .es-gc__panel--1,
  .es-gc__panel--2 { border-radius: var(--es-radius); }
}

/* ── Diet badge links ───────────────────────────────────────── */
a.es-badge {
  text-decoration: none;
  display: inline-block;
}
a.es-badge:hover {
  filter: brightness(.9);
  text-decoration: none;
}

/* ── Browse more cluster links ──────────────────────────────── */
.es-browse-more {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 8px;
  padding-top: 20px;
  border-top: 1px solid var(--es-border);
}
.es-browse-more__link {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 20px;
  background: var(--es-light);
  color: var(--es-primary);
  font-size: .875rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--es-border);
  transition: background .15s, color .15s;
}
.es-browse-more__link:hover {
  background: var(--es-primary);
  color: #fff;
  text-decoration: none;
}
.es-browse-more__link--all {
  color: var(--es-muted);
  font-weight: 400;
}
.es-browse-more__link--all:hover {
  background: var(--es-muted);
  color: #fff;
}

/* ── Star Rating Widget ─────────────────────────────────────── */
.es-rating {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px 0 14px;
  flex-wrap: wrap;
}
.es-rating__stars {
  display: flex;
  gap: 3px;
}
.es-rating__star {
  background: none;
  border: none;
  font-size: 1.6rem;
  color: #d1d5db;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color .12s, transform .1s;
}
.es-rating__star:hover,
.es-rating__star--hover { color: #f59e0b; transform: scale(1.15); }
.es-rating__star--active { color: #f59e0b; }
.es-rating--voted .es-rating__star { cursor: default; }
.es-rating--voted .es-rating__star:hover { transform: none; }
.es-rating__summary {
  font-size: .85rem;
  color: var(--es-muted);
}
.es-rating__thanks {
  font-size: .85rem;
  color: var(--es-green);
  font-weight: 600;
}

/* ── Dinner cluster → pillar callout (shown on diet/cuisine archive pages) */
.es-dinner-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
  border: 1px solid #bbdefb;
  border-left: 4px solid var(--es-primary);
  border-radius: var(--es-radius);
  padding: 16px 20px;
  margin: 28px 0 0;
}
.es-dinner-callout__text {
  font-size: .93rem;
  color: var(--es-text);
  line-height: 1.4;
}
.es-dinner-callout__text strong { color: var(--es-primary); }
.es-dinner-callout__btn {
  display: inline-block;
  padding: 9px 20px;
  background: var(--es-primary);
  color: #fff;
  border-radius: 20px;
  font-size: .875rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s;
  flex-shrink: 0;
}
.es-dinner-callout__btn:hover { background: #0d47a1; color: #fff; text-decoration: none; }

/* ── Dinner Pillar Page ───────────────────────────────────── */
.es-dinner { padding-bottom: 48px; }

.es-dinner__hero {
  text-align: center;
  padding: 52px 24px 40px;
  background: linear-gradient(135deg, #1a3a6e 0%, #1565c0 55%, #0288d1 100%);
  border-radius: var(--es-radius);
  margin-bottom: 36px;
  color: #fff;
}
.es-dinner__title {
  font-size: 2.4rem;
  font-weight: 900;
  margin: 0 0 14px;
  line-height: 1.15;
  color: #fff;
}
.es-dinner__subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,.88);
  margin: 0 auto;
  max-width: 580px;
  line-height: 1.55;
}

/* ── Quiz card ─────────────────────────────────────────────── */
.es-quiz {
  background: var(--es-card-bg);
  border-radius: var(--es-radius);
  box-shadow: var(--es-shadow);
  padding: 36px 32px 28px;
  margin: 0 auto 40px;
  max-width: 720px;
}
.es-quiz__question {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--es-text);
  margin: 0 0 20px;
}
.es-quiz__options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.es-quiz__opt {
  padding: 12px 20px;
  border: 2px solid var(--es-border);
  border-radius: 24px;
  background: var(--es-bg);
  color: var(--es-text);
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .15s, background .15s, transform .12s;
  line-height: 1.3;
}
.es-quiz__opt:hover {
  border-color: var(--es-primary);
  background: #e3f2fd;
  transform: translateY(-2px);
}
.es-quiz__opt--selected {
  border-color: var(--es-primary);
  background: var(--es-primary);
  color: #fff;
}
.es-quiz__progress {
  height: 6px;
  background: var(--es-border);
  border-radius: 3px;
  margin-top: 28px;
  overflow: hidden;
}
.es-quiz__progress-bar {
  height: 100%;
  background: var(--es-primary);
  border-radius: 3px;
  transition: width .4s ease;
}
.es-quiz__progress-lbl {
  font-size: .78rem;
  color: var(--es-muted);
  text-align: right;
  margin: 6px 0 0;
}

/* ── Default + filtered recipe sections ───────────────────── */
.es-dinner__section-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 20px;
}
.es-dinner__default-recipes,
.es-dinner__results { margin-bottom: 40px; }
.es-dinner__all-link { text-align: center; margin-top: 24px; }

/* ── Results header ────────────────────────────────────────── */
.es-dinner__results-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}
.es-dinner__results-header h2 { font-size: 1.4rem; font-weight: 700; margin: 0; }
.es-quiz__restart {
  font-size: .875rem;
  color: var(--es-primary);
  text-decoration: none;
}
.es-quiz__restart:hover { text-decoration: underline; }
.es-dinner__loading {
  color: var(--es-muted);
  font-style: italic;
  padding: 40px 0;
  text-align: center;
  grid-column: 1/-1;
}
.es-dinner__more-links { margin-top: 24px; text-align: center; }

/* ── Cluster navigation ────────────────────────────────────── */
.es-dinner__clusters {
  margin-top: 52px;
  padding-top: 40px;
  border-top: 2px solid var(--es-border);
}
.es-dinner__clusters > h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 24px;
}
.es-dinner__cluster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}
.es-dinner__cluster-group h3 {
  font-size: .75rem;
  font-weight: 700;
  color: var(--es-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin: 0 0 10px;
}
.es-dinner__cross-links { margin-top: 28px; }

/* ── SEO text block ────────────────────────────────────────── */
.es-dinner__seo {
  margin-top: 44px;
  padding: 28px 26px;
  background: var(--es-bg);
  border-radius: var(--es-radius);
  border-left: 4px solid var(--es-primary);
}
.es-dinner__seo h2 { font-size: 1.2rem; font-weight: 700; margin: 0 0 12px; }
.es-dinner__seo p {
  color: var(--es-text);
  font-size: .93rem;
  line-height: 1.7;
  margin: 0 0 10px;
}
.es-dinner__seo p:last-child { margin-bottom: 0; }
.es-dinner__seo a { color: var(--es-primary); }

/* ── FAQ ───────────────────────────────────────────────────── */
.es-dinner__faq { margin-top: 44px; }
.es-dinner__faq > h2 { font-size: 1.5rem; font-weight: 700; margin: 0 0 20px; }
.es-faq__item {
  border: 1px solid var(--es-border);
  border-radius: var(--es-radius);
  margin-bottom: 10px;
  overflow: hidden;
}
.es-faq__q {
  padding: 16px 20px;
  font-size: .95rem;
  font-weight: 600;
  color: var(--es-text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  list-style: none;
}
.es-faq__q::-webkit-details-marker { display: none; }
.es-faq__q::after { content: '+'; font-size: 1.3rem; color: var(--es-muted); flex-shrink: 0; }
details[open] > .es-faq__q::after { content: '−'; }
.es-faq__a {
  padding: 0 20px 16px;
  color: var(--es-muted);
  font-size: .9rem;
  line-height: 1.65;
  margin: 0;
}

/* ── Dinner link chip (browse-more section) ─────────────────── */
.es-browse-more__link--dinner {
  color: #e65100;
  border-color: #ffccbc;
}
.es-browse-more__link--dinner:hover { background: #e65100; color: #fff; }

/* ── Featured tag (dinner hub link in archive SEO section) ──── */
.es-tag--featured {
  background: linear-gradient(135deg, #1565c0, #0288d1);
  color: #fff !important;
  font-weight: 700;
  border: none;
}
.es-tag--featured:hover { opacity: .88; background: linear-gradient(135deg, #0d47a1, #01579b); }

/* Mobile */
@media (max-width: 600px) {
  .es-dinner__title { font-size: 1.65rem; }
  .es-quiz { padding: 24px 16px 20px; }
  .es-quiz__opt { padding: 10px 14px; font-size: .875rem; }
  .es-dinner__cluster-grid { grid-template-columns: 1fr; gap: 16px; }
}

/* ── Legal / trust pages (Editorial Policy, Methodology, Disclaimer) ── */
.es-legal { max-width: 820px; }
.es-legal__body { background:#fff; border:1px solid var(--es-border); border-radius:12px; padding:32px 36px; }
.es-legal__body h1 { font-size:2rem; margin:0 0 8px; }
.es-legal__intro { color:var(--es-muted); font-size:1.05rem; line-height:1.6; margin-bottom:8px; }
.es-legal__body h2 { font-size:1.25rem; margin:28px 0 8px; padding-top:16px; border-top:1px solid var(--es-border); }
.es-legal__body p, .es-legal__body li { line-height:1.7; color:#2c2c2c; }
.es-legal__body ul { padding-left:22px; }
.es-legal__body li { margin-bottom:8px; }
.es-legal__body a { color:var(--es-primary); }
.es-legal__updated { margin-top:28px; color:var(--es-muted); font-size:.9rem; }

/* Per-page trust line on recipe & food pages */
.es-trust-note { margin-top:18px; padding:12px 16px; background:var(--es-bg); border:1px solid var(--es-border); border-radius:8px; font-size:.85rem; color:var(--es-muted); line-height:1.55; }
.es-trust-note a { color:var(--es-primary); }

/* Footer trust links row */
.es-footer-trust { margin-top:10px; }
.es-footer-trust a { color:rgba(255,255,255,.65); font-size:.82rem; margin:0 8px; }
.es-footer-trust a:hover { color:#fff; }

@media (max-width: 600px) {
  .es-legal__body { padding:22px 18px; }
}

/* ── Diet highlights (recipe) ─────────────────────────── */
.es-diet-highlights{margin-top:18px;padding:14px 16px;background:#f7f9f7;border:1px solid #e3e8e3;border-radius:10px}
.es-diet-highlights__row{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:8px}
.es-diet-highlights__label{font-weight:700;font-size:.8rem;letter-spacing:.03em;text-transform:uppercase;color:#4CAF50;min-width:64px}
.es-diet-highlights__label--warn{color:#C0392B}
.es-diet-flags{display:flex;gap:6px;flex-wrap:wrap}
.es-diet-flag{display:inline-block;padding:3px 10px;border-radius:999px;font-size:.82rem;font-weight:600;background:#e8f5e9;color:#2e7d32;border:1px solid #c8e6c9}
.es-diet-flag--allergen{background:#fdecea;color:#b71c1c;border-color:#f5c6cb}
.es-diet-highlights__note{margin:6px 0 0;font-size:.78rem;color:#777;line-height:1.4}

/* ── Food nutrient highlight sentence ─────────────────── */
.es-food__highlight{margin:8px 0 0;font-size:1rem;line-height:1.5;color:#333;font-weight:500}
