/* =============================================================
   That's Good Soup — Redesign
   Editorial food magazine. Make people hungry.
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,900;1,400;1,700&family=DM+Serif+Display:ital@0;1&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --cream:    #FAF7F2;
  --cream2:   #F2EBE0;
  --terra:    #B8431F;
  --terra2:   #962F10;
  --terra-light: rgba(184,67,31,0.08);
  --brown:    #1A0D07;
  --brown2:   #4A2E22;
  --gold:     #D4922A;
  --gold2:    #A86F18;
  --green:    #2D5A3D;
  --muted:    #7A6558;
  --border:   #E0D4C4;
  --card-shadow: 0 2px 20px rgba(26,13,7,0.10);
  --card-shadow-hover: 0 12px 40px rgba(26,13,7,0.22);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--cream);
  color: var(--brown);
  line-height: 1.6;
}

img { display: block; }
a { color: inherit; text-decoration: none; }

/* ── Nav ─────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 200;
  background: rgba(250,247,242,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 3rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.nav-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1.35rem;
  color: var(--brown);
  letter-spacing: -0.01em;
}
.nav-logo strong { color: var(--terra); }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { font-size: 0.875rem; font-weight: 500; color: var(--brown2); transition: color 0.2s; letter-spacing: 0.01em; }
.nav-links a:hover { color: var(--terra); }
.btn-nav-cta {
  background: var(--terra); color: white !important;
  padding: 0.5rem 1.25rem; border-radius: 4px;
  font-size: 0.83rem !important; font-weight: 600 !important;
  letter-spacing: 0.04em; text-transform: uppercase;
  transition: background 0.2s;
}
.btn-nav-cta:hover { background: var(--terra2) !important; }

/* ── HERO ────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 94vh;
  min-height: 600px;
  overflow: hidden;
  display: flex; align-items: flex-end;
}

.hero-bg {
  position: absolute; inset: 0;
  background: #1A0D07;
}
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.72;
  transition: opacity 0.5s;
}
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(26,13,7,0.1) 0%,
    rgba(26,13,7,0.2) 40%,
    rgba(26,13,7,0.85) 100%
  );
}

.hero-content {
  position: relative; z-index: 2;
  padding: 4rem 5rem 5rem;
  max-width: 900px;
}
.hero-kicker {
  font-size: 0.75rem; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--gold); font-weight: 600; margin-bottom: 1.25rem;
  display: flex; align-items: center; gap: 0.75rem;
}
.hero-kicker::before { content: ''; display: block; width: 40px; height: 1px; background: var(--gold); }

.hero h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(3.5rem, 8vw, 7rem);
  color: white;
  line-height: 1.0;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}
.hero h1 em { color: var(--gold); font-style: italic; }

.hero-desc {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.75);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  font-weight: 300;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }

.btn-primary {
  background: var(--terra); color: white;
  padding: 1rem 2.25rem; border-radius: 4px;
  font-size: 0.9rem; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase;
  transition: background 0.2s, transform 0.15s;
  border: none; cursor: pointer; font-family: inherit;
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.btn-primary:hover { background: var(--terra2); transform: translateY(-1px); }

.btn-ghost {
  background: transparent; color: white;
  border: 1.5px solid rgba(255,255,255,0.45);
  padding: 1rem 2.25rem; border-radius: 4px;
  font-size: 0.9rem; font-weight: 500;
  letter-spacing: 0.04em; text-transform: uppercase;
  transition: border-color 0.2s, background 0.2s;
  cursor: pointer; font-family: inherit;
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.btn-ghost:hover { border-color: white; background: rgba(255,255,255,0.1); }

/* Fact ticker on hero */
.hero-fact {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 3;
  background: rgba(184,67,31,0.95);
  padding: 0.85rem 5rem;
  display: flex; align-items: center; gap: 1.5rem;
}
.hero-fact-label {
  font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,0.7); font-weight: 600; white-space: nowrap;
}
.hero-fact-text { font-size: 0.88rem; color: white; flex: 1; font-style: italic; }
.hero-fact-refresh {
  background: none; border: none; color: rgba(255,255,255,0.6);
  cursor: pointer; font-size: 1rem; padding: 0; transition: color 0.2s, transform 0.3s;
  flex-shrink: 0;
}
.hero-fact-refresh:hover { color: white; transform: rotate(180deg); }

