/*
Theme Name: Low Carb Recipes AU
Theme URI: https://lowcarbrecipes.com.au
Author: Low Carb Recipes AU
Description: Editorial recipe theme for lowcarbrecipes.com.au — Playfair Display + Inter, emerald accent, built to style WP Recipe Maker output. Implements the v3 design reference.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lcr
*/

/* ============================================================
   lowcarbrecipes.com.au — shared styles
   Playfair Display (headings) + Inter (body)
   ============================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #ffffff;
  --fg-heading: #111111;
  --fg-body: #444444;
  --fg-muted: #6b7280;
  --fg-faint: #9ca3af;

  --green: #059669;
  --green-dark: #047857;
  --green-soft: #f0fdf4;
  --green-border: #a7f3d0;

  --amber: #d97706;
  --amber-soft: #fffbeb;
  --amber-border: #fcd34d;
  --amber-fg: #92400e;

  --card: #f9fafb;
  --border: #e5e7eb;
  --border-strong: #d1d5db;
  --ad: #f3f4f6;

  --shadow-sm: 0 1px 2px rgba(17, 17, 17, 0.04);
  --shadow-md: 0 4px 20px rgba(17, 17, 17, 0.08);
  --shadow-lg: 0 12px 36px rgba(17, 17, 17, 0.1);

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;

  --maxw: 1200px;

  --serif: "Playfair Display", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg-body);
  background: var(--bg);
  font-feature-settings: "cv11", "ss01";
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
  border-radius: 2px;
}

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  color: var(--fg-heading);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0 0 1em;
}

/* ============================================================
   LAYOUT PRIMITIVES
   ============================================================ */

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--fg-muted);
}

.eyebrow--green {
  color: var(--green);
}

.rule {
  height: 1px;
  background: var(--border);
  border: 0;
  margin: 0;
}

/* ============================================================
   NAV
   ============================================================ */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  height: 72px;
}

.logo {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--fg-heading);
  white-space: nowrap;
}

.logo__accent {
  font-weight: 400;
  font-style: italic;
  color: var(--green);
  margin-left: 2px;
}

.nav__links {
  display: flex;
  gap: 32px;
  justify-self: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--fg-heading);
  padding: 8px 0;
  position: relative;
}

.nav__links a:hover {
  color: var(--green);
}

.nav__links a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--green);
}

.nav__right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--fg-heading);
  cursor: pointer;
  transition: border-color .15s, color .15s;
}

.icon-btn:hover {
  border-color: var(--green);
  color: var(--green);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background .15s ease, border-color .15s ease, color .15s ease;
  white-space: nowrap;
  line-height: 1;
  font-family: var(--sans);
}

.btn--primary {
  background: var(--green);
  color: #fff;
}

.btn--primary:hover {
  background: var(--green-dark);
}

.btn--ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--fg-heading);
}

.btn--ghost:hover {
  border-color: var(--fg-heading);
}

.btn--dark {
  background: #111;
  color: #fff;
}

.btn--dark:hover {
  background: #000;
}

/* Mobile nav */
.nav__burger {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--border);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 72px;
  align-items: center;
}

.hero__eyebrow-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.hero__eyebrow-row .dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--green);
}

.hero h1 {
  font-size: clamp(36px, 5.4vw, 64px);
  line-height: 1.02;
  margin-bottom: 22px;
  letter-spacing: -0.02em;
}

.hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--green);
}

.hero__sub {
  font-size: 18px;
  line-height: 1.6;
  color: var(--fg-muted);
  max-width: 52ch;
  margin-bottom: 36px;
}

.hero__search {
  display: flex;
  align-items: stretch;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 6px 6px 22px;
  max-width: 520px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .15s, border-color .15s;
}

.hero__search:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.1);
}

.hero__search input {
  flex: 1;
  border: 0;
  outline: 0;
  font: inherit;
  font-size: 15px;
  color: var(--fg-heading);
  background: transparent;
}

.hero__search input::placeholder {
  color: var(--fg-faint);
}

.hero__stats {
  display: flex;
  gap: 36px;
  margin-top: 44px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.hero__stat .n {
  font-family: var(--serif);
  font-size: 30px;
  color: var(--fg-heading);
  font-weight: 700;
  line-height: 1;
  display: block;
  margin-bottom: 6px;
}

.hero__stat .l {
  font-size: 12px;
  color: var(--fg-muted);
  letter-spacing: 0.04em;
}

/* Hero featured card */
.feature-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--card);
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-md);
}

.feature-card__img {
  position: absolute;
  inset: 0;
}

.feature-card__meta {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  color: #fff;
  z-index: 2;
}

.feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.1) 55%, transparent 100%);
  z-index: 1;
}

.feature-card h3 {
  color: #fff;
  font-size: 28px;
  line-height: 1.1;
  margin: 8px 0 10px;
  max-width: 18ch;
}

.feature-card .tags {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  opacity: 0.9;
}

.feature-card__eyebrow {
  color: #fff;
  opacity: 0.85;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
}

/* Net carbs badge */
.carb-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 2;
  background: #fff;
  border-radius: 999px;
  padding: 8px 14px 8px 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--fg-heading);
  box-shadow: var(--shadow-sm);
}

.carb-badge .n {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--green);
  font-weight: 700;
  line-height: 1;
}

/* ============================================================
   SPONSOR BANNER
   ============================================================ */

.sponsor {
  background: var(--green-soft);
  border-top: 1px solid var(--green-border);
  border-bottom: 1px solid var(--green-border);
}

.sponsor__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
  flex-wrap: wrap;
}

