/* ===== NANA'S FOGÓN PALETTE — taken from the logo =====
   terracotta  #B96F57  the "Fogón" script     → accents, buttons, links
   sand        #DCC8B0  the "Nana's" serif     → hairlines, soft fills
   taupe       #72665A  the stove line-art     → secondary text, icons
   paper       #FFFFFF  the logo's background  → page
   cuban blue  #7591AA  the star               → fine lines, ticks, ratings, focus
   slate blue  #6A7D90  the underline          → hairline accents                        */
:root {
  --blue:         #7591aa;
  --blue-line:    #6a7d90;
  --blue-l:       #e9eef3;
  --terracotta:   #b96f57;
  --terracotta-d: #9c5843;
  --sand:         #dcc8b0;
  --sand-l:       #efe6dc;
  --taupe:        #72665a;
  --ink:          #3a322c;
  --paper:        #ffffff;
  --mist:         #faf7f4;

  /* legacy names, kept so every existing rule picks up the new palette */
  --cream:        var(--mist);
  --warm-white:   var(--paper);
  --dusty-rose:   #d9a897;
  --rose-dark:    var(--terracotta-d);
  --sage:         #a8957f;
  --sage-dark:    var(--taupe);
  --barn-red:     var(--terracotta);
  --wheat:        var(--sand);
  --wheat-dark:   #b09478;
  --brown:        var(--ink);
  --brown-light:  #8a7b6d;
  --text:         #4a4039;
  --text-muted:   #8f8277;
  --border:       #ece3d9;
  --shadow:       rgba(60, 48, 40, 0.06);

  --font-serif:  'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans:   'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-script: 'Allura', 'Playfair Display', cursive;
  --radius:      6px;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body {
  background: var(--cream);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

/* ===== GINGHAM STRIPE ===== */
.gingham-stripe {
  height: 8px;
  background-image: repeating-linear-gradient(
    90deg,
    var(--barn-red) 0px,
    var(--barn-red) 10px,
    transparent 10px,
    transparent 20px
  ),
  repeating-linear-gradient(
    0deg,
    var(--barn-red) 0px,
    var(--barn-red) 10px,
    transparent 10px,
    transparent 20px
  );
  background-color: var(--cream);
  opacity: 0.35;
}
.gingham-stripe.bottom { opacity: 0.2; }

/* ===== HEADER ===== */
.site-header {
  background: var(--warm-white);
  border-bottom: 2px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px var(--shadow);
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.logo-icon { font-size: 2rem; line-height: 1; }
.logo-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.logo-main {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--barn-red);
  letter-spacing: -0.01em;
  line-height: 1;
}
.logo-sub {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 300;
}
.header-nav { margin-left: auto; display: flex; align-items: center; gap: 0.75rem; }
.search-form { display: flex; gap: 0.4rem; }
.search-input {
  padding: 0.45rem 0.85rem;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  background: var(--cream);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  width: 220px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search-input:focus {
  outline: none;
  border-color: var(--dusty-rose);
  box-shadow: 0 0 0 3px rgba(185, 111, 87, 0.15);
}
.search-btn {
  padding: 0.45rem 1rem;
  background: var(--dusty-rose);
  color: #fff;
  border: none;
  border-radius: 20px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}
.search-btn:hover { background: var(--rose-dark); }

/* Weather badge in header */
.weather-badge {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.75rem;
  background: rgba(220, 200, 176, 0.15);
  border: 1.5px solid var(--wheat);
  border-radius: 20px;
  font-size: 0.82rem;
  white-space: nowrap;
  color: var(--brown);
  font-weight: 700;
}
.weather-temp { font-variant-numeric: tabular-nums; }
.weather-loc { font-size: 0.72rem; color: var(--text-muted); font-weight: 400; }

/* ── Seasonal body themes ────────────────────────────────────────── */
body.season-fall {
  --accent: var(--wheat-dark);
  --accent-bg: rgba(220, 200, 176, 0.08);
}
body.season-winter {
  --accent: var(--sage-dark);
  --accent-bg: rgba(106, 125, 97, 0.08);
}
body.season-winter .gingham-stripe {
  background-image: repeating-linear-gradient(90deg,var(--sage) 0,var(--sage) 10px,transparent 10px,transparent 20px),
                    repeating-linear-gradient(0deg,var(--sage) 0,var(--sage) 10px,transparent 10px,transparent 20px);
}
body.season-spring {
  --accent: #9f6a5c;
  --accent-bg: rgba(158, 107, 138, 0.08);
}
body.season-spring .gingham-stripe {
  background-image: repeating-linear-gradient(90deg,#9f6a5c 0,#9f6a5c 10px,transparent 10px,transparent 20px),
                    repeating-linear-gradient(0deg,#9f6a5c 0,#9f6a5c 10px,transparent 10px,transparent 20px);
}
body.season-summer {
  --accent: #b96f57;
  --accent-bg: rgba(200, 108, 26, 0.08);
}
body.season-summer .gingham-stripe {
  background-image: repeating-linear-gradient(90deg,#b96f57 0,#b96f57 10px,transparent 10px,transparent 20px),
                    repeating-linear-gradient(0deg,#b96f57 0,#b96f57 10px,transparent 10px,transparent 20px);
}

/* Cart link */
.cart-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brown);
  white-space: nowrap;
  transition: border-color 0.15s, background 0.15s;
}
.cart-link:hover { border-color: var(--wheat-dark); background: rgba(220, 200, 176,0.1); }
.cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.1rem;
  height: 1.1rem;
  background: var(--barn-red);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 10px;
  padding: 0 0.25rem;
}

/* ===== MAIN LAYOUT ===== */
.site-main {
  flex: 1;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  padding: 1.5rem 1.5rem 3rem;
}

/* ===== PAGE LAYOUT ===== */
.page-layout {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 2rem;
  align-items: start;
}

/* ===== SIDEBAR ===== */
.sidebar { display: flex; flex-direction: column; gap: 1.25rem; }
.sidebar-card {
  background: var(--warm-white);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 1.2rem;
  box-shadow: 0 2px 8px var(--shadow);
}
.sidebar-heading {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--barn-red);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.scrape-form { display: flex; flex-direction: column; gap: 0.75rem; }
.form-label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}
.form-input {
  padding: 0.4rem 0.6rem;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  background: var(--cream);
  color: var(--text);
  font-size: 0.9rem;
}
.form-input:focus { outline: none; border-color: var(--dusty-rose); }
.btn {
  display: inline-block;
  padding: 0.5rem 1.1rem;
  border-radius: 20px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  border: none;
  text-align: center;
  transition: background 0.2s, transform 0.1s;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--barn-red); color: #fff; }
.btn-primary:hover { background: #6e2314; }
.btn-primary:disabled { background: var(--border); color: var(--text-muted); cursor: not-allowed; }
.btn-secondary { background: var(--border); color: var(--brown); }
.btn-secondary:hover { background: var(--wheat-dark); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1.5px solid var(--border);
  font-size: 0.8rem;
  padding: 0.3rem 0.8rem;
}
.btn-ghost:hover { border-color: var(--dusty-rose); color: var(--rose-dark); }
.scrape-msg {
  margin-top: 0.6rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
}
.cat-list { display: flex; flex-direction: column; gap: 0.2rem; }
.cat-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.3rem 0.5rem;
  border-radius: 6px;
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: background 0.15s, color 0.15s;
}
.cat-link:hover, .cat-link.active {
  background: rgba(185, 111, 87,0.12);
  color: var(--rose-dark);
}
.cat-count {
  font-size: 0.75rem;
  background: var(--border);
  color: var(--text-muted);
  padding: 0.1rem 0.4rem;
  border-radius: 10px;
}

/* ===== CONTENT HEADER ===== */
.content-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.page-title {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  color: var(--brown);
  font-weight: 700;
  flex: 1;
}
.result-count {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
}
.clear-search {
  font-size: 0.8rem;
  color: var(--dusty-rose);
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--dusty-rose);
  border-radius: 10px;
  transition: background 0.15s;
}
.clear-search:hover { background: rgba(185, 111, 87,0.1); }

/* Favorites filter button */
.fav-filter-btn {
  padding: 0.3rem 0.85rem;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}
.fav-filter-btn:hover, .fav-filter-btn.active {
  background: rgba(185, 111, 87,0.1);
  border-color: var(--dusty-rose);
  color: var(--rose-dark);
}

/* ===== RECIPE GRID ===== */
.recipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.4rem;
}
.recipe-card {
  background: var(--warm-white);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
}
.recipe-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px var(--shadow);
  border-color: var(--dusty-rose);
}
.card-img-wrap {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--border);
  flex-shrink: 0;
}
.card-img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  background: linear-gradient(135deg, var(--cream) 0%, var(--border) 100%);
}
.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.recipe-card:hover .card-img { transform: scale(1.04); }
.card-body { padding: 0.85rem; flex: 1; display: flex; flex-direction: column; gap: 0.3rem; }
.card-title-row {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
}
.card-title {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--brown);
  line-height: 1.35;
  flex: 1;
}
.card-author {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: italic;
}
.card-meta {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  font-size: 0.72rem;
  color: var(--text-muted);
}
.card-meta span { display: flex; align-items: center; gap: 0.2rem; }
.card-category {
  background: rgba(168, 149, 127, 0.18);
  color: var(--sage-dark);
  padding: 0.1rem 0.45rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ===== FAVORITES BUTTON ===== */
.fav-btn {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--border);
  line-height: 1;
  padding: 0.1rem;
  flex-shrink: 0;
  transition: color 0.15s, transform 0.15s;
}
.fav-btn:hover { color: var(--dusty-rose); transform: scale(1.2); }
.fav-btn.faved { color: var(--dusty-rose); }
.fav-btn-sm { font-size: 0.95rem; margin-top: 0.1rem; }

