/* ============================================================
   Desert Food Feed — public stylesheet
   Editorial food magazine look. Cream + terracotta + sage.
   ============================================================ */

/* ===== Self-hosted font faces =====
   Pulled from Google Fonts but served from our own origin to eliminate the
   render-blocking https://fonts.googleapis.com/css2 stylesheet that costs
   ~2-4 mobile PSI points. font-display:swap lets text paint with the system
   fallback while the font streams in. */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400 700;       /* variable font spans 400-700 */
  font-display: swap;
  src: url('/assets/fonts/fraunces/fraunces-variable.woff2') format('woff2-variations'),
       url('/assets/fonts/fraunces/fraunces-variable.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/inter/inter-variable.woff2') format('woff2-variations'),
       url('/assets/fonts/inter/inter-variable.woff2') format('woff2');
}
@font-face {
  font-family: 'Noto Serif Tamil';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  /* unicode-range scopes the font to Tamil + Tamil-Supplement so English-only
     pages skip the download entirely. */
  unicode-range: U+0964-0965, U+0B80-0BFF, U+200C-200D, U+25CC, U+2010-2011;
  src: url('/assets/fonts/noto-serif-tamil/noto-serif-tamil-variable.woff2') format('woff2-variations'),
       url('/assets/fonts/noto-serif-tamil/noto-serif-tamil-variable.woff2') format('woff2');
}
@font-face {
  font-family: 'Pacifico';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/pacifico/pacifico-regular.woff2') format('woff2');
}

/* Screen-reader-only utility (used for the on-page H1 that should
   ship for SEO but not visually compete with the slider/hero).  */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

:root {
  --bg:           #FBF7F0;
  --bg-card:      #FFFFFF;
  --bg-sand:      #F4ECDC;
  --ink:          #1F1B17;
  --ink-2:        #3D362F;
  --muted:        #6B6058;
  --line:         #E5DCC9;
  --line-2:       #D4C7AC;
  /* Brand colors lifted from the Desert Food Feed logo */
  --accent:       #7A1F1F;     /* deep burgundy — primary */
  --accent-2:     #5C1616;     /* darker burgundy — hover */
  --accent-soft:  #F2DDDA;     /* soft pink wash */
  --gold:         #D4691A;     /* warm orange — tagline accent */
  --gold-soft:    #FBE7D2;
  --sage:         #4A8F3F;     /* fresh leaf green */
  --sage-soft:    #E2EFDB;
  --rad:          14px;
  --rad-sm:       8px;
  --shadow-sm:    0 1px 2px rgba(31, 27, 23, .04);
  --shadow:       0 8px 24px -10px rgba(31, 27, 23, .15), 0 2px 6px rgba(31, 27, 23, .06);
  --shadow-lg:    0 24px 60px -20px rgba(31, 27, 23, .22), 0 4px 12px rgba(31, 27, 23, .06);
  --serif:        'Fraunces', 'Noto Serif Tamil', Georgia, serif;
  --sans:         'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --script:       'Pacifico', 'Caveat', cursive;
  --container:    1240px;
  --gutter:       1.5rem;
}

/* More comfortable body reading size */
body { font-size: 17px; line-height: 1.65; }
.lede { font-size: clamp(1.05rem, .4vw + 1rem, 1.2rem); }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body.loc-ta { font-family: 'Noto Serif Tamil', 'Inter', sans-serif; }
body.loc-ta .display,
body.loc-ta h1, body.loc-ta h2, body.loc-ta h3 {
  font-family: 'Noto Serif Tamil', var(--serif);
  letter-spacing: 0;
}

img { max-width: 100%; display: block; height: auto; }
a { color: var(--accent); text-decoration: none; transition: color .15s; }
a:hover { color: var(--accent-2); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute; left: -9999px;
  background: var(--ink); color: #fff; padding: .5rem .75rem; border-radius: 6px;
}
.skip-link:focus { left: 1rem; top: 1rem; z-index: 100; }

/* ============================================================
   Headings + utility
   ============================================================ */
.display {
  font-family: var(--serif);
  font-weight: 600;
  font-optical-sizing: auto;
  font-variation-settings: "opsz" 144;
  letter-spacing: -.02em;
  line-height: 1.1;
  color: var(--ink);
}
h1.display { font-size: clamp(2.2rem, 4vw + .5rem, 3.6rem); }
h2.section-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.4rem, 1vw + 1rem, 2rem);
  letter-spacing: -.015em;
  color: var(--ink);
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .72rem;
  font-weight: 600;
  color: var(--accent);
}
.lede {
  font-size: clamp(1rem, .4vw + .95rem, 1.18rem);
  color: var(--ink-2);
  max-width: 56ch;
}
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-block: 0 1.25rem;
  gap: 1rem;
}
.section-link {
  font-size: .9rem; font-weight: 500;
  color: var(--ink-2);
}
.section-link:hover { color: var(--accent); }
.empty { color: var(--muted); font-style: italic; }

/* ============================================================
   Filter bar (used on /recipes + category pages)
   ============================================================ */
.filter-bar {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--rad);
  padding: .9rem 1.1rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.fb-row {
  display: flex;
  align-items: flex-end;
  gap: .9rem;
  flex-wrap: wrap;
}
.fb-field {
  flex: 1 1 160px;
  display: flex;
  flex-direction: column;
  gap: .3rem;
  min-width: 0;
}
.fb-label {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  font-weight: 600;
}
.fb-field select {
  appearance: none; -webkit-appearance: none;
  background-color: var(--bg);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237B7065' stroke-width='2.4' stroke-linecap='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right .85rem center;
  padding: .55rem 2.2rem .55rem .8rem;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  font: 500 .92rem var(--sans);
  color: var(--ink);
  cursor: pointer;
  width: 100%;
  transition: border-color .15s;
}
.fb-field select:hover { border-color: var(--ink); }
.fb-field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.fb-actions { display: flex; align-items: center; gap: .65rem; }
.fb-actions .btn { padding: .55rem 1.1rem; }
.fb-clear {
  font-size: .85rem;
  color: var(--muted);
  text-decoration: underline;
}
.fb-clear:hover { color: var(--accent); }

@media (max-width: 720px) {
  .fb-row { gap: .6rem; }
  .fb-field { flex-basis: calc(50% - .3rem); }
  .fb-actions { flex-basis: 100%; justify-content: flex-end; }
}

/* ============================================================
   Pagination
   ============================================================ */
.pagination {
  display: flex; align-items: center; justify-content: center;
  gap: .75rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}
.pg-arrow {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .6rem 1.1rem;
  background: var(--bg-card);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--ink-2);
  font-size: .9rem; font-weight: 500;
  text-decoration: none;
  transition: border-color .15s, color .15s, transform .12s;
}
.pg-arrow:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.pg-arrow.pg-disabled { opacity: .4; pointer-events: none; }
.pg-pages {
  display: flex; align-items: center; gap: .25rem;
  list-style: none; margin: 0; padding: 0;
}
.pg-page {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px; padding: 0 .55rem;
  border-radius: 10px;
  font: 500 .9rem var(--sans);
  color: var(--ink-2);
  background: transparent;
  border: 1px solid transparent;
  text-decoration: none;
  transition: background .15s, color .15s, border-color .15s;
}
.pg-page:hover { background: var(--bg-sand); color: var(--ink); }
.pg-page.pg-current {
  background: var(--accent); color: #fff;
  font-weight: 700;
  box-shadow: 0 4px 10px -3px rgba(192, 86, 59, .4);
}
.pg-ellipsis {
  padding: 0 .5rem;
  color: var(--muted);
}
@media (max-width: 640px) {
  .pg-arrow span { display: none; }
  .pg-arrow { width: 38px; height: 38px; padding: 0; justify-content: center; }
  .pg-page { min-width: 34px; height: 34px; font-size: .82rem; }
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .8rem 1.25rem;
  font: 500 .92rem/1 var(--sans);
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform .12s, background .12s, color .12s, border-color .12s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-2); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-sm { padding: .55rem .95rem; font-size: .82rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1rem; font-weight: 600; }

.section-head-center {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .25rem;
  margin-bottom: 1.75rem;
}

.view-all-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  margin-top: 2.5rem;
}
.view-all-cta .btn { box-shadow: 0 6px 18px -8px rgba(192, 86, 59, .55); }
.view-all-count { color: var(--muted); font-size: .9rem; }