.sponsor__left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.sponsor__label {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--green-dark);
  padding: 4px 10px;
  background: #fff;
  border-radius: 3px;
  border: 1px solid var(--green-border);
}

.sponsor__text {
  font-size: 14.5px;
  color: #065f46;
}

.sponsor__text strong {
  color: var(--green-dark);
  font-weight: 600;
}

.sponsor__link {
  font-size: 14px;
  font-weight: 600;
  color: var(--green-dark);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.sponsor__link:hover {
  color: var(--green);
}

/* ============================================================
   AD PLACEHOLDERS
   ============================================================ */

.ad {
  background: var(--ad);
  border: 1px dashed var(--border-strong);
  display: grid;
  place-items: center;
  color: var(--fg-faint);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  text-align: center;
  padding: 10px;
}

.ad span {
  display: block;
}

.ad small {
  display: block;
  font-size: 10px;
  color: var(--fg-faint);
  margin-top: 4px;
  letter-spacing: 0.04em;
  text-transform: none;
}

.ad--leaderboard {
  width: 728px;
  height: 90px;
  max-width: 100%;
  margin: 0 auto;
}

.ad--rect {
  width: 336px;
  height: 280px;
  max-width: 100%;
}

.ad--medrect {
  width: 300px;
  height: 250px;
  max-width: 100%;
}

.ad-row {
  padding: 40px 0;
  display: flex;
  justify-content: center;
}

/* ============================================================
   CATEGORY STRIP
   ============================================================ */

.cats {
  border-bottom: 1px solid var(--border);
  background: #fff;
}

.cats__scroll {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 4px 0;
  scrollbar-width: none;
}

.cats__scroll::-webkit-scrollbar { display: none; }

.cats a {
  padding: 18px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-body);
  white-space: nowrap;
  position: relative;
}

.cats a:hover {
  color: var(--fg-heading);
}

.cats a.is-active {
  color: var(--fg-heading);
  font-weight: 600;
}

.cats a.is-active::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: -1px;
  height: 2px;
  background: var(--green);
}

/* ============================================================
   SECTION HEADINGS
   ============================================================ */

.section {
  padding: 80px 0;
}

.section--tight {
  padding: 56px 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
  gap: 24px;
  flex-wrap: wrap;
}

.section-head h2 {
  font-size: clamp(28px, 3.2vw, 38px);
  letter-spacing: -0.015em;
}

.section-head h2 em {
  font-style: italic;
  font-weight: 400;
  color: var(--green);
}

.section-head .link {
  font-size: 14px;
  font-weight: 600;
  color: var(--fg-heading);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--fg-heading);
}

.section-head .link:hover {
  color: var(--green);
  border-color: var(--green);
}

.section-head__sub {
  margin-top: 10px;
  color: var(--fg-muted);
  font-size: 15px;
}

/* ============================================================
   RECIPE CARD
   ============================================================ */

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 24px;
}

.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
  position: relative;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.card__img {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--card);
}

.card__img .ph {
  position: absolute;
  inset: 0;
  transition: transform .4s ease;
}

.card:hover .card__img .ph {
  transform: scale(1.04);
}

.card__body {
  padding: 18px 4px 4px;
}

.card__cat {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 600;
  margin-bottom: 8px;
}

.card h3 {
  font-size: 20px;
  line-height: 1.25;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.card__meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--fg-muted);
  align-items: center;
}

.card__meta .sep {
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: var(--border-strong);
}

/* Sponsored tint */
.card--sponsored .card__img {
  outline: 1px solid var(--green-border);
  outline-offset: -1px;
}

/* ============================================================
   IMAGE PLACEHOLDERS (striped + label)
   ============================================================ */