/* ===== PAGINATION ===== */
.pagination {
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}
.page-btn {
  padding: 0.5rem 1.2rem;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--barn-red);
  transition: background 0.15s, border-color 0.15s;
}
.page-btn:hover {
  background: rgba(185, 111, 87, 0.08);
  border-color: var(--barn-red);
}
.page-info { font-size: 0.85rem; color: var(--text-muted); }

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
}
.empty-icon { font-size: 3.5rem; margin-bottom: 1rem; }
.empty-state h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--brown-light);
  margin-bottom: 0.5rem;
}

/* ===== RECIPE PAGE ===== */
.recipe-page {
  max-width: 900px;
  margin: 0 auto;
}
.recipe-breadcrumb {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.recipe-breadcrumb a { color: var(--dusty-rose); font-weight: 700; }
.recipe-breadcrumb a:hover { color: var(--rose-dark); }

.recipe-article {
  background: var(--warm-white);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 20px var(--shadow);
}

/* Hero */
.recipe-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 340px;
}
.recipe-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.recipe-hero-text {
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, var(--cream) 0%, var(--warm-white) 100%);
  position: relative;
}
.recipe-hero-text::before {
  content: '';
  position: absolute;
  left: 0; top: 2rem; bottom: 2rem;
  width: 3px;
  background: linear-gradient(to bottom, transparent, var(--wheat), transparent);
}
.recipe-title-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}
.recipe-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--brown);
  line-height: 1.2;
  flex: 1;
}
.recipe-author { font-size: 0.9rem; color: var(--text-muted); }
.recipe-author em { font-style: italic; }