/* ============================================================
   Header — centered editorial masthead
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 247, 240, .96);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
  padding-block: 1rem;
  /* collapse smoothly when header-hidden is set on parent */
  max-height: 200px;
  overflow: hidden;
  transition: max-height .35s cubic-bezier(.2,.8,.2,1),
              padding .35s cubic-bezier(.2,.8,.2,1),
              opacity .25s ease;
  opacity: 1;
}
.site-header.header-hidden .header-top {
  max-height: 0;
  padding-block: 0;
  opacity: 0;
  pointer-events: none;
}
.header-left { display: flex; align-items: center; justify-content: flex-start; }
.header-right { display: flex; align-items: center; justify-content: flex-end; gap: .75rem; }
.brand {
  display: flex; align-items: center; gap: .65rem;
  color: var(--ink); font-weight: 600;
  line-height: 1;
}
.brand:hover { color: var(--ink); }
.brand-centered { justify-self: center; }
.brand-full { height: 64px; width: auto; max-width: 280px; object-fit: contain; flex-shrink: 0; display: block; }
.brand-icon { height: 48px; width: 48px; object-fit: contain; flex-shrink: 0; display: none; }
.brand-name { font-family: var(--serif); font-size: 1.15rem; letter-spacing: -.01em; color: var(--accent); font-weight: 700; }
.brand-tagline { display: block; font-family: var(--script); font-size: .85rem; color: var(--gold); margin-top: 4px; }
.brand-footer { color: #fff; }
.brand-footer .brand-name { color: #fff; }
.brand-footer .brand-tagline { color: #E8A85E; }
.primary-nav {
  border-top: 1px solid var(--line);
  background: transparent;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding-block: .75rem;
  flex-wrap: wrap;
}
.primary-nav a, .primary-nav button {
  color: var(--ink-2);
  font-weight: 500; font-size: .94rem;
  background: none; border: none; cursor: pointer; font-family: inherit;
  padding: .35rem 0;
  position: relative;
  text-decoration: none;
  white-space: nowrap;
  transition: color .15s;
}
.primary-nav a:hover, .primary-nav button:hover { color: var(--accent); }
.primary-nav .nav-top { display: inline-flex; align-items: center; gap: .25rem; }
.primary-nav a:not(.nav-top):not(.dropdown-menu a)::after,
.primary-nav .nav-top::after {
  content: "";
  position: absolute; left: 50%; bottom: -3px;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width .2s, left .2s;
}
.primary-nav a:hover::after, .primary-nav .nav-top:hover::after { width: 100%; left: 0; }
.nav-dropdown .dropdown-menu a::after { display: none; }
.nav-dropdown { position: relative; }
.nav-dropdown .dropdown-menu {
  position: absolute; top: 100%; left: -1rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--rad);
  padding: .5rem;
  min-width: 240px;
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden;
  transform: translateY(-4px);
  transition: opacity .15s, transform .15s, visibility .15s;
}
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  opacity: 1; visibility: visible; transform: translateY(4px);
}
.dropdown-menu a {
  display: flex; align-items: center; justify-content: space-between;
  padding: .55rem .75rem;
  border-radius: var(--rad-sm);
  color: var(--ink);
}
.dropdown-menu a:hover { background: var(--bg-sand); color: var(--ink); }
.dropdown-menu .count {
  font-size: .75rem;
  color: var(--muted);
  background: var(--bg-sand);
  padding: .1rem .45rem;
  border-radius: 999px;
}
.chev { font-size: .7rem; opacity: .6; }

.search-mini {
  display: flex; align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding-inline: .9rem;
  transition: border-color .15s, box-shadow .15s;
  width: 240px;
  max-width: 100%;
}
.search-mini:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.search-mini input {
  border: none; outline: none; background: transparent;
  padding: .55rem 0;
  font: inherit;
  width: 100%;
  min-width: 0;
}
.search-mini button, .search-mini .search-btn {
  border: none; background: transparent;
  color: var(--ink-2);
  cursor: pointer; padding: .3rem;
  display: flex;
  margin-right: .35rem;
}
.lang-switch {
  display: flex; align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px;
  font-size: .78rem;
}
.lang-switch a {
  padding: .35rem .7rem;
  border-radius: 999px;
  color: var(--ink-2);
  font-weight: 500;
}
.lang-switch a.active { background: var(--ink); color: #fff; }
.menu-toggle { display: none; }

/* ============================================================
   Hero slider — full-bleed editorial carousel
   ============================================================ */
.hero-slider {
  position: relative;
  height: calc(100vh - 72px);
  min-height: 540px;
  max-height: 860px;
  overflow: hidden;
  margin-bottom: 0;
  background: var(--ink);
}
.hs-track { position: relative; width: 100%; height: 100%; }
.hs-slide {
  position: absolute; inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .9s ease, visibility .9s;
  display: flex; align-items: flex-end;
}
.hs-slide.active { opacity: 1; visibility: visible; z-index: 1; }
.hs-image {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  background-color: var(--ink);
  transform: scale(1.08);
  transition: transform 8s ease;
}
.hs-slide.active .hs-image { transform: scale(1); }
.hs-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(31,27,23,.18) 0%, rgba(31,27,23,.05) 25%, rgba(31,27,23,.55) 75%, rgba(31,27,23,.88) 100%);
}
.hs-content {
  position: relative; z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter) 4.5rem;
  color: #fff;
  width: 100%;
  transform: translateY(20px);
  opacity: 0;
  transition: transform .8s cubic-bezier(.2,.8,.2,1) .15s, opacity .8s ease .15s;
}
.hs-slide.active .hs-content { transform: translateY(0); opacity: 1; }
.hs-eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .72rem; font-weight: 700;
  color: #FBE7D2;
  background: rgba(122, 31, 31, .85);
  padding: .5rem 1rem;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  margin-bottom: 1.5rem;
}
.hs-dot {
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
  display: inline-block;
}
.hs-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.4rem, 4.5vw + 1rem, 5rem);
  line-height: 1.05;
  letter-spacing: -.025em;
  color: #fff;
  max-width: 18ch;
  margin-bottom: 1rem;
  text-shadow: 0 2px 30px rgba(0,0,0,.3);
}
body.loc-ta .hs-title {
  font-family: 'Noto Serif Tamil', var(--serif);
  letter-spacing: 0;
  line-height: 1.2;
  font-size: clamp(2rem, 3.5vw + .8rem, 3.6rem);
}
.hs-desc {
  font-size: clamp(1rem, .5vw + .95rem, 1.2rem);
  color: rgba(255,255,255,.92);
  max-width: 58ch;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}
.hs-meta {
  display: flex; gap: .5rem; flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.hs-pill {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.18);
  padding: .4rem .85rem;
  border-radius: 999px;
  font-size: .82rem;
  color: #fff;
}
.hs-stars { color: var(--gold); }
.hs-cta {
  padding: 1rem 1.75rem;
  font-size: 1rem;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 28px -10px rgba(122,31,31,.6);
}
.hs-cta:hover { background: var(--accent-2); color: #fff; }

.hs-arrow {
  position: absolute; top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(31,27,23,.4);
  backdrop-filter: blur(8px);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.hs-arrow:hover {
  background: rgba(122,31,31,.85);
  border-color: rgba(255,255,255,.4);
}
.hs-prev { left: 1.25rem; }
.hs-next { right: 1.25rem; }

.hs-dots {
  position: absolute;
  bottom: 1.4rem; left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex; gap: .55rem;
  background: rgba(31,27,23,.35);
  backdrop-filter: blur(8px);
  padding: .55rem .9rem;
  border-radius: 999px;
}
.hs-tab {
  background: none; border: none; cursor: pointer;
  padding: 6px;
  display: flex; align-items: center; justify-content: center;
}
.hs-tab span {
  display: block;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  transition: background .2s, transform .2s, width .2s;
}
.hs-tab:hover span { background: rgba(255,255,255,.75); }
.hs-tab.active span {
  background: var(--gold);
  width: 30px;
  border-radius: 999px;
}

.hs-progress {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px;
  background: rgba(255,255,255,.1);
  z-index: 2;
}
.hs-progress > div {
  height: 100%;
  background: var(--gold);
  width: 0;
  transition: width .1s linear;
}

@media (max-width: 768px) {
  .hero-slider { height: calc(100vh - 60px); min-height: 480px; }
  .hs-content { padding: 0 1rem 5rem; }
  .hs-title { font-size: clamp(2rem, 7vw, 3rem); max-width: none; }
  .hs-arrow { width: 42px; height: 42px; }
  .hs-prev { left: .5rem; }
  .hs-next { right: .5rem; }
  .hs-dots { bottom: 1.5rem; padding: .45rem .7rem; }
  .hs-eyebrow { font-size: .65rem; padding: .35rem .75rem; }
  .hs-cta { padding: .8rem 1.3rem; }
}

/* Original (now legacy) hero — kept for non-slider pages */
.hero { padding-top: 3rem; padding-bottom: 4rem; }
.hero-inner {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem; align-items: center;
}
.hero-copy h1.display a { color: var(--ink); }
.hero-copy h1.display a:hover { color: var(--accent); }
.hero-copy .eyebrow { margin-bottom: 1rem; display: block; }
.hero-copy .lede { margin-block: 1.25rem 1.5rem; }
.hero-copy .btn { margin-top: .5rem; }
.hero-meta { display: flex; gap: .5rem; flex-wrap: wrap; margin-block: 1rem 1.5rem; }
.pill {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  padding: .35rem .8rem;
  border-radius: 999px;
  font-size: .85rem; color: var(--ink-2);
}
.pill.stars { color: var(--gold); }
.pill.stars .rating-num { color: var(--ink-2); margin-left: .2rem; }

.hero-image {
  position: relative;
  display: block;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-lg);
  transform: rotate(-1deg);
  transition: transform .3s ease;
}
.hero-image:hover { transform: rotate(0); }
.hero-image img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero-cuisine-badge {
  position: absolute; top: 1rem; left: 1rem;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(8px);
  color: var(--ink);
  padding: .4rem .8rem;
  border-radius: 999px;
  font-size: .78rem; font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* ============================================================
   Pantry picker — "Cook from what you have"
   Compact: header, single sticky toolbar with summary chips,
   accordion ingredient groups (only Pantry expanded by default).
   ============================================================ */
.pantry-picker {
  padding-block: 2.5rem 3rem;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-sand) 100%);
  border-block: 1px solid var(--line);
}
.pp-head { text-align: center; max-width: 720px; margin: 0 auto 1.25rem; }
.pp-head .eyebrow { display: block; margin-bottom: .35rem; }
.pp-head .section-title { font-size: clamp(1.5rem, 1vw + 1.2rem, 2rem); margin-bottom: 0; }