.ph {
  background:
    repeating-linear-gradient(135deg,
      rgba(17,17,17,0.035) 0 14px,
      rgba(17,17,17,0.01) 14px 28px),
    var(--ph-tint, #eef2ee);
  display: grid;
  place-items: center;
  color: rgba(17,17,17,0.42);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-align: center;
  padding: 16px;
}

.ph[data-tint="warm"]    { --ph-tint: #f4eee6; color: rgba(90, 58, 20, 0.5); }
.ph[data-tint="sage"]    { --ph-tint: #e9efe6; color: rgba(33, 66, 36, 0.55); }
.ph[data-tint="amber"]   { --ph-tint: #fbf0dc; color: rgba(120, 72, 10, 0.55); }
.ph[data-tint="rose"]    { --ph-tint: #f4e6e2; color: rgba(120, 40, 40, 0.5); }
.ph[data-tint="char"]    { --ph-tint: #e6e6e3; color: rgba(40, 40, 40, 0.5); }
.ph[data-tint="olive"]   { --ph-tint: #ebeede; color: rgba(70, 80, 30, 0.55); }
.ph[data-tint="ocean"]   { --ph-tint: #e3ecee; color: rgba(30, 70, 85, 0.5); }

.ph__stamp {
  padding: 6px 10px;
  background: rgba(255,255,255,0.75);
  border-radius: 3px;
  backdrop-filter: blur(2px);
  max-width: 85%;
}

/* ============================================================
   QETOE SECTION (green-tinted)
   ============================================================ */

.qetoe-section {
  background: var(--green-soft);
  padding: 80px 0;
  border-top: 1px solid var(--green-border);
  border-bottom: 1px solid var(--green-border);
}

.qetoe-section .section-head h2 {
  position: relative;
  padding-bottom: 14px;
}

.qetoe-section .section-head h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48px;
  height: 3px;
  background: var(--green);
  border-radius: 2px;
}

/* ============================================================
   WHY LOW CARB
   ============================================================ */

.why {
  background: var(--card);
}

.why__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 72px;
  align-items: center;
}

.why__copy h2 {
  font-size: clamp(28px, 3.2vw, 38px);
  margin-bottom: 20px;
}

.why__copy h2 em {
  font-style: italic;
  font-weight: 400;
  color: var(--green);
}

.why__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.why__stat {
  padding: 36px 24px;
  border-right: 1px solid var(--border);
}

.why__stat:last-child {
  border-right: 0;
}

.why__stat .big {
  font-family: var(--serif);
  font-size: 52px;
  color: var(--green);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  display: block;
}

.why__stat .lbl {
  font-size: 13px;
  color: var(--fg-heading);
  font-weight: 600;
  line-height: 1.3;
}

.why__stat .note {
  font-size: 13px;
  color: var(--fg-muted);
  margin-top: 6px;
  line-height: 1.5;
}

/* ============================================================
   EMAIL SIGNUP (dark)
   ============================================================ */

.signup {
  background: #111;
  color: #fff;
  padding: 80px 0;
}

.signup__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 60px;
  align-items: center;
}

.signup h2 {
  color: #fff;
  font-size: clamp(30px, 3.4vw, 44px);
  margin-bottom: 18px;
  line-height: 1.05;
}

.signup h2 em {
  font-style: italic;
  font-weight: 400;
  color: #6ee7b7;
}

.signup__sub {
  color: #d1d5db;
  font-size: 16px;
  max-width: 44ch;
}

.signup__form {
  display: flex;
  gap: 10px;
  padding: 6px;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 999px;
  max-width: 480px;
}

.signup__form input {
  flex: 1;
  border: 0;
  background: transparent;
  color: #fff;
  padding: 12px 18px;
  font: inherit;
  font-size: 15px;
  outline: none;
}

.signup__form input::placeholder {
  color: #6b7280;
}

.signup__small {
  margin-top: 16px;
  font-size: 12.5px;
  color: #9ca3af;
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 64px 0 40px;
  font-size: 14px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer h4 {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-heading);
  margin-bottom: 16px;
  font-weight: 600;
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer a {
  color: var(--fg-body);
}

.footer a:hover {
  color: var(--green);
}

.footer__about {
  max-width: 32ch;
}

.footer__about p {
  color: var(--fg-muted);
  font-size: 13.5px;
  line-height: 1.6;
  margin: 12px 0 0;
}

.footer__bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--fg-muted);
}

.footer__qetoe {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer__qetoe .dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--green);
}

/* ============================================================
   BREADCRUMBS
   ============================================================ */

.crumbs {
  padding: 22px 0;
  font-size: 13px;
  color: var(--fg-muted);
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
}

.crumbs a:hover {
  color: var(--green);
}

.crumbs .sep {
  color: var(--fg-faint);
}

.crumbs .current {
  color: var(--fg-heading);
  font-weight: 500;
}

/* ============================================================
   RECIPE PAGE
   ============================================================ */

.recipe-hero {
  padding: 40px 0 24px;
}

.recipe-hero__top {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

.recipe-hero__img {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-md);
}

.recipe-hero__cat {
  color: var(--green);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 14px;
}

.recipe-hero h1 {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin-bottom: 20px;
}

.recipe-hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--green);
}

.rating {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--fg-body);
  margin-bottom: 28px;
}

.rating .stars {
  color: #e0a800;
  letter-spacing: 2px;
  font-size: 16px;
}

.rating strong {
  color: var(--fg-heading);
}

.recipe-hero__netcarbs {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px 28px;
  background: var(--green-soft);
  border-left: 4px solid var(--green);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-bottom: 28px;
}

.recipe-hero__netcarbs .big {
  font-family: var(--serif);
  font-size: 56px;
  color: var(--green);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}

.recipe-hero__netcarbs .lbl {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--green-dark);
  line-height: 1.5;
  margin-bottom: 6px;
}

.recipe-hero__netcarbs .sub {
  font-size: 13.5px;
  color: #065f46;
}

.recipe-hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* stats bar */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-top: 48px;
}

.stats-bar__cell {
  padding: 24px;
  border-right: 1px solid var(--border);
  text-align: center;
}

.stats-bar__cell:last-child { border-right: 0; }

.stats-bar__cell .l {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 8px;
  font-weight: 600;
}

.stats-bar__cell .v {
  font-family: var(--serif);
  font-size: 24px;
  color: var(--fg-heading);
  font-weight: 700;
  line-height: 1;
}

.stats-bar__cell .u {
  font-size: 12px;
  color: var(--fg-muted);
  margin-top: 4px;
}

/* Two column body */
.recipe-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 64px;
  padding: 56px 0 80px;
}

.recipe-body h2 {
  font-size: 28px;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.recipe-body h3 {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
  margin: 32px 0 14px;
}

.recipe-body p {
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--fg-body);
}

.swap-callout {
  background: var(--green-soft);
  border-left: 4px solid var(--green);
  padding: 22px 26px;
  margin: 28px 0 36px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.swap-callout .l {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green-dark);
  font-weight: 700;
  margin-bottom: 8px;
}

.swap-callout .b {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--green-dark);
  line-height: 1.35;
  letter-spacing: -0.005em;
}

.swap-callout .b strong {
  color: var(--green);
  font-weight: 700;
}

/* Serves adjuster + ingredients */
.serves-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 20px 0 22px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.serves-row__label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
  font-weight: 600;
}

.serves-stepper {
  display: inline-flex;
  align-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px;
  gap: 6px;
}