/* Meta strip */
.recipe-meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.meta-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 0.8rem;
  min-width: 70px;
  text-align: center;
  gap: 0.1rem;
}
.meta-icon { font-size: 1rem; }
.meta-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 700;
}
.meta-value {
  font-family: var(--font-serif);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--brown);
}

/* Serving stepper */
.serving-stepper {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-serif);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--brown);
}
.serving-stepper #serving-display { min-width: 1.5rem; text-align: center; }
.step-btn {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--warm-white);
  color: var(--barn-red);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background 0.15s, border-color 0.15s;
}
.step-btn:hover { background: var(--barn-red); color: #fff; border-color: var(--barn-red); }

/* Scale badge */
.scale-badge {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--barn-red);
  color: #fff;
  padding: 0.1rem 0.45rem;
  border-radius: 10px;
  vertical-align: middle;
}

/* Body */
.recipe-body {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  border-top: 1px solid var(--border);
}
.ingredients-section {
  padding: 1.5rem 1.5rem 2rem 2rem;
  border-right: 1px solid var(--border);
  background: var(--cream);
}
.directions-section {
  padding: 2rem 2rem 2rem 1.75rem;
}

/* Section heading with action */
.section-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.section-heading {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--barn-red);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0;
}
.heading-deco { color: var(--wheat); font-size: 0.9rem; }