.pp-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: .5rem .75rem;
  box-shadow: var(--shadow-sm);
}
.pp-toolbar {
  display: flex; align-items: center; gap: .65rem;
  flex-wrap: wrap;
  padding: .65rem .5rem;
  border-bottom: 1px solid var(--line);
}
.pp-search {
  flex: 1; min-width: 220px;
  display: flex; align-items: center; gap: .55rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .15rem .9rem;
  color: var(--muted);
}
.pp-search input {
  flex: 1; border: none; background: transparent; outline: none;
  padding: .5rem 0; font: inherit; color: var(--ink);
}
.pp-tolerance {
  display: inline-flex; align-items: center;
  background: var(--bg);
  border-radius: 999px;
  padding: 3px;
}
.pp-tolerance-label { padding: .25rem .6rem .25rem .75rem; font-size: .82rem; color: var(--muted); }
.pp-tolerance button {
  border: none; background: transparent;
  padding: .4rem .8rem;
  border-radius: 999px;
  font: 600 .82rem var(--sans);
  color: var(--ink-2);
  cursor: pointer;
  transition: background .12s, color .12s;
}
.pp-tolerance button.active { background: var(--accent); color: #fff; }
.pp-clear {
  background: transparent; border: 1px solid var(--line-2);
  padding: .4rem .9rem;
  border-radius: 999px;
  font: 500 .82rem var(--sans);
  color: var(--ink-2);
  cursor: pointer;
}
.pp-clear:hover { border-color: var(--ink); color: var(--ink); }
.pp-summary-inline {
  display: inline-flex; align-items: center; gap: .35rem;
  margin-left: auto;
}
.pp-pill {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .3rem .7rem;
  background: var(--bg-sand);
  border-radius: 999px;
  font-size: .82rem;
  color: var(--ink-2);
}
.pp-pill strong { color: var(--ink); font-weight: 700; }
.pp-pill-result { background: var(--accent); color: #fff; }
.pp-pill-result strong { color: #fff; }

.pp-groups { display: flex; flex-direction: column; }
.pp-group {
  border-bottom: 1px solid var(--line);
}
.pp-group:last-child { border-bottom: none; }
.pp-group-summary {
  display: flex; align-items: center;
  padding: .7rem .75rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
  border-radius: 8px;
}
.pp-group-summary::-webkit-details-marker { display: none; }
.pp-group-summary:hover { background: var(--bg-sand); }
.pp-group-title {
  font-family: var(--serif); font-weight: 600;
  font-size: 1.02rem; color: var(--ink);
}
.pp-group-meta {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .82rem; color: var(--muted);
}
.pp-group-picked {
  display: inline-block; min-width: 1.1em; text-align: right;
  font-weight: 600;
}
.pp-group.has-picks .pp-group-picked { color: var(--accent); }
.pp-chev { transition: transform .2s; flex-shrink: 0; }
.pp-group[open] .pp-chev { transform: rotate(180deg); }
.pp-chips {
  display: flex; flex-wrap: wrap; gap: .4rem;
  padding: 0 .5rem .85rem;
}
/* Belt-and-braces: closed accordions must not reserve space for their chips. */
.pp-group:not([open]) .pp-chips { display: none; }
.pp-chip {
  cursor: pointer; user-select: none;
}
.pp-chip input { position: absolute; opacity: 0; pointer-events: none; }
.pp-chip span {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .45rem .85rem;
  background: var(--bg-card);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: .88rem;
  color: var(--ink-2);
  transition: all .12s;
  white-space: nowrap;
}
.pp-chip span:hover { border-color: var(--ink); color: var(--ink); }
.pp-chip input:checked + span {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.pp-chip input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.pp-emoji { font-style: normal; font-size: 1rem; line-height: 1; }

.pp-results {
  margin-top: 1.5rem;
  transition: opacity .2s;
}
.pp-results.pp-loading { opacity: .55; }
.pp-results-empty {
  display: none;
}
.pp-results:not(:empty) + .pp-results-empty { display: none; }
.pp-no-results {
  text-align: center;
  color: var(--muted);
  font-style: italic;
  padding: 1.25rem;
  margin: 0;
}
.pp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.25rem; }
.rc-missing {
  position: absolute; top: .7rem; left: .7rem;
  background: var(--accent);
  color: #fff;
  font-size: .72rem; font-weight: 600;
  padding: .3rem .65rem; border-radius: 999px;
  backdrop-filter: blur(4px);
  z-index: 2;
}

@media (max-width: 640px) {
  .pp-controls { position: static; padding: .85rem; }
  .pp-tolerance { width: 100%; justify-content: space-around; }
  .pp-tolerance-label { display: none; }
  .pp-clear { width: 100%; }
  .pp-chip span { font-size: .82rem; padding: .4rem .75rem; }
}

/* ============================================================
   Category strip
   ============================================================ */
.cat-strip {
  padding-block: 3rem;
  border-block: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, var(--bg-sand) 100%);
}
.cat-tiles {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: .75rem;
  margin-top: 1.25rem;
}
.cat-tile {
  display: flex; flex-direction: column; gap: .25rem;
  padding: 1.1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--rad);
  color: var(--ink);
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
.cat-tile:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: var(--shadow);
  color: var(--ink);
}
.cat-name { font-family: var(--serif); font-weight: 600; font-size: 1.05rem; }
.cat-count { font-size: .8rem; color: var(--muted); }

/* ============================================================
   Featured collections (homepage section)
   ============================================================ */
.collections {
  padding-block: 4rem 4rem;
  background: var(--bg-sand);
  border-block: 1px solid var(--line);
}
.collections .section-head { margin-bottom: 2rem; }
.collections .eyebrow { display: block; margin-bottom: .4rem; }
.collections .section-title { font-size: clamp(1.6rem, 1.2vw + 1.2rem, 2.2rem); margin: 0; }

.collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.collection-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--rad);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.collection-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-2);
  box-shadow: var(--shadow);
}
.collection-card.has-children { grid-column: span 2; }
@media (max-width: 720px) {
  .collection-card.has-children { grid-column: span 1; }
}

.collection-cover {
  position: relative;
  display: block;
  aspect-ratio: 16/9;
  background: var(--bg-sand);
  overflow: hidden;
}
.collection-cover img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s;
}
.collection-card:hover .collection-cover img { transform: scale(1.04); }
.collection-cover::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(31,27,23,.4) 100%);
}
.collection-count {
  position: absolute; bottom: .75rem; left: .85rem;
  background: rgba(255,255,255,.95);
  color: var(--ink);
  font-size: .72rem; font-weight: 600;
  padding: .35rem .7rem;
  border-radius: 999px;
  z-index: 1;
  text-transform: uppercase; letter-spacing: .08em;
}
.collection-body {
  padding: 1.1rem 1.25rem 1.25rem;
  display: flex; flex-direction: column; gap: .65rem;
  flex: 1;
}
.collection-name {
  font-family: var(--serif); font-weight: 600;
  font-size: 1.25rem; letter-spacing: -.01em;
  line-height: 1.25; margin: 0;
}
.collection-name a { color: var(--ink); text-decoration: none; }
.collection-name a:hover { color: var(--accent); }
.collection-desc {
  margin: 0;
  font-size: .92rem; color: var(--muted); line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
}
.collection-cta {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .85rem; font-weight: 600;
  color: var(--accent);
  margin-top: auto; padding-top: .25rem;
  text-decoration: none;
}
.collection-cta:hover { color: var(--accent-2); }