.serves-stepper button {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 0;
  background: var(--card);
  color: var(--fg-heading);
  cursor: pointer;
  font-size: 17px;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: background .15s;
}

.serves-stepper button:hover {
  background: var(--green);
  color: #fff;
}

.serves-stepper .v {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--fg-heading);
  min-width: 32px;
  text-align: center;
}

.ingredients {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.ingredients li {
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--fg-body);
  cursor: pointer;
}

.ingredients li:last-child { border-bottom: 0; }

.ingredients li .check {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1.5px solid var(--border-strong);
  flex-shrink: 0;
  background: #fff;
  margin-top: 2px;
  transition: background .15s, border-color .15s;
  display: grid;
  place-items: center;
}

.ingredients li .check::after {
  content: "";
  width: 8px;
  height: 4px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translate(1px, -1px);
  opacity: 0;
}

.ingredients li:hover .check {
  border-color: var(--green);
}

.ingredients li.is-checked {
  color: var(--fg-faint);
  text-decoration: line-through;
}

.ingredients li.is-checked .check {
  background: var(--green);
  border-color: var(--green);
}

.ingredients li.is-checked .check::after {
  opacity: 1;
}

.ing__qty {
  font-family: var(--serif);
  color: var(--fg-heading);
  font-weight: 600;
  min-width: 80px;
  flex-shrink: 0;
}

.ingredients li.is-checked .ing__qty {
  color: var(--fg-faint);
}

.ing__sponsor {
  display: inline-block;
  background: var(--green);
  color: #fff;
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 3px;
  margin-left: 8px;
  font-weight: 700;
  vertical-align: middle;
  font-family: var(--sans);
}

/* Method steps */
.method {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step;
}

.method li {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--border);
  counter-increment: step;
}

.method li:last-child { border-bottom: 0; }

.method li::before {
  content: counter(step);
  font-family: var(--serif);
  font-size: 36px;
  color: var(--green);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}

.method__step h4 {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--fg-heading);
  display: flex;
  gap: 10px;
  align-items: center;
}

.method__step h4 .time {
  font-weight: 500;
  color: var(--green);
  font-size: 12px;
  background: var(--green-soft);
  padding: 3px 9px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.method__step p {
  font-size: 15.5px;
  line-height: 1.7;
  margin: 0 0 6px;
}

.method__step .cue {
  font-size: 13px;
  color: var(--fg-muted);
  font-style: italic;
}

/* Chef's tip */
.tip {
  background: var(--amber-soft);
  border: 1px solid var(--amber-border);
  border-radius: var(--radius-md);
  padding: 22px 26px;
  margin: 36px 0;
}

.tip .l {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber-fg);
  font-weight: 700;
  margin-bottom: 8px;
}

.tip h4 {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--amber-fg);
  margin-bottom: 8px;
  letter-spacing: -0.005em;
}

.tip p {
  font-size: 15px;
  color: #78350f;
  margin: 0;
  line-height: 1.65;
}

/* Nutrition table */
.nutrition {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #fff;
  margin-top: 12px;
}

.nutrition__cell {
  padding: 22px 16px;
  border-right: 1px solid var(--border);
  text-align: center;
}

.nutrition__cell:last-child { border-right: 0; }

.nutrition__cell.is-hl {
  background: var(--green-soft);
}

.nutrition__cell .l {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
  font-weight: 600;
  margin-bottom: 8px;
}

.nutrition__cell.is-hl .l {
  color: var(--green-dark);
}

.nutrition__cell .v {
  font-family: var(--serif);
  font-size: 24px;
  color: var(--fg-heading);
  font-weight: 700;
  line-height: 1;
}

.nutrition__cell.is-hl .v {
  color: var(--green);
}

/* Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.sidebar__sticky {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.qetoe-card {
  background: var(--green-soft);
  border: 1px solid var(--green-border);
  border-radius: var(--radius-md);
  padding: 22px;
}

.qetoe-card .l {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green-dark);
  font-weight: 700;
  margin-bottom: 12px;
}

.qetoe-card__product {
  display: flex;
  gap: 14px;
  margin-bottom: 16px;
}

.qetoe-card__thumb {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  background: #fff;
  border: 1px solid var(--green-border);
  flex-shrink: 0;
  overflow: hidden;
}

.qetoe-card__info h4 {
  font-family: var(--serif);
  font-size: 18px;
  margin-bottom: 6px;
  color: var(--green-dark);
  line-height: 1.2;
}

.qetoe-card__info .carbs {
  font-size: 13px;
  color: #065f46;
}

.qetoe-card__info .carbs strong {
  color: var(--green);
  font-weight: 600;
}

.qetoe-card .btn {
  width: 100%;
  justify-content: center;
}

.qetoe-card--neutral {
  background: var(--card);
  border-color: var(--border);
}

.qetoe-card--neutral .l {
  color: var(--fg-muted);
}

.qetoe-card--neutral h4 {
  color: var(--fg-heading);
}

/* Related list */
.related {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
}

.related h4 {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
  font-weight: 700;
  margin-bottom: 16px;
}

.related__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.related__item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.related__item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.related__thumb {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
}

.related__info h5 {
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.25;
  margin-bottom: 6px;
  color: var(--fg-heading);
  letter-spacing: -0.005em;
  font-weight: 700;
}

.related__carbs {
  font-size: 12px;
  color: var(--green);
  font-weight: 600;
}

/* ============================================================
   RECIPE LISTING
   ============================================================ */

.listing-hero {
  padding: 72px 0 40px;
  border-bottom: 1px solid var(--border);
}