/* Add all button */
.add-all-btn {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 15px;
  border: 1.5px solid var(--sage);
  background: transparent;
  color: var(--sage-dark);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}
.add-all-btn:hover { background: rgba(168, 149, 127,0.15); }
.add-all-btn.all-added { background: rgba(168, 149, 127,0.2); border-color: var(--sage-dark); color: var(--sage-dark); }

/* Ingredient list */
.ingredient-list { display: flex; flex-direction: column; }
.ingredient-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.93rem;
  line-height: 1.4;
  padding: 0.4rem 0;
  border-bottom: 1px dashed var(--border);
}
.ingredient-item:last-child { border-bottom: none; }
.ing-bullet { color: var(--wheat-dark); font-weight: 700; flex-shrink: 0; }
.ing-text { flex: 1; }

/* Per-ingredient add button */
.add-ing-btn {
  flex-shrink: 0;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--warm-white);
  color: var(--sage-dark);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.15s, background 0.15s, border-color 0.15s, color 0.15s;
}
.ingredient-item:hover .add-ing-btn { opacity: 1; }
.add-ing-btn.in-list {
  opacity: 1;
  background: rgba(168, 149, 127,0.2);
  border-color: var(--sage-dark);
  color: var(--sage-dark);
}
.add-ing-btn:hover { background: var(--sage); border-color: var(--sage); color: #fff; }

/* Steps */
.steps-list { display: flex; flex-direction: column; gap: 1.25rem; }
.step-item { display: flex; gap: 1rem; align-items: flex-start; }
.step-num {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  background: var(--barn-red);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 0.88rem;
  font-weight: 700;
  margin-top: 0.1rem;
}
.step-text { font-size: 0.95rem; line-height: 1.65; color: var(--text); }

/* Tags */
.recipe-tags {
  padding: 1.25rem 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.tag {
  font-size: 0.75rem;
  padding: 0.25rem 0.65rem;
  border-radius: 15px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: var(--cream);
  transition: all 0.15s;
}
.tag:hover { background: rgba(168, 149, 127,0.15); border-color: var(--sage); color: var(--sage-dark); }

/* Source */
.recipe-source {
  padding: 1rem 2rem 1.5rem;
  border-top: 1px solid var(--border);
}
.source-link { font-size: 0.8rem; color: var(--text-muted); text-decoration: underline; text-decoration-color: var(--border); }
.source-link:hover { color: var(--dusty-rose); }

.no-data { font-size: 0.88rem; color: var(--text-muted); font-style: italic; }

/* ===== SHOPPING LIST PAGE ===== */
.shopping-page { max-width: 700px; margin: 0 auto; }
.shopping-hero {
  text-align: center;
  padding: 1.5rem 0 2rem;
  border-bottom: 2px dashed var(--border);
  margin-bottom: 2rem;
}
.shopping-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--brown);
  margin-bottom: 0.4rem;
}
.shopping-sub { font-size: 0.9rem; color: var(--text-muted); font-style: italic; }

.list-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.list-summary { font-size: 0.88rem; color: var(--text-muted); }

.list-group { margin-bottom: 2rem; }
.list-cat-heading {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--barn-red);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
}
.cat-icon { font-size: 1rem; }

.list-items { display: flex; flex-direction: column; gap: 0; }
.list-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.5rem;
  border-bottom: 1px dashed var(--border);
  transition: background 0.1s;
}
.list-item:last-child { border-bottom: none; }
.list-item:hover { background: rgba(220, 200, 176,0.05); }
.list-item.checked { opacity: 0.5; }
.list-item.checked .list-item-text { text-decoration: line-through; }