.collection-children {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: .35rem; margin-top: auto;
}
.collection-children a {
  display: flex; align-items: center; justify-content: space-between;
  padding: .55rem .8rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--rad-sm);
  text-decoration: none;
  color: var(--ink-2);
  font-size: .88rem;
  transition: border-color .15s, color .15s, background .15s;
}
.collection-children a:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-2);
}
.collection-children em {
  font-style: normal;
  font-size: .72rem;
  background: var(--accent);
  color: #fff;
  padding: .1rem .45rem;
  border-radius: 999px;
  font-weight: 600;
}
.category-desc { color: var(--ink-2); font-size: 1.05rem; margin-bottom: .35rem; }

/* ============================================================
   Recipe grid
   ============================================================ */
.grid-section { padding-block: 4rem; }
.recipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}
.recipe-grid.grid-4 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

.recipe-card {
  display: flex; flex-direction: column;
  background: var(--bg-card);
  border-radius: var(--rad);
  overflow: hidden;
  color: var(--ink);
  border: 1px solid var(--line);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.recipe-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-2);
  box-shadow: var(--shadow);
  color: var(--ink);
}
.rc-img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-sand); }
.rc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.recipe-card:hover .rc-img img { transform: scale(1.06); }
.rc-img::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(31,27,23,.35) 100%);
  opacity: 0;
  transition: opacity .25s;
}
.recipe-card:hover .rc-img::after { opacity: 1; }
.rc-time {
  position: absolute; top: .7rem; right: .7rem;
  background: rgba(255, 255, 255, .92);
  color: var(--ink);
  font-size: .72rem; font-weight: 600;
  padding: .3rem .65rem; border-radius: 999px;
  backdrop-filter: blur(4px);
  display: inline-flex; align-items: center; gap: .3rem;
  z-index: 1;
}
.rc-time::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
}
.rc-body { padding: 1rem 1.1rem 1.2rem; flex: 1; display: flex; flex-direction: column; gap: .4rem; }
.rc-title {
  font-family: var(--serif); font-weight: 600;
  font-size: 1.12rem; line-height: 1.25;
  color: var(--ink);
  letter-spacing: -.01em;
}
.rc-desc {
  font-size: .88rem; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.rc-rating { display: flex; align-items: center; gap: .5rem; font-size: .8rem; color: var(--muted); margin-top: auto; }
.stars { color: var(--gold); letter-spacing: 0; }
.stars-lg { font-size: 1.1rem; letter-spacing: .05em; }

/* ============================================================
   Page head (category / search / 404)
   ============================================================ */
.page-head { padding-block: 3.5rem 1rem; }
.page-head .eyebrow { display: block; margin-bottom: .6rem; }
.page-head .lede { margin-top: .5rem; }

/* ============================================================
   Page-head banner — contextual hero image behind the title
   (category pages, static pages, /recipes, /search, /saved)
   ============================================================ */
/* Two-class selector (.page-head.page-head-banner) bumps specificity over
   .page-head-center, which is declared later in this file and would otherwise
   win the max-width/margin cascade and constrain the banner to 720px. */
.page-head.page-head-banner {
  position: relative;
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--bg-sand);
  padding-block: 4rem 4.5rem;
  margin-bottom: 2.5rem;
  overflow: hidden;
  color: #fff;
  max-width: none;
  width: 100%;
  margin-inline: 0;
}
.page-head.page-head-banner .container { text-align: center; max-width: 720px; margin: 0 auto; }
.page-head-banner::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(31,27,23,.35) 0%, rgba(31,27,23,.55) 60%, rgba(31,27,23,.7) 100%),
    radial-gradient(80% 60% at 50% 100%, rgba(192,86,59,.18), transparent 70%);
  z-index: 0;
}
.page-head-banner > * { position: relative; z-index: 1; }
.page-head-banner .eyebrow {
  color: #fff;
  opacity: .92;
  letter-spacing: .18em;
  font-size: .78rem;
}
.page-head-banner .display {
  color: #fff;
  text-shadow: 0 3px 18px rgba(0, 0, 0, .35);
  margin-block: .35rem .65rem;
}
.page-head-banner .lede,
.page-head-banner .category-desc {
  color: rgba(255, 255, 255, .92);
  text-shadow: 0 1px 6px rgba(0, 0, 0, .3);
  max-width: 60ch;
  margin-inline: auto;
}
@media (max-width: 720px) {
  .page-head-banner { min-height: 240px; padding-block: 2.5rem 3rem; margin-bottom: 1.5rem; }
}

.search-page { display: flex; gap: .5rem; margin-top: 1.5rem; max-width: 540px; }
.search-page input {
  flex: 1; padding: .85rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-card);
  font: inherit;
}
.search-page input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.search-page button {
  padding: .85rem 1.5rem;
  border-radius: 999px;
  border: none; background: var(--accent); color: #fff;
  font: 500 .92rem var(--sans); cursor: pointer;
}

/* ============================================================
   Recipe page
   ============================================================ */
.recipe-page { padding-bottom: 5rem; }
.breadcrumb {
  display: flex; align-items: center; gap: .5rem;
  font-size: .85rem; color: var(--muted);
  padding-block: 1.25rem;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--ink-2); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .current { color: var(--ink); }
.breadcrumb span { color: var(--line-2); }

.recipe-hero {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 3rem;
  align-items: center;
  padding-block: 1rem 3rem;
}
.rh-image {
  border-radius: 24px; overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-lg);
}
.rh-image img { width: 100%; height: 100%; object-fit: cover; }
.rh-text { display: flex; flex-direction: column; gap: 1.25rem; }
.badges { display: flex; gap: .4rem; flex-wrap: wrap; }
.badge {
  display: inline-block;
  font-size: .72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .08em;
  padding: .35rem .7rem;
  border-radius: 999px;
  background: var(--bg-sand); color: var(--ink-2);
}
.badge-cuisine { background: var(--accent-soft); color: var(--accent-2); }
.recipe-title { font-size: clamp(2rem, 2.5vw + 1rem, 3.2rem); }
.rating-row { display: flex; align-items: center; gap: .6rem; color: var(--ink-2); font-size: .9rem; }
.recipe-pubdate {
  display: inline-flex; align-items: center; gap: .4rem;
  color: var(--muted); font-size: .9rem;
  margin-block: .25rem .5rem;
}
.rating-count { color: var(--muted); }
.recipe-actions { display: flex; gap: .65rem; flex-wrap: wrap; margin-top: .25rem; }

/* video */
.recipe-video { padding-block: 1rem 3rem; max-width: 860px; margin: 0 auto; }
.recipe-video h2 { margin-bottom: 1rem; }
.video-wrap {
  position: relative; aspect-ratio: 16/9;
  border-radius: var(--rad);
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow);
}
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ============================================================
   Recipe card block (the showpiece)
   ============================================================ */
.recipe-card-block {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 20px;
  margin-block: 2rem;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}
.recipe-card-block::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--gold), var(--sage));
}
.rcb-header {
  text-align: center;
  padding: 2rem 1.5rem .25rem;
}
.rcb-title {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(1.6rem, 1.4vw + 1.2rem, 2.2rem);
  letter-spacing: -.015em;
  color: var(--ink);
}
.rcb-author { color: var(--muted); font-size: .9rem; font-style: italic; margin-top: .25rem; }

.rcb-meta {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  margin-block: 1.25rem 0;
  border-block: 1px solid var(--line);
}
.meta-cell {
  padding: 1rem .75rem;
  text-align: center;
  border-right: 1px solid var(--line);
}
.meta-cell:last-child { border-right: none; }
.meta-label {
  display: block;
  text-transform: uppercase; letter-spacing: .12em;
  font-size: .7rem; font-weight: 600;
  color: var(--muted);
  margin-bottom: .35rem;
}
.meta-value {
  font-family: var(--serif); font-weight: 600;
  font-size: 1.1rem;
  color: var(--ink);
}

.rcb-body {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: 2.5rem;
  padding: 2rem;
}
/* Same min-width:0 belt-and-braces on the body's children. */
.rcb-ingredients, .rcb-instructions { min-width: 0; }
.rcb-ingredients h3,
.rcb-instructions h3 {
  font-family: var(--serif); font-weight: 600;
  font-size: 1.35rem; letter-spacing: -.01em;
  color: var(--ink);
  padding-bottom: .75rem;
  border-bottom: 2px solid var(--accent);
  margin-bottom: 1rem;
  display: inline-block;
}
.ingredients-list { list-style: none; }
.ingredients-list li {
  padding-block: .55rem;
  border-bottom: 1px dashed var(--line);
}
.ingredients-list li:last-child { border-bottom: none; }
.ingredients-list label {
  display: flex; align-items: flex-start; gap: .65rem;
  cursor: pointer;
  font-size: .96rem;
  color: var(--ink-2);
}
.ingredients-list input[type="checkbox"] {
  appearance: none;
  width: 18px; height: 18px;
  margin-top: .15rem;
  border: 1.5px solid var(--line-2);
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: background .15s, border-color .15s;
}
.ingredients-list input[type="checkbox"]:checked {
  background: var(--accent); border-color: var(--accent);
}
.ingredients-list input[type="checkbox"]:checked::after {
  content: "✓"; position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: .8rem; font-weight: 700;
}
.ingredients-list input[type="checkbox"]:checked + span {
  text-decoration: line-through;
  color: var(--muted);
}