/* ── SECTION LAYOUT ─────────────────────────────────── */
.section { padding: 5rem 3rem; max-width: 1400px; margin: 0 auto; }
.section-sm { padding: 3rem 3rem; max-width: 1400px; margin: 0 auto; }
.section-header { margin-bottom: 3rem; }
.section-kicker { font-size: 0.7rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--gold2); font-weight: 600; margin-bottom: 0.6rem; }
.section-title { font-family: 'DM Serif Display', serif; font-size: clamp(1.8rem, 4vw, 3rem); color: var(--brown); line-height: 1.15; }
.section-title em { color: var(--terra); font-style: italic; }
.section-sub { color: var(--muted); font-size: 1rem; margin-top: 0.5rem; font-weight: 300; }
.divider { border: none; border-top: 1px solid var(--border); }

/* ── FEATURED HERO LAYOUT ───────────────────────────── */
/* Big editorial grid: 1 large left + 2 stacked right */
.editorial-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: auto auto;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}
.card-feature {
  grid-row: span 2;
  position: relative; border-radius: 6px; overflow: hidden;
  cursor: pointer; min-height: 560px;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.card-feature .cf-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease;
}
.card-feature:hover .cf-img { transform: scale(1.04); }
.card-feature::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(26,13,7,0) 30%, rgba(26,13,7,0.88) 100%);
}
.card-feature-body {
  position: relative; z-index: 1;
  padding: 2rem;
}
.card-feature-body .c-tag {
  font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); font-weight: 600; margin-bottom: 0.5rem;
}
.card-feature-body h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: white; line-height: 1.15; margin-bottom: 0.6rem;
}
.card-feature-body p { font-size: 0.9rem; color: rgba(255,255,255,0.72); line-height: 1.6; }
.card-feature-body .c-meta { font-size: 0.78rem; color: rgba(255,255,255,0.5); margin-top: 0.75rem; }

/* Standard cards */
.card {
  background: white; border-radius: 6px; overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform 0.25s, box-shadow 0.25s;
  cursor: pointer; display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--card-shadow-hover); }

.card-img-wrap { position: relative; overflow: hidden; }
.card-img {
  width: 100%; object-fit: cover;
  transition: transform 0.5s ease;
  background: var(--cream2);
}
.card:hover .card-img { transform: scale(1.05); }
.card-img-wrap .overlay-country {
  position: absolute; top: 0.75rem; left: 0.75rem;
  background: rgba(26,13,7,0.72); color: white;
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.3rem 0.7rem; border-radius: 3px;
}
.card-img-wrap .overlay-time {
  position: absolute; bottom: 0.75rem; right: 0.75rem;
  background: rgba(26,13,7,0.72); color: white;
  font-size: 0.72rem; font-weight: 500;
  padding: 0.3rem 0.6rem; border-radius: 3px;
}