.list-check {
  flex-shrink: 0;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 4px;
  border: 1.5px solid var(--border);
  background: var(--warm-white);
  color: var(--sage-dark);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.list-check:hover { border-color: var(--sage); }
.list-check.is-checked { background: var(--sage); border-color: var(--sage); color: #fff; }

.list-item-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}
.list-item-text {
  font-size: 0.93rem;
  color: var(--text);
}
.list-item-recipe {
  font-size: 0.72rem;
  color: var(--dusty-rose);
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}
.list-item-recipe:hover { text-decoration: underline; }

.list-remove {
  flex-shrink: 0;
  background: none;
  border: none;
  color: var(--border);
  font-size: 1rem;
  cursor: pointer;
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
  line-height: 1;
  transition: color 0.15s;
}
.list-remove:hover { color: var(--rose-dark); }

/* ===== ZIP BANNER ===== */
.zip-banner {
  background: linear-gradient(90deg, var(--wheat) 0%, var(--wheat-dark) 100%);
  color: var(--brown);
  padding: 0.65rem 1.5rem;
  margin-bottom: 1rem;
  border-radius: 10px;
}
.zip-banner-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.zip-banner-icon { font-size: 1.3rem; flex-shrink: 0; }
.zip-banner-text { flex: 1; font-size: 0.88rem; min-width: 180px; }
.zip-banner-text strong { display: block; font-size: 0.95rem; }
.zip-form { display: flex; gap: 0.4rem; align-items: center; }
.zip-input {
  padding: 0.4rem 0.75rem;
  border: 1.5px solid rgba(60, 48, 40,0.3);
  border-radius: 20px;
  background: rgba(255,255,255,0.7);
  color: var(--brown);
  font-size: 0.88rem;
  width: 110px;
}
.zip-input:focus { outline: none; border-color: var(--barn-red); }
.zip-input-sm { width: 90px; font-size: 0.8rem; padding: 0.3rem 0.6rem; }
.zip-dismiss {
  background: none; border: none; color: var(--brown); cursor: pointer;
  font-size: 1rem; padding: 0.2rem; opacity: 0.6; flex-shrink: 0;
}
.zip-dismiss:hover { opacity: 1; }
.btn-sm { padding: 0.35rem 0.8rem; font-size: 0.82rem; }
.btn-xs { padding: 0.2rem 0.6rem; font-size: 0.75rem; }
.zip-change-form { display: flex; gap: 0.3rem; align-items: center; flex-shrink: 0; }

/* ===== SEASONAL BANNER ===== */
.season-banner {
  border-radius: 10px;
  padding: 0.65rem 1.5rem;
  margin-bottom: 1.25rem;
  border-left: 4px solid;
}
.season-banner-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.season-icon { font-size: 1.5rem; flex-shrink: 0; }
.season-text { flex: 1; font-size: 0.88rem; }
.season-text strong { display: block; font-size: 0.95rem; }
.weather-inline { font-size: 0.85rem; color: var(--text-muted); }

.season-fall   { background: rgba(220, 200, 176,0.12); border-color: var(--wheat); }
.season-winter { background: rgba(168, 149, 127,0.1); border-color: var(--sage); }
.season-spring { background: rgba(185, 111, 87,0.1); border-color: var(--dusty-rose); }
.season-summer { background: rgba(185, 111, 87,0.08); border-color: var(--barn-red); }

/* Season ingredient tags in sidebar */
.season-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.season-tag {
  font-size: 0.75rem;
  padding: 0.2rem 0.55rem;
  border-radius: 12px;
  background: var(--cream);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all 0.15s;
}
.season-tag:hover { background: rgba(220, 200, 176,0.15); border-color: var(--wheat-dark); color: var(--brown); }

/* ===== WEATHER CARD ===== */
.weather-card { }
.weather-display {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}
.weather-big-icon { font-size: 2.2rem; line-height: 1; }
.weather-details { display: flex; flex-direction: column; }
.weather-temp { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 700; color: var(--brown); line-height: 1; }
.weather-cond { font-size: 0.82rem; color: var(--text-muted); }
.weather-city { font-size: 0.75rem; color: var(--text-muted); font-style: italic; }
.weather-suggestion { font-size: 0.82rem; color: var(--barn-red); font-style: italic; margin-top: 0.25rem; }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--brown);
  color: rgba(255,255,255,0.65);
  font-size: 0.8rem;
  padding: 1rem 1.5rem;
  margin-top: auto;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .page-layout { grid-template-columns: 1fr; }
  .sidebar { flex-direction: row; flex-wrap: wrap; }
  .sidebar-card { flex: 1; min-width: 200px; }
  .recipe-hero { grid-template-columns: 1fr; }
  .recipe-hero-img { height: 260px; }
  .recipe-body { grid-template-columns: 1fr; }
  .ingredients-section { border-right: none; border-bottom: 1px solid var(--border); }
  .add-ing-btn { opacity: 1; }
}
@media (max-width: 600px) {
  .header-inner { flex-wrap: wrap; }
  .header-nav { width: 100%; flex-wrap: wrap; }
  .search-input { flex: 1; width: auto; }
  .recipe-title { font-size: 1.5rem; }
}