.listing-hero h1 {
  font-size: clamp(36px, 4.6vw, 56px);
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.listing-hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--green);
}

.listing-hero p {
  font-size: 17px;
  color: var(--fg-muted);
  max-width: 60ch;
}

.filters {
  position: sticky;
  top: 72px;
  z-index: 10;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}

.filters__tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.filters__tabs::-webkit-scrollbar { display: none; }

.filter-tab {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--fg-body);
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all .15s;
}

.filter-tab:hover {
  background: var(--card);
}

.filter-tab.is-active {
  background: var(--green);
  color: #fff;
  font-weight: 600;
}

.filters__row2 {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
  flex-wrap: wrap;
  font-size: 13px;
}

.filters__sort {
  display: flex;
  gap: 18px;
  align-items: center;
  color: var(--fg-muted);
}

.filters__sort a {
  color: var(--fg-muted);
  font-weight: 500;
  padding: 4px 0;
  position: relative;
}

.filters__sort a.is-active {
  color: var(--fg-heading);
  font-weight: 600;
}

.filters__count {
  font-size: 13px;
  color: var(--fg-muted);
}

.listing-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 56px;
  padding: 48px 0 80px;
}

.listing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px 24px;
}

.load-more {
  text-align: center;
  padding: 48px 0 0;
}

.load-more__count {
  font-size: 13px;
  color: var(--fg-muted);
  margin-top: 14px;
}

/* ============================================================
   ABOUT
   ============================================================ */

.about-hero {
  padding: 88px 0 56px;
  border-bottom: 1px solid var(--border);
}

.about-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 72px;
  align-items: center;
}

.about-hero h1 {
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.about-hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--green);
}

.about-hero p {
  font-size: 18px;
  line-height: 1.65;
  color: var(--fg-muted);
  max-width: 52ch;
}

.about-portrait {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.about-body {
  padding: 72px 0;
}

.about-body__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 64px;
}

.about-body h2 {
  font-size: 30px;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.about-body p {
  font-size: 16.5px;
  line-height: 1.8;
  color: var(--fg-body);
  margin-bottom: 20px;
}

.about-body__label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 700;
  margin-bottom: 12px;
}

.disclosure {
  background: var(--green-soft);
  border: 1px solid var(--green-border);
  border-radius: var(--radius-md);
  padding: 32px;
  margin: 48px 0;
}

.disclosure h3 {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--green-dark);
  margin-bottom: 14px;
}

.disclosure p {
  color: #065f46;
  font-size: 15.5px;
  line-height: 1.7;
  margin: 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 980px) {
  .hero__grid,
  .why__grid,
  .signup__inner,
  .recipe-hero__top,
  .recipe-body,
  .listing-body,
  .about-hero__grid,
  .about-body__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .grid,
  .listing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 20px;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .nav__links { display: none; }
  .nav__burger { display: inline-flex; }
  .nav__inner { grid-template-columns: auto 1fr auto; height: 64px; }

  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .stats-bar__cell:nth-child(2) { border-right: 0; }
  .stats-bar__cell:nth-child(1),
  .stats-bar__cell:nth-child(2) { border-bottom: 1px solid var(--border); }

  .why__stats { grid-template-columns: 1fr; }
  .why__stat { border-right: 0; border-bottom: 1px solid var(--border); }
  .why__stat:last-child { border-bottom: 0; }

  .section { padding: 56px 0; }
  .hero { padding: 48px 0 40px; }

  .recipe-hero__netcarbs .big { font-size: 44px; }

  .ad--leaderboard { width: 320px; height: 50px; }

  .method li { grid-template-columns: 48px minmax(0, 1fr); gap: 16px; }
  .method li::before { font-size: 28px; }
}

@media (max-width: 640px) {
  .grid,
  .listing-grid {
    grid-template-columns: 1fr;
  }
  .footer__grid { grid-template-columns: 1fr; }
  .nutrition { grid-template-columns: repeat(2, 1fr); }
  .nutrition__cell:nth-child(2) { border-right: 0; }
  .nutrition__cell:nth-child(1),
  .nutrition__cell:nth-child(2) { border-bottom: 1px solid var(--border); }
  .container { padding: 0 20px; }
  .hero__stats { flex-wrap: wrap; gap: 20px 32px; }
}

/* ============================================================
   site-v2.css — multi-category additions
   Layered over site.css for mega menu, meal strip, pills,
   category page, guides, 5-col footer.
   ============================================================ */