.card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.card-type { font-size: 0.68rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--terra); font-weight: 600; margin-bottom: 0.4rem; }
.card-title { font-family: 'DM Serif Display', serif; font-size: 1.2rem; color: var(--brown); margin-bottom: 0.5rem; line-height: 1.25; }
.card-desc { font-size: 0.85rem; color: var(--muted); line-height: 1.65; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 1rem; padding-top: 0.85rem; border-top: 1px solid var(--border); font-size: 0.78rem; color: var(--muted); }
.diff-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 4px; background: var(--muted); }
.diff-easy .diff-dot { background: #3A7D52; }
.diff-medium .diff-dot { background: var(--gold); }
.diff-hard .diff-dot { background: var(--terra); }

/* ── SOUP GRIDS ─────────────────────────────────────── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }

/* Card heights by grid context */
.grid-3 .card-img, .grid-auto .card-img { height: 220px; }
.grid-4 .card-img { height: 180px; }

/* ── MOOD BAR ────────────────────────────────────────── */
.mood-bar {
  background: var(--brown);
  padding: 2.5rem 3rem;
}
.mood-bar .inner { max-width: 1400px; margin: 0 auto; }
.mood-bar h2 { font-family: 'DM Serif Display', serif; font-size: 1.6rem; color: white; margin-bottom: 1.5rem; }
.mood-pills { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.mood-pill {
  border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: 100px; padding: 0.5rem 1.25rem;
  font-size: 0.85rem; font-weight: 500; color: rgba(255,255,255,0.7);
  cursor: pointer; transition: all 0.2s; background: transparent; font-family: inherit;
}
.mood-pill:hover { border-color: var(--gold); color: var(--gold); }
.mood-pill.active { background: var(--terra); border-color: var(--terra); color: white; }
.mood-results { max-width: 1400px; margin: 2rem auto 0; padding: 0 3rem; }

/* ── FULL-BLEED STRIPE ──────────────────────────────── */
.stripe {
  background: var(--cream2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ── COLLECTIONS ────────────────────────────────────── */
.collections-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.col-card {
  position: relative; border-radius: 6px; overflow: hidden;
  min-height: 280px; cursor: pointer;
  display: flex; flex-direction: column; justify-content: flex-end;
  transition: transform 0.25s, box-shadow 0.25s;
}
.col-card:hover { transform: translateY(-3px); box-shadow: var(--card-shadow-hover); }
.col-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.col-card::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.75) 100%);
}
.col-card-body { position: relative; z-index: 1; padding: 1.75rem; }
.col-card-kicker { font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: 0.4rem; }
.col-card-title { font-family: 'DM Serif Display', serif; font-size: 1.4rem; color: white; margin-bottom: 0.35rem; line-height: 1.2; }
.col-card-desc { font-size: 0.82rem; color: rgba(255,255,255,0.7); line-height: 1.55; }
/* Fallback gradients for collections */
.col-bg-scripture { background: linear-gradient(160deg, #2A1A0E, #6B3E1A); }
.col-bg-stories   { background: linear-gradient(160deg, #0E2A1A, #1A5C35); }
.col-bg-hangover  { background: linear-gradient(160deg, #2A0E0E, #8B2020); }
.col-bg-world     { background: linear-gradient(160deg, #0E1A2A, #1A3A6B); }
.col-bg-budget    { background: linear-gradient(160deg, #1A140E, #5C3E20); }
.col-bg-fancy     { background: linear-gradient(160deg, #1A0E2A, #5C1A8B); }

/* ── BROWSE PAGE ────────────────────────────────────── */
.browse-hero {
  height: 320px; position: relative; overflow: hidden;
  display: flex; align-items: flex-end;
}
.browse-hero-bg { position: absolute; inset: 0; }
.browse-hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.browse-hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(26,13,7,0.85) 0%, rgba(26,13,7,0.4) 100%);
}
.browse-hero-content { position: relative; z-index: 1; padding: 3rem 3rem; }
.browse-hero h1 { font-family: 'DM Serif Display', serif; font-size: clamp(2rem, 5vw, 3.5rem); color: white; }
.browse-hero p { color: rgba(255,255,255,0.7); margin-top: 0.5rem; }

.search-wrap { padding: 1.5rem 3rem; background: white; border-bottom: 1px solid var(--border); }
.search-bar {
  display: flex; align-items: center; gap: 0.75rem;
  background: var(--cream); border: 1.5px solid var(--border);
  border-radius: 4px; padding: 0.75rem 1.25rem;
  max-width: 600px; transition: border-color 0.2s;
}
.search-bar:focus-within { border-color: var(--terra); }
.search-bar input { flex: 1; border: none; outline: none; font-size: 1rem; font-family: inherit; background: transparent; color: var(--brown); }
.search-bar input::placeholder { color: var(--muted); }
.search-icon { color: var(--muted); font-size: 0.9rem; flex-shrink: 0; }

.filters-wrap {
  position: sticky; top: 68px; z-index: 100;
  background: white; border-bottom: 1px solid var(--border);
  padding: 1.25rem 3rem;
}
.filter-row { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.6rem; align-items: center; }
.filter-label { font-size: 0.68rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-right: 0.25rem; white-space: nowrap; }
.chip {
  border: 1.5px solid var(--border); border-radius: 3px;
  padding: 0.3rem 0.8rem; font-size: 0.8rem; font-weight: 500; color: var(--brown2);
  cursor: pointer; transition: all 0.15s; background: white; font-family: inherit; white-space: nowrap;
}
.chip:hover { border-color: var(--terra); color: var(--terra); }
.chip.active { background: var(--terra); border-color: var(--terra); color: white; }
.chip-clear { background: var(--cream2); color: var(--muted); border-color: transparent; }
.chip-clear:hover { color: var(--terra); border-color: transparent; background: var(--cream2); }

.results-bar { display: flex; justify-content: space-between; align-items: center; padding: 1rem 3rem; border-bottom: 1px solid var(--border); background: var(--cream); }
.results-count { font-size: 0.88rem; color: var(--muted); }
.results-count strong { color: var(--brown); }
.sort-select { border: 1.5px solid var(--border); border-radius: 4px; padding: 0.4rem 0.8rem; font-size: 0.83rem; font-family: inherit; background: white; color: var(--brown); cursor: pointer; outline: none; }
.sort-select:focus { border-color: var(--terra); }

.browse-grid-wrap { padding: 2.5rem 3rem; max-width: 1400px; margin: 0 auto; }

/* ── RECIPE PAGE ────────────────────────────────────── */
.recipe-hero-img {
  width: 100%; height: 55vh; min-height: 400px;
  object-fit: cover;
  display: block;
}
.recipe-hero-gradient {
  height: 55vh; min-height: 400px;
  background: linear-gradient(135deg, var(--brown) 0%, var(--brown2) 100%);
}

.recipe-content { max-width: 1100px; margin: 0 auto; padding: 0 3rem 5rem; }
.recipe-header { padding: 3rem 0 2rem; border-bottom: 1px solid var(--border); margin-bottom: 2.5rem; }
.recipe-kicker { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--terra); font-weight: 600; margin-bottom: 0.75rem; display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.recipe-title { font-family: 'DM Serif Display', serif; font-size: clamp(2rem, 5vw, 3.8rem); color: var(--brown); line-height: 1.1; margin-bottom: 0.75rem; }
.recipe-byline { font-size: 1.05rem; color: var(--muted); font-weight: 300; margin-bottom: 2rem; font-style: italic; }
.recipe-desc { font-size: 1.1rem; line-height: 1.85; color: var(--brown2); max-width: 780px; }

.recipe-stats-bar {
  display: grid; grid-template-columns: repeat(5, 1fr);
  border: 1px solid var(--border); border-radius: 4px;
  overflow: hidden; margin: 2.5rem 0;
}
.stat { padding: 1.25rem; text-align: center; background: white; border-right: 1px solid var(--border); }
.stat:last-child { border-right: none; }
.stat-val { font-family: 'DM Serif Display', serif; font-size: 1.75rem; color: var(--terra); display: block; }
.stat-label { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-top: 0.2rem; }

.recipe-layout { display: grid; grid-template-columns: 380px 1fr; gap: 4rem; }
@media (max-width: 800px) { .recipe-layout { grid-template-columns: 1fr; } }

.recipe-section-head {
  font-family: 'DM Serif Display', serif; font-size: 1.5rem;
  color: var(--brown); padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--terra); margin-bottom: 1.5rem;
  display: inline-block;
}

.ingredients-list { list-style: none; }
.ingredients-list li {
  padding: 0.6rem 0; border-bottom: 1px solid var(--border);
  font-size: 0.95rem; display: flex; gap: 0.75rem; align-items: flex-start;
}
.ingredients-list li::before { content: '—'; color: var(--terra); flex-shrink: 0; font-weight: 300; }

.instructions-list { list-style: none; counter-reset: steps; }
.instructions-list li {
  counter-increment: steps;
  padding: 1rem 0 1rem 3.5rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem; position: relative; line-height: 1.75;
  color: var(--brown2);
}
.instructions-list li::before {
  content: counter(steps);
  position: absolute; left: 0; top: 1rem;
  background: var(--terra); color: white;
  width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.78rem; font-weight: 700;
}

/* ── STORY BLOCK ────────────────────────────────────── */
.story-block { margin: 3rem 0; }
.story-inner {
  background: white;
  border-top: 3px solid var(--terra);
  padding: 3rem;
  position: relative;
}
.story-inner::before {
  content: '"';
  position: absolute; top: -0.5rem; left: 2.5rem;
  font-family: 'DM Serif Display', serif;
  font-size: 5rem; color: var(--terra); opacity: 0.15; line-height: 1;
}
.story-kicker { font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--terra); font-weight: 600; margin-bottom: 1rem; }
.story-inner h3 { font-family: 'DM Serif Display', serif; font-size: 1.75rem; color: var(--brown); margin-bottom: 1.5rem; }
.story-inner p { font-size: 1rem; line-height: 1.9; color: var(--brown2); margin-bottom: 1.25rem; }
.story-inner p:last-child { margin-bottom: 0; }
.story-inner blockquote {
  margin: 1.75rem 0;
  padding: 1.25rem 2rem;
  background: var(--cream2); border-left: 4px solid var(--terra);
  font-family: 'Playfair Display', serif; font-style: italic;
  font-size: 1.08rem; color: var(--brown); line-height: 1.7;
}

/* Tags */
.tags-wrap { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 2rem 0; }
.tag { background: var(--cream2); color: var(--muted); padding: 0.25rem 0.75rem; border-radius: 3px; font-size: 0.78rem; font-weight: 500; cursor: pointer; transition: all 0.15s; }
.tag:hover { background: var(--terra-light); color: var(--terra); }

/* Related */
.related-section { margin-top: 4rem; padding-top: 3rem; border-top: 1px solid var(--border); }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 1.5rem; }
.related-grid .card-img { height: 180px; }
@media (max-width: 700px) { .related-grid { grid-template-columns: 1fr 1fr; } }

/* ── FOOTER ─────────────────────────────────────────── */
footer {
  background: var(--brown); color: rgba(250,247,242,0.6);
  padding: 4rem 3rem;
}
.footer-inner { max-width: 1400px; margin: 0 auto; display: flex; justify-content: space-between; align-items: flex-start; gap: 3rem; }
.footer-brand { font-family: 'DM Serif Display', serif; font-size: 2rem; color: white; }
.footer-brand span { color: var(--gold); }
.footer-tagline { color: rgba(255,255,255,0.45); font-size: 0.88rem; margin-top: 0.5rem; }
.footer-links a { display: block; color: rgba(255,255,255,0.5); font-size: 0.85rem; margin-bottom: 0.5rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom { max-width: 1400px; margin: 2rem auto 0; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.08); font-size: 0.78rem; color: rgba(255,255,255,0.25); }

/* ── UTILITIES ──────────────────────────────────────── */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.hidden { display: none !important; }
.empty-state { text-align: center; padding: 5rem 2rem; color: var(--muted); }
.empty-state h3 { font-family: 'DM Serif Display', serif; font-size: 1.5rem; margin-bottom: 0.5rem; }

/* ── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
  .collections-grid { grid-template-columns: repeat(2, 1fr); }
  .editorial-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav { padding: 0 1.5rem; }
  .nav-links a:not(.btn-nav-cta) { display: none; }
  .hero-content { padding: 2rem 1.5rem 3.5rem; }
  .hero-fact { padding: 0.85rem 1.5rem; }
  .section, .section-sm { padding: 3rem 1.5rem; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .editorial-grid { grid-template-columns: 1fr; }
  .card-feature { min-height: 380px; grid-row: span 1; }
  .collections-grid { grid-template-columns: 1fr; }
  .mood-bar { padding: 2rem 1.5rem; }
  .recipe-content { padding: 0 1.5rem 3rem; }
  .recipe-stats-bar { grid-template-columns: repeat(3, 1fr); }
  .filters-wrap { padding: 1rem 1.5rem; }
  .results-bar { padding: 1rem 1.5rem; }
  .browse-grid-wrap { padding: 1.5rem; }
  .browse-hero-content { padding: 2rem 1.5rem; }
  .footer-inner { flex-direction: column; }
  .related-grid { grid-template-columns: 1fr 1fr; }
  .search-wrap { padding: 1rem 1.5rem; }
}
@media (max-width: 500px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .recipe-stats-bar { grid-template-columns: repeat(2, 1fr); }
}

.col-bg-literature { background: linear-gradient(160deg, #2A1A0E, #6B3E1A); }

/* ── NEW FILTER SYSTEM ──────────────────────────────── */
:root {
  --type-color:       #C4572A;
  --dietary-color:    #4A7C59;
  --region-color:     #2A6CB8;
  --season-color:     #8B6347;
  --texture-color:    #7B5EA7;
  --protein-color:    #C4822A;
  --difficulty-color: #5C8B5C;
  --collection-color: #8B4A7B;
}

/* Active Strip */
.active-strip {
  background: var(--cream2);
  border-bottom: 1px solid var(--border);
  padding: 0.6rem 3rem;
  display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem;
}
.active-strip-label {
  font-size: 0.65rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); font-weight: 600; white-space: nowrap; flex-shrink: 0;
}
.active-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; flex: 1; }
.clear-all-btn {
  background: none; border: 1px solid var(--border); border-radius: 3px;
  padding: 0.25rem 0.7rem; font-size: 0.75rem; color: var(--muted);
  cursor: pointer; font-family: inherit; transition: all 0.15s; white-space: nowrap; flex-shrink: 0;
}
.clear-all-btn:hover { border-color: var(--terra); color: var(--terra); }
.chip-active-include, .chip-active-exclude {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.25rem 0.5rem 0.25rem 0.7rem;
  border-radius: 3px; font-size: 0.78rem; font-weight: 500; white-space: nowrap;
}
.chip-active-include { background: var(--terra); color: white; }
.chip-active-exclude { background: rgba(192,57,43,0.12); border: 1.5px solid #C0392B; color: #C0392B; }
.chip-active-include button, .chip-active-exclude button {
  background: none; border: none; cursor: pointer; padding: 0 0.1rem;
  font-size: 0.85rem; line-height: 1; color: inherit; opacity: 0.7;
  transition: opacity 0.15s;
}
.chip-active-include button:hover, .chip-active-exclude button:hover { opacity: 1; }

/* New filter-row layout */
.filter-row-v2 {
  display: flex; align-items: flex-start; gap: 0.75rem;
  margin-bottom: 0.65rem; flex-wrap: wrap;
}
.filter-row-v2:last-child { margin-bottom: 0; }
.filter-row-label {
  font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase;
  font-weight: 700; white-space: nowrap;
  min-width: 80px; padding-top: 0.35rem; flex-shrink: 0;
}
.filter-pills { display: flex; flex-wrap: wrap; gap: 0.35rem; flex: 1; }

/* Category pill base */
.fpill {
  border-radius: 3px; padding: 0.28rem 0.72rem;
  font-size: 0.78rem; font-weight: 500;
  cursor: pointer; border: 1px solid; transition: all 0.15s;
  background: none; font-family: inherit; white-space: nowrap;
}
/* State: neutral */
.fpill[data-state="0"] { }
/* State: include */
.fpill[data-state="1"] { color: white !important; border-color: transparent !important; }
/* State: exclude */
.fpill[data-state="2"] {
  background: rgba(192,57,43,0.14) !important;
  border: 1.5px solid #C0392B !important;
  color: #C0392B !important;
}
.fpill[data-state="2"] .fpill-label { text-decoration: line-through; }

/* Category color theming */
.fpill[data-cat="type"]       { color: var(--type-color);       background: rgba(196,87,42,0.08);     border-color: rgba(196,87,42,0.25); }
.fpill[data-cat="type"]:hover { border-color: var(--type-color); }
.fpill[data-cat="type"][data-state="1"] { background: var(--type-color); }

.fpill[data-cat="dietary"]       { color: var(--dietary-color);       background: rgba(74,124,89,0.08);     border-color: rgba(74,124,89,0.25); }
.fpill[data-cat="dietary"]:hover { border-color: var(--dietary-color); }
.fpill[data-cat="dietary"][data-state="1"] { background: var(--dietary-color); }

.fpill[data-cat="region"]       { color: var(--region-color);       background: rgba(42,108,184,0.08);     border-color: rgba(42,108,184,0.25); }
.fpill[data-cat="region"]:hover { border-color: var(--region-color); }
.fpill[data-cat="region"][data-state="1"] { background: var(--region-color); }

.fpill[data-cat="season"]       { color: var(--season-color);       background: rgba(139,99,71,0.08);     border-color: rgba(139,99,71,0.25); }
.fpill[data-cat="season"]:hover { border-color: var(--season-color); }
.fpill[data-cat="season"][data-state="1"] { background: var(--season-color); }

.fpill[data-cat="texture"]       { color: var(--texture-color);       background: rgba(123,94,167,0.08);     border-color: rgba(123,94,167,0.25); }
.fpill[data-cat="texture"]:hover { border-color: var(--texture-color); }
.fpill[data-cat="texture"][data-state="1"] { background: var(--texture-color); }

.fpill[data-cat="protein"]       { color: var(--protein-color);       background: rgba(196,130,42,0.08);     border-color: rgba(196,130,42,0.25); }
.fpill[data-cat="protein"]:hover { border-color: var(--protein-color); }
.fpill[data-cat="protein"][data-state="1"] { background: var(--protein-color); }

.fpill[data-cat="difficulty"]       { color: var(--difficulty-color);       background: rgba(92,139,92,0.08);     border-color: rgba(92,139,92,0.25); }
.fpill[data-cat="difficulty"]:hover { border-color: var(--difficulty-color); }
.fpill[data-cat="difficulty"][data-state="1"] { background: var(--difficulty-color); }

.fpill[data-cat="collection"]       { color: var(--collection-color);       background: rgba(139,74,123,0.08);     border-color: rgba(139,74,123,0.25); }
.fpill[data-cat="collection"]:hover { border-color: var(--collection-color); }
.fpill[data-cat="collection"][data-state="1"] { background: var(--collection-color); }

/* ── WORLD PAGE ─────────────────────────────────────── */
.world-layout {
  display: flex; height: calc(100vh - 68px);
}
.world-sidebar {
  width: 320px; flex-shrink: 0;
  background: var(--cream); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; overflow: hidden;
}
.world-sidebar-header {
  padding: 2rem 1.5rem 1.5rem; border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.world-sidebar-title {
  font-family: 'DM Serif Display', serif; font-size: 1.8rem;
  color: var(--brown); line-height: 1.1;
}
.world-sidebar-sub {
  font-size: 0.9rem; color: var(--muted); font-style: italic;
  margin-top: 0.4rem; line-height: 1.5;
}
.world-sidebar-content { flex: 1; overflow-y: auto; padding: 1rem 0; }
.world-region-header {
  padding: 0.75rem 1.5rem; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 0.6rem;
  background: var(--cream2); flex-shrink: 0;
}
.world-region-back {
  background: none; border: none; cursor: pointer; font-size: 0.8rem;
  color: var(--muted); font-family: inherit; padding: 0;
  display: flex; align-items: center; gap: 0.3rem; transition: color 0.15s;
}
.world-region-back:hover { color: var(--terra); }
.world-region-name {
  font-family: 'DM Serif Display', serif; font-size: 1.15rem; color: var(--brown);
}
.world-soup-item {
  display: flex; align-items: flex-start; gap: 0.75rem;
  padding: 0.85rem 1.5rem; border-bottom: 1px solid var(--border);
  cursor: pointer; transition: background 0.15s; text-decoration: none; color: inherit;
}
.world-soup-item:hover { background: var(--cream2); }
.world-region-dot {
  width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; margin-top: 0.3rem;
}
.world-soup-info { flex: 1; min-width: 0; }
.world-soup-name {
  font-family: 'DM Serif Display', serif; font-size: 1rem;
  color: var(--brown); line-height: 1.2; margin-bottom: 0.2rem;
}
.world-soup-origin {
  font-size: 0.78rem; color: var(--muted); line-height: 1.4;
}
.world-story-badge {
  font-size: 0.7rem; background: var(--cream2); border: 1px solid var(--border);
  border-radius: 3px; padding: 0.15rem 0.4rem;
  color: var(--muted); white-space: nowrap; align-self: flex-start;
}
.world-map-wrap { flex: 1; position: relative; }
#world-map { width: 100%; height: 100%; }

/* Mobile world tabs */
.world-mobile { display: none; }
.world-tab-bar {
  display: flex; overflow-x: auto; background: var(--brown);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.world-tab-bar::-webkit-scrollbar { display: none; }
.world-tab {
  padding: 0.85rem 1.25rem; white-space: nowrap;
  font-size: 0.8rem; font-weight: 600; cursor: pointer;
  color: rgba(255,255,255,0.5); border-bottom: 3px solid transparent;
  transition: all 0.2s; background: none; border-left: none; border-right: none;
  border-top: none; font-family: inherit;
}
.world-tab.active { color: white; border-bottom-color: var(--gold); }
.world-tab-content { display: none; }
.world-tab-content.active { display: block; }
.world-country-group { padding: 1rem 1.5rem 0; }
.world-country-label {
  font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted); font-weight: 600; margin-bottom: 0.5rem;
}

/* Recipe world badge */
.world-badge {
  display: inline-flex; align-items: center; gap: 0.35rem;
  background: rgba(42,108,184,0.1); border: 1px solid rgba(42,108,184,0.25);
  border-radius: 3px; padding: 0.25rem 0.65rem;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.05em;
  color: var(--region-color); white-space: nowrap;
}
.story-type-badge {
  display: inline-flex; align-items: center; gap: 0.3rem;
  background: rgba(139,99,71,0.08); border: 1px solid rgba(139,99,71,0.2);
  border-radius: 3px; padding: 0.25rem 0.65rem;
  font-size: 0.72rem; font-weight: 600; color: var(--season-color); white-space: nowrap;
}

/* Leaflet popup tweaks */
.world-popup { font-family: 'Inter', system-ui, sans-serif; min-width: 200px; }
.world-popup-name { font-family: 'DM Serif Display', serif; font-size: 1.1rem; color: #1A0D07; margin-bottom: 0.3rem; }
.world-popup-origin { font-size: 0.75rem; color: #7A6558; margin-bottom: 0.5rem; font-style: italic; }
.world-popup-story { font-size: 0.82rem; color: #4A2E22; line-height: 1.55; margin-bottom: 0.75rem; }
.world-popup-link {
  display: inline-block; background: #C4572A; color: white;
  padding: 0.35rem 0.9rem; border-radius: 3px; font-size: 0.78rem;
  font-weight: 600; text-decoration: none; transition: background 0.15s;
}
.world-popup-link:hover { background: #962F10; }
.world-popup-badge {
  display: inline-block; font-size: 0.7rem; background: #F2EBE0;
  border-radius: 2px; padding: 0.15rem 0.4rem; color: #7A6558;
  margin-bottom: 0.5rem; margin-right: 0.25rem;
}

@media (max-width: 768px) {
  .world-layout { display: none; }
  .world-mobile { display: block; }
  .active-strip { padding: 0.6rem 1.5rem; }
  .filter-row-label { min-width: 64px; font-size: 0.58rem; }
}
@media (min-width: 769px) {
  .world-mobile { display: none; }
  .world-layout { display: flex; }
}