/* ===== LADDER HINT ===== */
.ladder-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.6rem;
  line-height: 1.4;
}
.ladder-hint code {
  background: var(--border);
  padding: 0.1em 0.3em;
  border-radius: 3px;
  font-size: 0.7rem;
}
.ladder-ok { color: var(--sage-dark); }

/* ===== RATINGS ===== */
.card-rating {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-bottom: 0.3rem;
}
.card-rating .stars {
  color: var(--wheat);
  font-weight: 700;
  font-size: 0.85rem;
}
.card-rating .rating-count {
  color: var(--text-muted);
  font-size: 0.75rem;
}
.card-source {
  background: var(--sage);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
}
.recipe-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.4rem 0 0.8rem;
}
.rating-stars {
  color: var(--wheat);
  font-size: 1.1rem;
  letter-spacing: 0.05em;
}
.rating-value {
  font-weight: 700;
  font-size: 1rem;
  color: var(--brown);
}
.rating-count-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ===== MENUS NAV LINK ===== */
.menus-nav-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brown);
  white-space: nowrap;
  transition: border-color 0.15s, background 0.15s;
}
.menus-nav-link:hover {
  border-color: var(--barn-red);
  background: rgba(185, 111, 87, 0.08);
  color: var(--barn-red);
}

/* ===== MENUS — FILTER CHIPS (sidebar) ===== */
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.filter-chip {
  padding: 0.2rem 0.6rem;
  border-radius: 15px;
  border: 1.5px solid var(--border);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.15s;
}
.filter-chip:hover {
  background: rgba(185, 111, 87, 0.1);
  border-color: var(--dusty-rose);
  color: var(--rose-dark);
}
.filter-chip.active {
  background: var(--barn-red);
  border-color: var(--barn-red);
  color: #fff;
}