/* ---------- MEGA MENU ---------- */
.has-mega { position: relative; }
.has-mega > a::after {
  content: "";
  display: inline-block;
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  margin-left: 6px;
  opacity: 0.6;
  transform: translateY(-2px);
}
.mega {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: min(1040px, 92vw);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(17,17,17,0.14);
  padding: 32px 36px 28px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1.15fr;
  gap: 36px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms;
  z-index: 60;
}
.mega::before {
  /* hover bridge so cursor can cross gap */
  content: "";
  position: absolute;
  top: -20px; left: 0; right: 0; height: 24px;
}
.has-mega:hover .mega,
.has-mega:focus-within .mega {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.mega h5 {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin: 0 0 14px;
}
.mega ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.mega ul a {
  text-decoration: none;
  color: var(--fg-heading);
  font-size: 14.5px;
  font-weight: 500;
  transition: color 120ms;
}
.mega ul a:hover { color: var(--green); }
.mega__qetoe {
  background: linear-gradient(160deg, #f0fdf4, #ecfdf5);
  border-radius: 10px;
  padding: 20px 22px;
  margin: -8px -8px -8px 0;
}
.mega__qetoe h5 { color: var(--green-dark); }
.mega__cta {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--green-dark);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.mega__cta:hover { text-decoration: underline; }

/* ---------- CATEGORY PILLS (recipe page + cards) ---------- */
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 22px;
}
.pill {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  background: #F3F4F6;
  color: #555;
  text-decoration: none;
  transition: background 120ms, color 120ms, transform 120ms;
  border: 1px solid transparent;
}
.pill:hover { background: #E5E7EB; color: #111; transform: translateY(-1px); }
.pill--meal {
  background: #059669;
  color: #fff;
}
.pill--meal:hover { background: var(--green-dark); color: #fff; }
.pill--qetoe {
  background: #ecfdf5;
  color: var(--green-dark);
  border-color: var(--green-border);
}
.pill--qetoe:hover { background: var(--green-soft); color: var(--green-dark); }

/* pill inside recipe cards */
.card__pill {
  display: inline-block;
  background: #059669;
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  margin-right: 8px;
  vertical-align: baseline;
}

/* ---------- CATEGORY LINKS (recipe page bottom) ---------- */
.cat-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 20px;
  padding: 24px 0 8px;
  margin: 32px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cat-links a {
  text-decoration: none;
  color: var(--fg-heading);
  font-size: 15px;
  font-weight: 600;
  padding: 10px 0;
  transition: color 120ms;
}
.cat-links a:hover { color: var(--green); }
.cat-links a span { color: var(--green); margin-left: 6px; }

/* ---------- HOMEPAGE: TWO CATEGORY STRIPS ---------- */
.meal-strip {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 28px 0 26px;
}
.meal-strip__inner {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.meal-strip__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--fg-heading);
  padding: 10px 4px;
  border-radius: 12px;
  transition: background 140ms, transform 140ms;
  position: relative;
}
.meal-strip__item:hover { background: #f9fafb; transform: translateY(-2px); }
.meal-strip__icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: #f0fdf4;
  color: var(--green-dark);
  font-size: 26px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
}
.meal-strip__label {
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.meal-strip__item.is-active .meal-strip__label { color: var(--green-dark); }
.meal-strip__item.is-active::after {
  content: "";
  position: absolute;
  bottom: -2px; left: 24%; right: 24%;
  height: 2px;
  background: var(--green);
  border-radius: 2px;
}

.sub-strip {
  background: #fafafa;
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.sub-strip__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 14px;
  font-size: 13px;
}
.sub-strip a {
  color: var(--fg-body);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  font-weight: 500;
  transition: all 120ms;
}
.sub-strip a:hover { color: var(--green-dark); border-color: var(--green-border); background: var(--green-soft); }

/* ---------- BROWSE BY MEAL (homepage) ---------- */
.browse-meal {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.browse-meal__card {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  display: block;
  isolation: isolate;
}
.browse-meal__card .ph {
  position: absolute;
  inset: 0;
  height: 100%;
}
.browse-meal__card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,0.72) 100%);
  z-index: 1;
}
.browse-meal__inner {
  position: absolute;
  inset: auto 22px 22px 22px;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}
.browse-meal__title {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 2px 16px rgba(0,0,0,0.3);
}
.browse-meal__count {
  background: rgba(255,255,255,0.95);
  color: var(--fg-heading);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

/* ---------- 5-COLUMN FOOTER ---------- */
.footer__grid--5 {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr;
  gap: 40px;
}

/* ---------- CATEGORY PAGE ---------- */
.cat-hero {
  padding: 54px 0 44px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #fafafa, #fff);
}
.cat-hero__inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 60px;
  align-items: end;
}
.cat-hero h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 56px;
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--fg-heading);
}
.cat-hero h1 em { font-style: italic; color: var(--green-dark); }
.cat-hero__lede {
  margin-top: 18px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--fg-body);
  max-width: 58ch;
}
.cat-hero__stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  border-left: 1px solid var(--border);
  padding-left: 28px;
}
.cat-hero__stat { padding: 8px 0; }
.cat-hero__stat .n {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 700;
  color: var(--green-dark);
  display: block;
  line-height: 1;
}
.cat-hero__stat .l {
  font-size: 12.5px;
  color: var(--fg-muted);
  margin-top: 6px;
  display: block;
}

.rel-cats {
  background: #fafafa;
  padding: 44px 0 56px;
  border-top: 1px solid var(--border);
}
.rel-cats h3 {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin: 0 0 18px;
}
.rel-cats__row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.rel-cats__row a {
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  text-decoration: none;
  color: var(--fg-heading);
  font-size: 14px;
  font-weight: 500;
  transition: all 120ms;
}
.rel-cats__row a:hover {
  border-color: var(--green);
  color: var(--green-dark);
  background: var(--green-soft);
}