.step-list { list-style: none; counter-reset: stepc; }
.step-list li {
  display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 1rem;
  margin-bottom: 1.8rem;
  scroll-margin-top: 6rem;
  /* Without min-width:0 on the grid item, its content (step text or a long
     URL inside it) can blow out the column to wider than the viewport. */
  min-width: 0;
}
.step-num {
  width: 44px; height: 44px;
  background: var(--accent); color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-weight: 700; font-size: 1.15rem;
  box-shadow: 0 3px 8px -2px rgba(122, 31, 31, .35);
}
.step-body {
  padding-top: .35rem;
  min-width: 0;                /* allow this grid track to shrink */
  overflow-wrap: anywhere;     /* break long URLs/words inside step text */
}
.step-text {
  font-size: 1rem;
  color: var(--ink-2);
  line-height: 1.65;
  overflow-wrap: anywhere;
  word-break: break-word;
}
/* Long pre/code/embed blocks scraped from WPZoom can be wider than mobile. */
.step-text pre,
.step-text code,
.step-text table,
.step-text iframe,
.step-text img { max-width: 100%; }
.step-text pre { overflow-x: auto; }
.step-image {
  margin-top: .9rem;
  border-radius: var(--rad-sm);
  width: 100%;
  height: auto;
  max-width: 480px;            /* desktop cap; mobile gets 100% via width */
}
.rcb-notes {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  background: var(--sage-soft);
  border-left: 4px solid var(--sage);
  border-radius: var(--rad-sm);
}
.rcb-notes h4 {
  font-family: var(--serif); font-weight: 600;
  font-size: 1.05rem;
  color: var(--sage);
  margin-bottom: .5rem;
}
.rcb-notes p { color: var(--ink-2); font-size: .92rem; margin-block: .25rem; }

.rcb-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.5rem;
  background: var(--bg-sand);
  border-top: 1px solid var(--line);
  font-size: .82rem; color: var(--muted);
}
.rcb-footer a { color: var(--ink-2); }

.related { padding-block: 2.5rem; }
.related .section-title { margin-bottom: 1.25rem; }

/* ============================================================
   Floating action buttons (recipe page)
   ============================================================ */
.floating-actions {
  position: fixed; right: 1.25rem; bottom: 1.25rem;
  display: flex; flex-direction: column; gap: .5rem;
  z-index: 20;
}
.fab {
  width: 48px; height: 48px;
  background: var(--ink); color: #fff;
  border: none;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform .15s, background .15s;
}
.fab:hover { background: var(--accent); transform: scale(1.06); color: #fff; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  margin-top: 5rem;
  background: var(--ink);
  color: #DBD0BE;
  padding-block: 3rem 1.5rem;
}
.footer-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
}
.site-footer .brand-footer {
  display: inline-block;
  background: #fff;
  padding: .9rem 1.4rem;
  border-radius: 14px;
  box-shadow: 0 8px 24px -10px rgba(0,0,0,.35);
}
.site-footer .brand-footer img {
  height: 60px;
  width: auto;
  display: block;
}
.foot-about {
  max-width: 62ch;
  opacity: .85;
  font-size: .95rem;
  line-height: 1.65;
  margin: 0;
  text-align: center;
}
.foot-about p { margin: 0 0 .75rem; }
.foot-about p:last-child { margin-bottom: 0; }

/* Sub-header for the recipe grid rendered below a static page (festival landings, etc.) */
.page-recipes-head {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-soft, #e7dfd2);
}
.page-recipes-head .container { text-align: center; }
.page-recipes-head .section-title { margin: 0 0 .25rem; }
.page-recipes-head .lede { margin: 0; opacity: .75; font-size: .95rem; }
.foot-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem 1.6rem;
  padding-block: .25rem;
}
.foot-menu a {
  color: #DBD0BE;
  opacity: .85;
  font-weight: 500;
  font-size: .92rem;
  white-space: nowrap;
  transition: color .15s, opacity .15s;
}
.foot-menu a:hover { opacity: 1; color: #fff; }
.social { display: flex; gap: .55rem; flex-wrap: wrap; }
.social-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 8px;
  transition: transform .15s, box-shadow .15s;
}
.social-link svg { display: block; }
.social-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px -4px rgba(0,0,0,.4);
}
.foot-bottom {
  display: flex; align-items: center; justify-content: center;
  margin-top: 2rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .82rem; opacity: .7;
  text-align: center;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2rem; }
  .hero-image { aspect-ratio: 16 / 11; transform: none; max-height: 480px; }
  .recipe-hero { grid-template-columns: 1fr; gap: 1.5rem; }
  .rcb-body { grid-template-columns: 1fr; gap: 1.5rem; padding: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .primary-nav { display: none; }
  .menu-toggle {
    display: inline-flex; flex-direction: column; gap: 4px;
    width: 38px; height: 38px;
    background: var(--bg-card); border: 1px solid var(--line); border-radius: 10px;
    align-items: center; justify-content: center;
    cursor: pointer;
  }
  .menu-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; }
  body.menu-open .primary-nav {
    display: block;
    border-top: 1px solid var(--line);
    background: rgba(251, 247, 240, .98);
    max-height: calc(100vh - 90px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  body.menu-open .nav-inner { flex-direction: column; align-items: flex-start; gap: .35rem; padding: 1rem var(--gutter) 2rem; }
  body.menu-open .nav-inner > a,
  body.menu-open .nav-dropdown > a { font-size: 1.05rem; padding-block: .55rem; width: 100%; border-bottom: 1px solid var(--line); }
  body.menu-open .nav-dropdown { width: 100%; }
  body.menu-open .nav-dropdown .dropdown-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; padding: .25rem 0 .5rem 1.25rem;
    background: transparent;
    display: flex; flex-direction: column; gap: .15rem;
    min-width: 0;
  }
  body.menu-open .nav-dropdown .dropdown-menu a { padding-block: .4rem; font-size: .95rem; color: var(--ink-2); }
  .search-mini { width: 180px; }
}
@media (max-width: 720px) {
  .header-top { grid-template-columns: auto 1fr auto; gap: .75rem; }
  .header-left { display: none; }
  .brand-centered { justify-self: flex-start; }
  .header-right { gap: .5rem; }
}
@media (max-width: 640px) {
  .lang-switch { font-size: .72rem; }
  .brand-full { display: none; }
  .brand-icon { display: block; }
  .container { padding-inline: 1rem; }
  .hero { padding-top: 2rem; padding-bottom: 3rem; }
  .step-list li { grid-template-columns: 36px minmax(0, 1fr); gap: .75rem; }
  /* Tighter horizontal padding on small phones so the recipe-card edges
     don't hug the viewport border. */
  .rcb-body { padding: 1.25rem 1rem; gap: 1.25rem; }
  .rcb-header { padding: 1.5rem 1rem .25rem; }
  .rcb-footer { padding: .85rem 1rem; }
  .step-num { width: 36px; height: 36px; font-size: 1rem; }
  .floating-actions { right: .75rem; bottom: .75rem; }
}

/* ============================================================
   Static page (About, Privacy, Festival)
   ============================================================ */
.static-page { padding-bottom: 5rem; }
.static-page .page-head { padding-block: 3rem 1.5rem; }
.page-head-center {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.page-head-center .lede { margin: 1rem auto 0; }

/* 2-column layout for pages with a hero image */
.page-split {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 3rem;
  align-items: start;
  margin-top: 2rem;
}
.page-split .page-content { max-width: none; margin: 0; }
.page-portrait {
  position: sticky;
  top: 5rem;
  background: var(--bg-card);
  padding: .65rem;
  border: 1px solid var(--line);
  border-radius: var(--rad);
  box-shadow: var(--shadow);
}
.page-portrait img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--rad-sm);
}

.page-video {
  max-width: 880px;
  margin: 3.5rem auto 0;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
}
.page-video h2.section-title { text-align: center; margin-bottom: .5rem; }
.page-video-title { text-align: center; color: var(--muted); font-size: .92rem; margin-bottom: 1.25rem; font-style: italic; }
.page-video-cta { text-align: center; margin-top: 1rem; }
.page-video-cta .btn { display: inline-flex; align-items: center; gap: .45rem; }