/* ===== MENUS — CARD BANNER (replaces photo) ===== */
.menu-card-banner {
  aspect-ratio: 4/3;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.menu-card-initial {
  font-family: var(--font-serif);
  font-size: 4rem;
  font-weight: 700;
  font-style: italic;
  color: rgba(255, 255, 255, 0.22);
  user-select: none;
  line-height: 1;
}
.menu-banner-occasions {
  background: linear-gradient(135deg, var(--barn-red) 0%, #a35c46 60%, #8c4a37 100%);
}
.menu-banner-everyday {
  background: linear-gradient(135deg, var(--sage) 0%, var(--sage-dark) 60%, #72665a 100%);
}
.menu-banner-community {
  background: linear-gradient(135deg, var(--dusty-rose) 0%, var(--rose-dark) 60%, #a35c46 100%);
}
.menu-banner-default {
  background: linear-gradient(135deg, var(--wheat) 0%, var(--wheat-dark) 60%, #a0866b 100%);
}
.menu-card-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-holiday {
  background: rgba(220, 200, 176, 0.2);
  color: var(--wheat-dark);
  padding: 0.1rem 0.45rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ===== MENUS — DETAIL HERO ===== */
.menu-detail-hero {
  position: relative;
  min-height: 180px;
  display: flex;
  align-items: flex-end;
  padding: 2rem 2rem 1.5rem;
  overflow: hidden;
}
.menu-detail-initial {
  font-family: var(--font-serif);
  font-size: 8rem;
  font-weight: 700;
  font-style: italic;
  color: rgba(255, 255, 255, 0.12);
  position: absolute;
  right: 1.5rem;
  bottom: -0.75rem;
  line-height: 1;
  user-select: none;
  pointer-events: none;
}
.menu-detail-title-wrap { position: relative; z-index: 1; }
.menu-detail-title {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}
.menu-detail-author {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.88rem;
  margin-top: 0.3rem;
  font-style: italic;
}

/* ===== MENUS — SECTIONS AND RECIPE ROWS ===== */
.menu-section {
  margin-bottom: 2rem;
}
.menu-section:last-child { margin-bottom: 0; }
.menu-recipe-list {
  display: flex;
  flex-direction: column;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--warm-white);
}
.menu-recipe-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px dashed var(--border);
  transition: background 0.12s;
}
.menu-recipe-row:last-child { border-bottom: none; }
.menu-recipe-row:hover { background: rgba(220, 200, 176, 0.07); }
.menu-recipe-body { flex: 1; min-width: 0; }
.menu-recipe-title {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--brown);
  line-height: 1.35;
}
.menu-recipe-chef {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 0.15rem;
}
.menu-recipe-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-top: 0.25rem;
}
.menu-recipe-link {
  flex-shrink: 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--dusty-rose);
  padding-top: 0.1rem;
  white-space: nowrap;
}
.menu-recipe-row:hover .menu-recipe-link { color: var(--rose-dark); }

/* ===== RESPONSIVE ===== */
@media (max-width: 700px) {
  .menu-detail-hero { padding: 1.5rem 1rem 1.25rem; }
  .menu-detail-initial { font-size: 5rem; right: 0.75rem; }
  .menu-sections { padding: 1rem 1rem 1.5rem !important; }
}

/* ===== MENUS — RECIPE THUMBS & GROUPED RECIPE LISTS ===== */
.menu-recipe-thumb {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--border);
}
.menu-banner-holidays, .menu-banner-chanukah, .menu-banner-passover, .menu-banner-shavuos,
.menu-banner-sukkos, .menu-banner-purim, .menu-banner-rosh-hashanah, .menu-banner-yom-kippur {
  background: linear-gradient(135deg, var(--barn-red) 0%, #a35c46 60%, #8c4a37 100%);
}
.menu-banner-quick-meals, .menu-banner-weeknight {
  background: linear-gradient(135deg, var(--sage) 0%, var(--sage-dark) 60%, #72665a 100%);
}
.ingredient-subhead, .step-subhead {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  color: var(--brown-light);
  padding: 0.75rem 0 0.25rem;
  border-bottom: 1px solid var(--border);
}
.ingredient-subhead:first-child, .step-subhead:first-child { padding-top: 0; }
.step-subhead { list-style: none; margin-bottom: 0.5rem; }

/* ===== RECIPE FAQ (written once by the enrichment worker) ===== */
.recipe-faq {
  margin: 1.5rem 2rem;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: var(--cream);
}
.recipe-faq summary {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.1rem;
  cursor: pointer;
  list-style: none;
}
.recipe-faq summary::-webkit-details-marker { display: none; }
.recipe-faq summary::after { content: "▾"; margin-left: auto; color: var(--text-muted); transition: transform 0.2s; }
.recipe-faq[open] summary::after { transform: rotate(180deg); }
.recipe-faq-title { font-family: var(--font-serif); font-size: 1.1rem; color: var(--barn-red); font-weight: 700; }
.recipe-faq-count {
  font-size: 0.72rem; font-weight: 700; background: var(--border); color: var(--text-muted);
  border-radius: 10px; padding: 0.05rem 0.45rem;
}
.recipe-faq-list { padding: 0 1.1rem 0.4rem; display: flex; flex-direction: column; gap: 0.2rem; }
.recipe-faq-item { padding: 0.65rem 0; border-top: 1px dashed var(--border); }
.recipe-faq-item dt { font-weight: 700; color: var(--brown); font-size: 0.95rem; }
.recipe-faq-item dd { margin: 0.25rem 0 0; color: var(--text); font-size: 0.92rem; line-height: 1.55; }
.recipe-faq-more { padding: 0 1.1rem 0.9rem; font-size: 0.85rem; color: var(--text-muted); }
.recipe-faq-more a { color: var(--dusty-rose); font-weight: 700; }
@media (max-width: 700px) { .recipe-faq { margin: 1rem; } }

/* ===== AI ILLUSTRATIONS (recipes that came without a photo) ===== */
.card-illus {
  background: rgba(139, 99, 71, 0.12);
  color: var(--brown-light);
  padding: 0.1rem 0.45rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.66rem;
  letter-spacing: 0.03em;
}
.illus-caption {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: italic;
  padding: 0.35rem 0.75rem;
}

/* ===== HOME LOCATION FIELD (country + postal code or city) ===== */
.loc-field { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; min-width: 0; }
.loc-field .loc-country { flex: 0 1 13rem; min-width: 0; }
.loc-field .loc-text { flex: 1 1 11rem; min-width: 0; }
.loc-field--compact .loc-country { flex-basis: 10rem; }