/* ---------- GUIDES ---------- */
.guide-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 160ms, box-shadow 160ms, border-color 160ms;
}
.guide-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}
.guide-card__img { aspect-ratio: 16 / 9; background: #f3f4f6; }
.guide-card__body { padding: 22px 22px 24px; }
.guide-card__cat {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: 10px;
}
.guide-card h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.22;
  color: var(--fg-heading);
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.guide-card p {
  color: var(--fg-body);
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0 0 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.guide-card__meta {
  font-size: 12.5px;
  color: var(--fg-muted);
  font-weight: 500;
}

/* ---------- UNIT TOGGLE ---------- */
.ing-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 40px 0 16px;
}
.unit-toggle {
  display: inline-flex;
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}
.unit-toggle button {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  border: none;
  background: transparent;
  color: #888;
  padding: 6px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease;
  letter-spacing: 0.01em;
}
.unit-toggle button:hover { color: #333; }
.unit-toggle button.is-active {
  background: #111;
  color: #fff;
}

/* ---------- SMALL SCREENS ---------- */
@media (max-width: 960px) {
  .mega { display: none; } /* would be a mobile drawer in prod */
  .meal-strip__inner { grid-template-columns: repeat(3, 1fr); }
  .sub-strip__inner { justify-content: flex-start; }
  .browse-meal { grid-template-columns: repeat(2, 1fr); }
  .footer__grid--5 { grid-template-columns: 1fr 1fr; }
  .cat-hero__inner { grid-template-columns: 1fr; gap: 28px; }
  .cat-hero__stats { border-left: none; border-top: 1px solid var(--border); padding: 20px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .cat-hero h1 { font-size: 42px; }
  .cat-links { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .meal-strip__inner { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .meal-strip__icon { width: 48px; height: 48px; font-size: 22px; }
  .meal-strip__label { font-size: 12px; }
  .browse-meal { grid-template-columns: 1fr; }
  .footer__grid--5 { grid-template-columns: 1fr; }
}

/* ---------- HOMEPAGE: BROWSE BY MEAL (3×2 editorial grid) ---------- */
.browse-meals {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 72px 0 80px;
}
.browse-meals__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin: 0 0 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.browse-meals__head > div { max-width: 640px; }
.browse-meals__title {
  font-family: var(--serif);
  font-size: clamp(36px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.05;
  margin: 10px 0 0;
  letter-spacing: -0.015em;
}
.browse-meals__title em {
  font-style: italic;
  font-weight: 400;
  color: var(--green);
}
.browse-meals__sub {
  font-size: 15px;
  color: var(--fg-muted);
  max-width: 48ch;
  margin: 0 0 4px;
  text-align: right;
  flex-shrink: 0;
}

.browse-meals__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px 24px;
}

.meal-tile {
  display: block;
  text-decoration: none;
  color: var(--fg-heading);
}
.meal-tile__img {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 2px;
  margin-bottom: 18px;
}
.meal-tile__img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(17,17,17,0);
  transition: background 200ms ease;
  pointer-events: none;
}
.meal-tile:hover .meal-tile__img::after { background: rgba(17,17,17,0.05); }
.meal-tile__img.ph {
  transition: transform 600ms cubic-bezier(.2,.7,.2,1);
}
.meal-tile:hover .meal-tile__img.ph { transform: scale(1.03); }

.meal-tile__body {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 0 2px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}
.meal-tile__lhs {
  display: flex;
  align-items: baseline;
  gap: 12px;
  min-width: 0;
}
.meal-tile__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  font-weight: 400;
  color: var(--green);
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.meal-tile__name {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--fg-heading);
  margin: 0;
  letter-spacing: -0.01em;
  line-height: 1.1;
  white-space: nowrap;
}
.meal-tile__meta {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  flex-shrink: 0;
}
.meal-tile__count {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--fg-heading);
}
.meal-tile__lbl {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.meal-tile:hover .meal-tile__name { color: var(--green-dark); }

@media (max-width: 1024px) {
  .browse-meals__head { flex-direction: column; align-items: flex-start; }
  .browse-meals__sub { text-align: left; }
}
@media (max-width: 720px) {
  .browse-meals { padding: 48px 0 56px; }
  .browse-meals__grid { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
  .meal-tile__name { font-size: 18px; }
  .meal-tile__count { font-size: 16px; }
}
@media (max-width: 420px) {
  .browse-meals__grid { grid-template-columns: 1fr; }
}

/* ============================================================
   V3 FIXES — mobile drawer nav, inline Qetoe card, byline,
   mobile overflow fixes
   ============================================================ */

/* --- Burger button (hidden on desktop; shown ≤980px) --- */
@media (min-width: 981px) {
  .nav__burger { display: none !important; }
}
.nav__burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  color: var(--fg-heading);
}
.nav__burger svg { display: block; }
.nav__burger .icon-close { display: none; }
body.drawer-open .nav__burger .icon-bars { display: none; }
body.drawer-open .nav__burger .icon-close { display: block; }

/* --- Drawer panel --- */
.drawer {
  position: fixed;
  inset: 0;
  top: 64px;                 /* sits under the 64px mobile header */
  background: #fff;
  z-index: 60;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 8px 20px 48px;
  opacity: 0;
  transform: translateY(-8px);
  visibility: hidden;
  transition: opacity .22s ease, transform .22s ease, visibility 0s linear .22s;
}
body.drawer-open .drawer {
  opacity: 1;
  transform: none;
  visibility: visible;
  transition: opacity .22s ease, transform .22s ease;
}
body.drawer-open { overflow: hidden; }

.drawer__group { border-bottom: 1px solid var(--border); padding: 20px 0; }
.drawer__group h5 {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin: 0 0 12px;
}
.drawer__group ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
.drawer__group ul a {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  color: var(--fg-heading);
  text-decoration: none;
}
.drawer__group ul a:active { color: var(--green-dark); }
.drawer__group--qetoe { background: var(--green-soft); margin: 0 -20px; padding: 20px; border-bottom: 1px solid var(--green-border); }
.drawer__group--qetoe h5 { color: var(--green-dark); }
.drawer__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--green-dark);
  text-decoration: none;
}
.drawer__pages { padding: 20px 0; display: grid; gap: 14px; }
.drawer__pages a {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--fg-heading);
  text-decoration: none;
}
.drawer__foot { padding-top: 24px; }
.drawer__foot .btn { width: 100%; justify-content: center; }