@media (max-width: 960px) {
  .page-split { grid-template-columns: 1fr; gap: 2rem; }
  .page-portrait { position: static; max-width: 480px; margin: 0 auto; }
}
.prose {
  max-width: 70ch;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--ink-2);
}
.prose h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.7rem;
  letter-spacing: -.01em;
  color: var(--ink);
  margin-top: 2.5rem;
  margin-bottom: .8rem;
}
.prose h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--ink);
  margin-top: 1.8rem;
  margin-bottom: .6rem;
}
.prose p { margin-bottom: 1.1rem; }
.prose p.lead {
  font-size: 1.2rem;
  line-height: 1.65;
  color: var(--ink);
  margin-bottom: 1.8rem;
}
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.prose a:hover { color: var(--accent-2); }
.prose ul, .prose ol { margin: 0 0 1.25rem 1.5rem; }
.prose li { margin-bottom: .5rem; }
.prose img {
  margin: 1.5rem auto;
  border-radius: var(--rad-sm);
  max-width: 100%;
  height: auto;
}
.prose figure { margin: 1.5rem 0; }

/* Reference tables inside prose pages (Fish Names, etc.) — readable, scrollable on mobile. */
.prose .table-scroll {
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 1px solid var(--border-soft, #e7dfd2);
  border-radius: var(--rad-sm);
  background: var(--bg-card, #fff);
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
  min-width: 720px;
}
.prose thead th {
  background: var(--bg-sand, #f3ead9);
  color: var(--ink, #2a221b);
  font-weight: 700;
  text-align: left;
  padding: .8rem 1rem;
  position: sticky;
  top: 0;
  z-index: 1;
  border-bottom: 2px solid var(--border-soft, #e7dfd2);
  white-space: nowrap;
}
.prose tbody td {
  padding: .65rem 1rem;
  border-bottom: 1px solid var(--border-soft, #e7dfd2);
  vertical-align: top;
  line-height: 1.5;
}
.prose tbody tr:nth-child(odd) td { background: rgba(243, 234, 217, .25); }
.prose tbody tr:hover td { background: rgba(192, 86, 59, .07); }
.prose h4 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--ink);
  margin-top: 1.5rem;
  margin-bottom: .5rem;
}
.prose hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 2.5rem auto;
  max-width: 60%;
}
.prose figcaption {
  text-align: center;
  font-size: .85rem;
  color: var(--muted);
  font-style: italic;
  margin-top: -.75rem;
  margin-bottom: 1.5rem;
}
.prose .has-text-align-center { text-align: center; }
.prose .has-text-align-right { text-align: right; }
/* WP block paragraph normalization */
.prose .wp-block-paragraph,
.prose .wp-block-heading { margin-block: revert; }
/* Genesis post grids on landing-style pages (Diwali, Christmas, etc.) */
.gb-post-grid-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
  list-style: none;
  padding: 0;
}
.gb-post-grid-item {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--rad);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.gb-post-grid-item:hover {
  transform: translateY(-3px);
  border-color: var(--line-2);
  box-shadow: var(--shadow);
}
.gb-post-grid-item > a {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-sand);
}
.gb-post-grid-item > a img {
  width: 100%; height: 100%;
  object-fit: cover; margin: 0; border-radius: 0;
  transition: transform .4s;
}
.gb-post-grid-item:hover > a img { transform: scale(1.04); }
.gb-post-grid-item .gb-block-post-grid-text,
.gb-post-grid-item header,
.gb-post-grid-item .gb-block-post-grid-content { padding: 1rem 1.1rem 1.2rem; flex: 1; display: flex; flex-direction: column; gap: .35rem; }
.gb-post-grid-item h2,
.gb-post-grid-item .gb-block-post-grid-title {
  font-family: var(--serif);
  font-weight: 600; font-size: 1.05rem; line-height: 1.3;
  color: var(--ink);
  margin: 0;
}
.gb-post-grid-item h2 a { color: var(--ink); text-decoration: none; }
.gb-post-grid-item h2 a:hover { color: var(--accent); }
.gb-post-grid-item .gb-block-post-grid-byline,
.gb-post-grid-item .gb-block-post-grid-date,
.gb-post-grid-item .gb-block-post-grid-author,
.gb-post-grid-item time { font-size: .8rem; color: var(--muted); }
.gb-post-grid-item .gb-block-post-grid-excerpt { font-size: .88rem; color: var(--muted); margin: 0; }

.prose blockquote {
  border-left: 3px solid var(--accent);
  background: var(--bg-sand);
  padding: 1rem 1.5rem;
  border-radius: 0 var(--rad-sm) var(--rad-sm) 0;
  font-style: italic;
  margin: 1.5rem 0;
}

/* ============================================================
   Saved link / header polish
   ============================================================ */
.saved-link {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-card);
  color: var(--ink-2);
  transition: color .15s, border-color .15s;
}
.saved-link:hover { color: var(--accent); border-color: var(--accent); }
.saved-count {
  position: absolute; top: -4px; right: -4px;
  background: var(--accent); color: #fff;
  font-size: .65rem; font-weight: 700;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  display: none;
}
.saved-count[data-saved-count]:not([data-saved-count="0"]) { display: flex; }

/* ============================================================
   Reading progress
   ============================================================ */
.reading-progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 60;
  background: transparent;
  pointer-events: none;
}
.reading-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .1s linear;
}

/* ============================================================
   Sticky recipe summary bar
   ============================================================ */
.sticky-recipe-bar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 49;
  background: rgba(251, 247, 240, .96);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
  padding-block: .65rem;
  transform: translateY(-100%);
  transition: transform .25s ease;
  pointer-events: none;
}
.sticky-recipe-bar.visible { transform: translateY(0); pointer-events: auto; }
.sticky-recipe-bar .container {
  display: flex; align-items: center; gap: 1rem;
}
.sticky-recipe-bar img {
  width: 42px; height: 42px;
  object-fit: cover; border-radius: 8px;
  flex-shrink: 0;
}
.srb-text {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; line-height: 1.2;
}
.srb-title {
  font-family: var(--serif); font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.srb-meta {
  font-size: .78rem; color: var(--muted);
}
@media (max-width: 640px) {
  .sticky-recipe-bar .container { gap: .65rem; padding-inline: .75rem; }
  .srb-text { font-size: .9rem; }
  .sticky-recipe-bar .btn { padding: .5rem .85rem; font-size: .8rem; }
}

/* ============================================================
   Ingredient scaling
   ============================================================ */
.ingredients-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: .5rem; flex-wrap: wrap;
  margin-bottom: 1rem;
}
.ingredients-head h3 { margin-bottom: 0; padding-bottom: 0; border-bottom: none; display: inline-block; }
.ingredients-head h3 { padding-bottom: .25rem; border-bottom: 2px solid var(--accent); }
.scale-control {
  display: inline-flex;
  background: var(--bg-sand);
  border-radius: 999px;
  padding: 3px;
}
.scale-control button {
  border: none; background: transparent;
  padding: .35rem .75rem;
  font: 600 .82rem var(--sans);
  color: var(--ink-2);
  border-radius: 999px;
  cursor: pointer;
  transition: background .12s, color .12s;
}
.scale-control button.active {
  background: var(--accent); color: #fff;
}
.scale-control button:hover:not(.active) { color: var(--accent); }
.ing-text { transition: color .15s; }

/* ============================================================
   Save button states
   ============================================================ */
.save-btn svg { transition: fill .2s, stroke .2s; fill: none; }
.save-btn.saved {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-2);
}
.save-btn.saved svg { fill: var(--accent); stroke: var(--accent); }

/* ============================================================
   Step image button (lightbox trigger)
   ============================================================ */
/* Step image grid — single image renders centred and capped, multiple images
   flow side-by-side in a responsive grid mirroring how the live recipe card
   groups them under one direction-step. */
.step-image-grid { margin-top: .9rem; }
.step-image-grid.multi {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: .6rem;
  max-width: 720px;
}
.step-image-grid.multi .step-image-btn { margin-top: 0; max-width: none; }
.step-image-grid.multi .step-image-btn img { aspect-ratio: 1 / 1; object-fit: cover; }

.step-image-btn {
  position: relative;
  padding: 0; border: none; background: none;
  display: block; max-width: 480px;
  margin-top: .9rem;
  border-radius: var(--rad-sm);
  overflow: hidden;
  cursor: zoom-in;
  transition: transform .2s, box-shadow .2s;
}
.step-image-btn:hover { transform: scale(1.01); box-shadow: var(--shadow); }
.step-image-btn img { display: block; width: 100%; height: auto; border-radius: var(--rad-sm); margin: 0; }
.step-image-zoom {
  position: absolute; bottom: .5rem; right: .5rem;
  background: rgba(31, 27, 23, .8);
  color: #fff;
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity .15s;
}
.step-image-btn:hover .step-image-zoom { opacity: 1; }

/* ============================================================
   Lightbox
   ============================================================ */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(15, 12, 10, .94);
  z-index: 100;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 2rem;
  opacity: 0; visibility: hidden;
  transition: opacity .2s, visibility .2s;
}
.lightbox.visible { opacity: 1; visibility: visible; }
.lightbox-img { max-width: 90vw; max-height: 80vh; object-fit: contain; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox-caption { color: #DBD0BE; margin-top: 1rem; max-width: 700px; text-align: center; font-size: .92rem; }
.lightbox-close {
  position: absolute; top: 1rem; right: 1rem;
  width: 44px; height: 44px;
  background: rgba(255,255,255,.08); color: #fff;
  border: none; border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.lightbox-close:hover { background: rgba(255,255,255,.16); }

/* ============================================================
   Toast
   ============================================================ */
.toast {
  position: fixed; bottom: 1.5rem; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff;
  padding: .75rem 1.25rem;
  border-radius: 999px;
  font-size: .9rem;
  box-shadow: 0 8px 24px rgba(31,27,23,.3);
  z-index: 100;
  opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s;
}
.toast.visible { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============================================================
   Print — show ONLY the recipe card cleanly
   ============================================================ */
@media print {
  body { background: #fff; font-size: 11pt; }
  .site-header, .site-footer, .floating-actions, .recipe-video,
  .related, .breadcrumb, .recipe-actions, .menu-toggle,
  .sticky-recipe-bar, .reading-progress, .newsletter-slide,
  .lightbox, .toast, .rh-image, .recipe-hero .rh-text > *:not(.recipe-title):not(.lede),
  .scale-control, .step-image-zoom, .rcb-footer button { display: none !important; }
  .recipe-card-block { box-shadow: none; border: 1.5pt solid var(--ink); page-break-inside: avoid; }
  .recipe-card-block::before { display: none; }
  .recipe-hero { grid-template-columns: 1fr; padding-block: 0; }
  .rcb-body { grid-template-columns: 1fr 1.4fr; padding: 1rem 1.25rem; gap: 1.25rem; }
  .step-list li { break-inside: avoid; margin-bottom: .8rem; }
  .step-image-btn { max-width: 240px; }
  a { color: var(--ink); text-decoration: none; }
  .container { max-width: none; padding: 0; }
}

/* ============================================================
   Rich body content (sits between video and recipe card)
   Mirrors the prose styling from static pages.
   ============================================================ */
.recipe-body {
  max-width: 760px;
  margin: 0 auto 2.5rem;
  padding: 0 1.25rem;
}
.recipe-body h2 {
  font-family: var(--serif, 'Fraunces', serif);
  font-weight: 600;
  font-size: clamp(1.45rem, 2.2vw, 1.85rem);
  margin: 2rem 0 1rem;
  color: var(--ink, #2a221b);
}
.recipe-body h3 {
  font-weight: 600;
  font-size: 1.2rem;
  margin: 1.6rem 0 .75rem;
  color: var(--ink, #2a221b);
}
.recipe-body h4 {
  font-weight: 600;
  font-size: 1.05rem;
  margin: 1.3rem 0 .55rem;
}
.recipe-body p { margin-bottom: 1.05rem; line-height: 1.75; }
.recipe-body ul, .recipe-body ol { margin: 0 0 1.25rem 1.5rem; }
.recipe-body li { margin-bottom: .45rem; line-height: 1.7; }
.recipe-body figure { margin: 1.5rem 0; text-align: center; }
.recipe-body figure img {
  max-width: 100%; height: auto;
  border-radius: var(--rad-sm, 8px);
}
.recipe-body figcaption { font-size: .85rem; opacity: .75; margin-top: .35rem; }
.recipe-body strong { color: var(--ink, #2a221b); }
.recipe-body a { color: var(--accent, #c0563b); text-decoration: underline; text-underline-offset: 3px; }

/* ============================================================
 * Reader comments — polished, threaded
 * ============================================================ */
.recipe-comments {
  margin: 3.5rem 0 0;
  padding-top: 2.25rem;
  border-top: 1px solid #e8e2d3;
  --c-ink: #2a2925;
  --c-muted: #6b6a5e;
  --c-line: #e8e2d3;
  --c-soft: #fafaf6;
  --c-card: #fff;
  --c-star: #e4a932;
  --c-accent: var(--accent, #c0563b);
}

/* ---- Section head ---- */
.cmt-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.cmt-section-title {
  margin: 0;
  font-family: Fraunces, Georgia, serif;
  font-weight: 600;
  font-size: 1.85rem;
  color: var(--c-ink);
  letter-spacing: -.01em;
}
.cmt-count {
  display: inline-block;
  margin-left: .65rem;
  font-family: Inter, system-ui, sans-serif;
  font-weight: 500;
  font-size: .9rem;
  color: var(--c-muted);
  padding: .2rem .65rem;
  background: var(--c-soft);
  border-radius: 999px;
  vertical-align: middle;
  letter-spacing: 0;
}
.cmt-rating-summary {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .5rem .9rem .5rem .5rem;
  background: linear-gradient(135deg, #fff8e7 0%, #fff 100%);
  border: 1px solid #f1e3b8;
  border-radius: 10px;
}
.cmt-rating-num {
  font-family: Fraunces, Georgia, serif;
  font-size: 2rem;
  font-weight: 600;
  color: var(--c-ink);
  line-height: 1;
}
.cmt-rating-sub { font-size: .78rem; color: var(--c-muted); margin-top: .1rem; }

/* ---- Star bits ---- */
.cmt-stars { display: inline-flex; gap: 1px; letter-spacing: 0; vertical-align: middle; }
.cmt-stars span { color: #d8d3c2; font-size: .85rem; line-height: 1; }
.cmt-stars span.on { color: var(--c-star); }
.cmt-stars-big span { font-size: 1.05rem; }

/* ---- Acknowledgement banner ---- */
.cmt-ack {
  display: flex;
  align-items: center;
  gap: .55rem;
  background: linear-gradient(135deg, #e9f7ec 0%, #d8f3dc 100%);
  color: #1f5a3a;
  padding: .8rem 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-weight: 500;
  border: 1px solid #b7e2c0;
}

/* ---- Empty state ---- */
.cmt-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--c-muted);
  background: var(--c-soft);
  border-radius: 12px;
  border: 1px dashed var(--c-line);
}
.cmt-empty svg { display: block; margin: 0 auto .75rem; color: var(--c-muted); }
.cmt-empty p { margin: 0; font-size: .95rem; }

/* ---- Thread layout ---- */
.cmt-thread {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

/* ---- Individual comment ---- */
.cmt {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 1rem;
  scroll-margin-top: 1rem;
}
.cmt-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--c-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cmt-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cmt-avatar-initial {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.3rem;
  font-weight: 600;
  text-transform: uppercase;
}

.cmt-main {
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: 12px;
  padding: .95rem 1.1rem 1rem;
  position: relative;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.cmt-main:hover { border-color: #d8d0bd; }

/* Speech-bubble tail pointing toward the avatar */
.cmt-main::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 16px;
  width: 12px;
  height: 12px;
  background: var(--c-card);
  border-left: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
  transform: rotate(45deg);
}

/* Author/admin reply gets a warm tint + brand-color tail */
.cmt-author-reply .cmt-main {
  background: linear-gradient(135deg, #fff7f1 0%, #fdefe5 100%);
  border-color: #e8c6b0;
}
.cmt-author-reply .cmt-main::before {
  background: #fff7f1;
  border-color: #e8c6b0;
}

/* ---- Comment header (name, time, rating, badge) ---- */
.cmt-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .4rem .55rem;
  font-size: .85rem;
  color: var(--c-muted);
  margin-bottom: .35rem;
}
.cmt-name {
  font-family: Inter, system-ui, sans-serif;
  font-weight: 600;
  color: var(--c-ink);
  font-size: .95rem;
}
.cmt-dot { color: #c8c4b6; }
.cmt-time { font-variant-numeric: tabular-nums; }

.cmt-badge {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  padding: .1rem .5rem;
  background: var(--c-accent);
  color: #fff;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.cmt-badge svg { fill: #fff; }

/* ---- Comment body ---- */
.cmt-body {
  color: #3a3935;
  line-height: 1.6;
  font-size: .965rem;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

/* ---- Per-comment actions row ---- */
.cmt-actions {
  margin-top: .65rem;
  padding-top: .25rem;
  display: flex;
  gap: .4rem;
}
.cmt-reply-btn {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  background: transparent;
  border: 0;
  padding: .35rem .6rem .35rem .4rem;
  margin-left: -.4rem;
  font: inherit;
  font-size: .82rem;
  font-weight: 500;
  color: var(--c-muted);
  border-radius: 6px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.cmt-reply-btn:hover { background: var(--c-soft); color: var(--c-accent); }

/* ---- Threaded replies: indented children with a left rail ---- */
.cmt-children {
  margin-top: 1.25rem;
  margin-left: 1.75rem;
  padding-left: 1.5rem;
  border-left: 2px solid var(--c-line);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
/* Smaller avatar for replies, scaling down a touch with depth */
.cmt-children .cmt {
  grid-template-columns: 38px 1fr;
}
.cmt-children .cmt-avatar { width: 38px; height: 38px; }
.cmt-children .cmt-avatar-initial { font-size: 1rem; }
.cmt-children .cmt-main::before { top: 14px; }
.cmt-children .cmt-name { font-size: .9rem; }
.cmt-children .cmt-body { font-size: .93rem; }

.cmt-children.depth-2 { margin-left: 1rem; padding-left: 1.25rem; }
.cmt-children.depth-3 { margin-left: .5rem; padding-left: 1rem; }
.cmt-children.depth-4 { margin-left: 0; padding-left: .85rem; border-left-style: dashed; }

/* ---- The form ---- */
.cmt-form-wrap {
  margin-top: 2.5rem;
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: 14px;
  padding: 1.5rem 1.5rem 1.35rem;
  box-shadow: 0 1px 0 rgba(0,0,0,.02);
  transition: box-shadow .2s ease, transform .2s ease;
}
.cmt-form-wrap.is-reply {
  margin-top: 1rem;
  margin-left: 4rem;
  background: var(--c-soft);
  border-color: #d8d0bd;
  box-shadow: 0 6px 24px rgba(0,0,0,.08);
}
.cmt-form-title {
  margin: 0 0 1rem;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--c-ink);
}
.cmt-form-replying {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin: -.5rem 0 1rem;
  padding: .55rem .75rem;
  background: #fff4ee;
  border: 1px solid #f3d5c2;
  border-radius: 8px;
  font-size: .85rem;
  color: #7a3a1f;
}
.cmt-replying-msg { flex: 1; font-weight: 500; }
.cmt-cancel-reply {
  background: transparent;
  border: 0;
  color: #7a3a1f;
  cursor: pointer;
  font: inherit;
  font-weight: 500;
  text-decoration: underline;
  padding: .25rem .5rem;
}
.cmt-cancel-reply:hover { color: var(--c-accent); }

.cmt-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.cmt-field {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  position: relative;
}
.cmt-field-wide { grid-column: 1 / -1; }
.cmt-label {
  font-size: .82rem;
  font-weight: 500;
  color: #5b594c;
  letter-spacing: .005em;
}
.cmt-label small { color: var(--c-muted); font-weight: 400; }
.cmt-req { color: var(--c-accent); margin-left: .15rem; }

.cmt-form input,
.cmt-form textarea {
  width: 100%;
  padding: .65rem .8rem;
  background: #fff;
  border: 1px solid #d8d3c2;
  border-radius: 7px;
  font-family: inherit;
  font-size: .95rem;
  color: var(--c-ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.cmt-form input:focus,
.cmt-form textarea:focus {
  outline: none;
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px rgba(192, 86, 59, .12);
}
.cmt-form textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.55;
}
.cmt-counter {
  position: absolute;
  bottom: .6rem;
  right: .8rem;
  font-size: .72rem;
  color: var(--c-muted);
  font-variant-numeric: tabular-nums;
  pointer-events: none;
  background: rgba(255,255,255,.8);
  padding: 0 .25rem;
  border-radius: 3px;
}

/* Star picker on the form */
.cmt-star-picker {
  display: inline-flex;
  gap: .15rem;
  align-items: center;
}
.cmt-star {
  background: transparent;
  border: 0;
  padding: .15rem .2rem;
  font-size: 1.6rem;
  line-height: 1;
  color: #d8d3c2;
  cursor: pointer;
  transition: color .12s ease, transform .12s ease;
}
.cmt-star:hover { transform: scale(1.1); }
.cmt-star.on { color: var(--c-star); }
.cmt-star:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; border-radius: 4px; }

/* Honeypot — hidden offscreen for humans, visible for naive bots */
.cmt-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Form footer */
.cmt-form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}
.cmt-submit {
  padding: .75rem 1.5rem;
  background: var(--c-accent);
  color: #fff;
  border: 0;
  border-radius: 7px;
  font-family: inherit;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s ease, transform .1s ease;
  letter-spacing: .005em;
}
.cmt-submit:hover { background: #a8462f; transform: translateY(-1px); }
.cmt-submit:active { transform: translateY(0); }
.cmt-recaptcha-notice {
  font-size: .72rem;
  color: var(--c-muted);
  line-height: 1.4;
}
.cmt-recaptcha-notice a { color: var(--c-muted); text-decoration: underline; }
.cmt-recaptcha-notice a:hover { color: var(--c-ink); }

/* ---- Mobile ---- */
@media (max-width: 640px) {
  .cmt-section-head { gap: 1rem; }
  .cmt-section-title { font-size: 1.55rem; }
  .cmt { grid-template-columns: 40px 1fr; gap: .75rem; }
  .cmt-avatar { width: 40px; height: 40px; }
  .cmt-avatar-initial { font-size: 1.1rem; }
  .cmt-children { margin-left: .5rem; padding-left: 1rem; }
  .cmt-children .cmt { grid-template-columns: 32px 1fr; gap: .6rem; }
  .cmt-children .cmt-avatar { width: 32px; height: 32px; }
  .cmt-form-grid { grid-template-columns: 1fr; }
  .cmt-form-wrap { padding: 1.25rem; }
  .cmt-form-wrap.is-reply { margin-left: 1rem; }
}

/* ============================================================
 * Recipe hero meta bar — rating + comment count + date
 * ============================================================ */
.recipe-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem .85rem;
  margin: .25rem 0 1.25rem;
  font-family: Inter, system-ui, sans-serif;
  font-size: .9rem;
  color: #6b6a5e;
}
.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .3rem .65rem;
  background: #fafaf6;
  border: 1px solid #ece6d4;
  border-radius: 999px;
  color: inherit;
  text-decoration: none;
  line-height: 1.2;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .1s ease;
}
a.meta-chip { cursor: pointer; }
a.meta-chip:hover {
  background: #fff;
  border-color: var(--accent, #c0563b);
  color: var(--accent, #c0563b);
  transform: translateY(-1px);
}
.meta-chip svg { flex-shrink: 0; }

.meta-rating {
  background: linear-gradient(135deg, #fff7e3 0%, #fff 100%);
  border-color: #f1e3b8;
}
.meta-rating .meta-rating-num {
  font-weight: 700;
  color: #2a2925;
  font-variant-numeric: tabular-nums;
}
.meta-rating .meta-sub { color: #8a8775; font-size: .82rem; }
.meta-stars {
  display: inline-flex;
  gap: 1px;
  letter-spacing: 0;
}
.meta-stars span {
  color: #e0d6b9;
  font-size: .95rem;
  line-height: 1;
}
.meta-stars span.on { color: #e4a932; }

.meta-comments { font-weight: 500; }
.meta-date time { font-variant-numeric: tabular-nums; }

@media (max-width: 640px) {
  .recipe-meta-bar { gap: .4rem .5rem; font-size: .82rem; }
  .meta-chip { padding: .25rem .55rem; }
}

/* Smooth scroll for in-page anchor jumps */
html { scroll-behavior: smooth; }

/* Scroll-to-top FAB — only visible after scrolling past the hero */
.fab[hidden] { display: none; }
.fab-top { animation: fab-pop .25s ease-out; }
@keyframes fab-pop {
  from { opacity: 0; transform: translateY(8px) scale(.85); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Anchor offset so #comments lands at the heading, not above the section padding.
   Site header is sticky ~80px on desktop, ~64px on mobile — account for that. */
.recipe-comments { scroll-margin-top: 100px; }
@media (max-width: 640px) {
  .recipe-comments { scroll-margin-top: 70px; }
}
#recipe-card { scroll-margin-top: 100px; }

/* ============================================================
 * Category page — tagline over banner + intro prose below
 * ============================================================ */
.category-tagline {
  color: var(--ink-2);
  font-size: 1.15rem;
  font-style: italic;
  margin: .25rem auto .6rem;
  max-width: 580px;
  line-height: 1.4;
}
.page-head-banner .category-tagline {
  color: rgba(255,255,255,.95);
  text-shadow: 0 1px 3px rgba(0,0,0,.35);
  font-weight: 500;
}
.category-intro {
  padding: 2rem 0 1rem;
  border-bottom: 1px solid #ece6d4;
  margin-bottom: 1rem;
}
.category-intro-prose {
  max-width: 720px;
  margin: 0 auto;
  text-align: left;
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--ink, #2a2925);
}
.category-intro-prose p { margin: 0 0 .85rem; }
.category-intro-prose p:last-child { margin-bottom: 0; }
@media (max-width: 640px) {
  .category-intro { padding: 1.5rem 0 .75rem; }
  .category-intro-prose { font-size: .96rem; }
  .category-tagline { font-size: 1rem; }
}