/* --- Recipe byline --- */
.byline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 22px;
}
.byline__avatar {
  width: 40px; height: 40px;
  border-radius: 999px;
  background: var(--green-soft);
  border: 1px solid var(--green-border);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-weight: 700; color: var(--green-dark);
  flex: 0 0 auto;
}
.byline__meta { font-size: 13.5px; color: var(--fg-muted); line-height: 1.45; }
.byline__meta a { color: var(--fg-heading); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--border-strong); }
.byline__meta a:hover { color: var(--green-dark); border-color: var(--green); }

/* --- Inline Qetoe product card (main column, after ingredients) --- */
.qetoe-card--inline { margin: 36px 0 8px; }

/* --- Mobile overflow fixes ---
   Grid `1fr` tracks size to min-content, and email/search inputs have a large
   intrinsic width — so single-column grids were growing past the viewport.
   minmax(0,1fr) caps the track; flex: 1 1 0 stops the input dictating width. --- */
.signup__form input,
.hero__search input { min-width: 0; flex: 1 1 0; width: 0; }
.signup__form, .hero__search { max-width: 100%; }

@media (max-width: 980px) {
  .hero__grid,
  .why__grid,
  .signup__inner,
  .recipe-hero__top,
  .recipe-body,
  .listing-body,
  .about-hero__grid,
  .about-body__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Drawer only ever needed where nav links are hidden */
@media (min-width: 981px) {
  .drawer { display: none; }
}

/* Small screens: the header can't fit logo + search + Subscribe + burger.
   The Subscribe CTA lives in the drawer footer, so drop it from the header. */
@media (max-width: 640px) {
  .nav__right > .btn--primary { display: none; }
  .nav__right { gap: 10px; }
}

/* --- Author bio layout --- */
.author-bio__grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}
@media (max-width: 720px) {
  .author-bio__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .author-bio__grid > .ph { max-width: 220px; }
}

/* ============================================================
   WORDPRESS ADAPTATIONS
   ============================================================ */

/* Real images inside design containers (prototype used .ph placeholders) */
.card__img img,
.feature-card__img img,
.meal-tile__img img,
.recipe-hero__img img,
.related__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.card__img, .meal-tile__img { aspect-ratio: 4 / 3; overflow: hidden; }
.feature-card__img { overflow: hidden; }
.recipe-hero__img { overflow: hidden; }

/* Header search reveal */
.nav__search { border-top: 1px solid var(--border); background: #fff; padding: 14px 0; }
.nav__search[hidden] { display: none; }

/* Pagination (the_posts_pagination) */
.load-more .nav-links { display: flex; gap: 8px; justify-content: center; }
.load-more .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 40px; height: 40px; padding: 0 12px;
	border: 1px solid var(--border); border-radius: 999px;
	font: 600 13.5px/1 var(--sans); color: var(--fg-heading); text-decoration: none;
	background: #fff;
}
.load-more .page-numbers.current { background: var(--green); border-color: var(--green); color: #fff; }
.load-more .page-numbers:hover:not(.current) { border-color: var(--green); color: var(--green-dark); }

/* Page content typography */
.page-content { font-size: 16.5px; line-height: 1.75; color: var(--fg-body); }
.page-content h2, .page-content h3 { font-family: var(--serif); color: var(--fg-heading); margin: 1.6em 0 .6em; }
.page-content p { margin: 0 0 1.2em; }
.page-content a { color: var(--green-dark); }
.page-content img { max-width: 100%; height: auto; border-radius: 2px; }

/* Post editorial content on recipe pages (intro paragraphs around WPRM card) */
.recipe-body main > p { font-size: 16.5px; line-height: 1.75; color: var(--fg-body); margin-bottom: 20px; }
.recipe-body main > p:first-of-type { font-size: 18px; }
.recipe-body main h2 { font-family: var(--serif); }

/* Related grid inside recipe main column */
.grid--related { grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 980px) { .grid--related { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid--related { grid-template-columns: 1fr; } }

/* WordPress core classes (quality floor) */
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { display: block; margin: 0 auto 16px; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font: 400 13px/1.5 var(--sans); color: var(--fg-muted); padding-top: 8px; }
.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; width: 1px; overflow: hidden; position: absolute !important;
	word-wrap: normal !important;
}
.sticky {} .bypostauthor {} .gallery-caption {}

/* Print: the recipe is the page */
@media print {
	.nav, .drawer, .sponsor, .sidebar, .signup, .footer, .crumbs,
	.recipe-hero__actions, .cat-links, .grid--related, .nav__search { display: none !important; }
	.recipe-body { grid-template-columns: 1fr; }
	body { background: #fff; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}


/* LCR: disable WPRM expandable containers (Meadow template) --------------
   Meadow wraps the Ingredients/Equipment box in a collapsible "expandable"
   container with a chevron toggle. We don't want a collapsible ingredient
   list, so hide the toggle and force the container to always render open. */
.wprm-internal-container-toggle,
.wprm-expandable-button,
.wprm-expandable-container .wprm-expandable-button,
.wprm-expandable-container-separated .wprm-expandable-button { display: none !important; }
.wprm-internal-container.wprm-expandable-collapsed {
    max-height: none !important; overflow: visible !important;
    -webkit-mask-image: none !important; mask-image: none !important;
}
.wprm-expandable-container.wprm-expandable-collapsed .wprm-expandable-content,
.wprm-expandable-separated-content-collapsed { display: block !important; }
