/*
Theme Name: Banana Bread Fusion
Theme URI: https://bananabreadfusion.com
Author: Banana Bread Fusion
Description: All-in-one recipe theme for Banana Bread Fusion. Boxed layout, 4 languages (EN/DE/FR/ES), recipes with timers, scalable ingredients, reviews, thumbs, view counts, affiliate ingredient shop with one-click carts for 5 countries, ad slots, and built-in SEO (schema, sitemap.xml, robots.txt, llms.txt). No plugins required.
Version: 1.6.2
Requires at least: 6.3
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: bananabreadfusion
*/

/* ---------- Fonts (self-hosted, latin + latin-ext for DE/FR/ES) ---------- */
@font-face { font-family: "Poppins"; font-weight: 700; font-style: normal; font-display: swap; src: url(assets/fonts/poppins-700.woff) format("woff"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-style: normal; font-display: swap; src: url(assets/fonts/poppins-500.woff) format("woff"); }
@font-face { font-family: "Lora"; font-weight: 700; font-style: italic; font-display: swap; src: url(assets/fonts/lora-700i.woff) format("woff"); }
@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url(assets/fonts/inter-400.woff) format("woff"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url(assets/fonts/inter-600.woff) format("woff"); }

/* ---------- Tokens ---------- */
:root {
  --cream: #FFF6E5;
  --outer: #F3E2C2;
  --white: #FFFFFF;
  --cocoa: #3B2314;
  --crust: #8B4A1C;
  --caramel: #D08A3E;
  --yellow: #FFD23F;
  --spice: #E4572E;
  --pistachio: #8DB255;
  --ink: #3B2314;
  --ink-soft: #5A4334;
  --line: #E8DCC6;
  --radius: 22px;
  --border: 3px solid var(--cocoa);
  --shadow: 5px 5px 0 var(--cocoa);
  --shadow-sm: 3px 3px 0 var(--cocoa);
  --font-head: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-accent: "Lora", Georgia, serif;
  --pad: clamp(18px, 4vw, 48px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
body {
  margin: 0;
  font: 400 17px/1.65 var(--font-body);
  color: var(--ink);
  background-color: var(--outer);
  background-image: radial-gradient(rgba(139, 74, 28, .13) 1.5px, transparent 1.6px);
  background-size: 22px 22px;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--crust); text-underline-offset: 3px; }
a:hover { color: var(--cocoa); }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.15; margin: 0 0 .5em; color: var(--cocoa); }
h1 { font-size: clamp(34px, 5vw, 58px); letter-spacing: -.01em; }
h2 { font-size: clamp(26px, 3.2vw, 38px); }
h3 { font-size: clamp(19px, 2vw, 23px); }
h4 { font-size: 17px; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--spice); outline-offset: 3px; border-radius: 6px; }
.icon { width: 1.2em; height: 1.2em; flex: none; display: inline-block; vertical-align: -.2em; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--yellow); padding: 10px 16px; border: var(--border); border-radius: 12px; font-weight: 600; }
.skip-link:focus { left: 12px; }
.center { text-align: center; }
.eyebrow { font: 600 13px/1.2 var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--crust); margin: 0 0 10px; }
.empty { color: var(--ink-soft); font-style: italic; }
.empty--big { text-align: center; display: grid; justify-items: center; gap: 12px; padding: 30px 0; }

/* ---------- Boxed page ---------- */
.page-box {
  max-width: 1240px;
  margin: 28px auto;
  background: var(--cream);
  border: var(--border);
  border-radius: 30px;
  box-shadow: 10px 10px 0 var(--cocoa);
  overflow: clip;
}
@media (max-width: 760px) {
  .page-box { margin: 0; border: 0; border-radius: 0; box-shadow: none; }
}

/* ---------- Top bar ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--cocoa); color: var(--cream);
  padding: 8px var(--pad); font-size: 14px; position: relative; z-index: 20;
}
.topbar__tag { margin: 0; font-family: var(--font-accent); font-style: italic; font-weight: 700; color: var(--yellow); text-align: center; flex: 1; }
.topbar__social { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; min-width: 120px; }
.topbar__social a { color: var(--cream); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; }
.topbar__social a:hover { background: rgba(255, 246, 229, .15); }

.lang { position: relative; min-width: 120px; display: flex; justify-content: flex-end; }
.lang__btn { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 2px solid var(--cream); font-weight: 600; min-height: 36px; }
.lang__btn::-webkit-details-marker { display: none; }
.lang__btn::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); margin-left: 2px; }
.lang[open] .lang__btn { background: var(--yellow); color: var(--cocoa); border-color: var(--yellow); }
.lang__menu { position: absolute; right: 0; top: calc(100% + 8px); list-style: none; margin: 0; padding: 8px; background: var(--white); color: var(--cocoa); border: var(--border); border-radius: 16px; box-shadow: var(--shadow-sm); min-width: 180px; }
.lang__menu a { display: flex; gap: 10px; padding: 9px 12px; border-radius: 10px; color: var(--cocoa); text-decoration: none; }
.lang__menu a:hover, .lang__menu a[aria-current] { background: var(--cream); }
.lang__menu strong { width: 26px; color: var(--crust); }

/* ---------- Header: centered logo, menu below ---------- */
.site-header { display: grid; justify-items: center; gap: 14px; padding: 26px var(--pad) 18px; border-bottom: var(--border); background: var(--cream); position: relative; }
.logo img { width: 420px; max-width: 100%; height: auto; }
.nav { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.nav__list { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0; padding: 0; }
.nav__list a { display: block; padding: 9px 16px; border-radius: 999px; font: 500 16px/1.2 var(--font-head); color: var(--cocoa); text-decoration: none; border: 2px solid transparent; }
.nav__list a:hover { border-color: var(--cocoa); }
.nav__list .current-menu-item > a, .nav__list .current_page_item > a, .nav__list .current-menu-ancestor > a { background: var(--yellow); border-color: var(--cocoa); box-shadow: var(--shadow-sm); }
.nav__list .sub-menu { display: none; }
.nav__search { display: flex; border: 2px solid var(--cocoa); border-radius: 999px; overflow: hidden; background: var(--white); }
.nav__search input { border: 0; padding: 12px 20px; width: 360px; background: transparent; font-size: 16px; }
.nav__search input:focus { outline: none; }
.nav__search button { border: 0; background: var(--yellow); padding: 0 18px; cursor: pointer; border-left: 2px solid var(--cocoa); }
.nav__search button svg { width: 20px; height: 20px; }
@media (min-width: 1200px) { .nav__search input { width: 440px; } }
.nav-toggle { display: none; }
@media (max-width: 860px) {
  .logo img { width: 280px; }
  .nav-toggle { display: inline-flex; align-items: center; gap: 8px; border: var(--border); background: var(--yellow); border-radius: 999px; padding: 8px 18px; font-weight: 600; cursor: pointer; box-shadow: var(--shadow-sm); min-height: 44px; }
  .nav { display: none; width: 100%; flex-direction: column; align-items: stretch; }
  .nav-open .nav { display: flex; }
  .nav__list { flex-direction: column; }
  .nav__list a { text-align: center; padding: 12px; }
  .nav__search input { width: 100%; }
  .topbar__tag { display: none; }
  .topbar__social { min-width: 0; }
}

/* ---------- Buttons, chips, tags ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; min-height: 46px; border-radius: 999px;
  border: var(--border); background: var(--white); color: var(--cocoa);
  font: 600 16px/1.2 var(--font-head); text-decoration: none; cursor: pointer;
  box-shadow: var(--shadow-sm); transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--cocoa); color: var(--cocoa); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--cocoa); }
.btn--primary { background: var(--yellow); }
.btn--small { padding: 7px 14px; min-height: 40px; font-size: 14px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; }
.chip { display: inline-block; padding: 7px 15px; border: 2px solid var(--cocoa); border-radius: 999px; background: var(--white); color: var(--cocoa); font-weight: 600; font-size: 15px; text-decoration: none; }
.chip:hover, .chip.is-active { background: var(--yellow); }
.chip--region { border-style: dashed; }
.tag { display: inline-block; padding: 4px 12px; border: 2px solid var(--cocoa); border-radius: 999px; font-size: 13px; font-weight: 600; text-decoration: none; color: var(--cocoa); background: var(--white); }
.tag--yellow { background: var(--yellow); }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--crust); text-decoration: none; }

/* ---------- Sections ---------- */
.section { padding: 54px var(--pad); position: relative; }
.section--white { background: var(--white); border-top: var(--border); border-bottom: var(--border); margin-top: -3px; }
.section--cream { background: var(--cream); }
.section--yellow { background: var(--yellow); border-top: var(--border); border-bottom: var(--border); margin-top: -3px; }
.section--cream .benny--peek-left ~ .section__head { padding-right: 130px; }
.section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.section__title { margin: 0; }
.section__sub { margin: 6px 0 0; color: var(--ink-soft); max-width: 640px; }
.section--yellow .section__sub, .section--yellow .link-arrow { color: var(--cocoa); }

/* Benny decorations */
.benny { pointer-events: none; user-select: none; }
.benny--feature { position: absolute; right: 18px; top: 14px; width: 120px; transform: rotate(6deg); }
.benny--peek-right { position: absolute; right: 22px; top: -62px; width: 130px; }
.benny--peek-left { position: absolute; right: 26px; top: 16px; width: 110px; transform: rotate(-6deg); }
.benny--footer { position: absolute; right: 40px; top: -101px; width: 130px; }
.benny--hero { position: absolute; right: var(--pad); bottom: 10px; width: 170px; }
.benny--card { position: absolute; right: 18px; top: -56px; width: 110px; }
.benny--honest { width: 110px; }
.benny--404 { margin: 0 auto 10px; width: 220px; }
@media (max-width: 760px) {
  .benny--feature, .benny--peek-right, .benny--peek-left, .benny--hero, .benny--card { display: none; }
  .benny--footer { width: 90px; top: -66px; right: 16px; }
}

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: 1.25fr 1fr; align-items: center; gap: 30px; padding: 46px var(--pad) 50px; }
.hero__title { margin-bottom: 14px; }
.hero__lead { font-size: 19px; color: var(--ink-soft); max-width: 560px; }
.hero__art { display: grid; place-items: center; }
.hero__benny { width: min(420px, 100%); aspect-ratio: 1; }
.search-big { display: flex; gap: 8px; max-width: 560px; margin-top: 8px; }
.search-big input { flex: 1; min-width: 0; padding: 12px 18px; border: var(--border); border-radius: 999px; background: var(--white); min-height: 50px; }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; text-align: left; padding-top: 30px; }
  .hero__art { order: -1; }
  .hero__benny { width: 220px; }
}
@media (max-width: 480px) { .search-big { flex-direction: column; } }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 22px; }
.grid--cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid--cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.grid--posts { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
@media (max-width: 520px) { .grid--cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } }

.card { background: var(--white); border: var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease; }
.card:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--cocoa); }
.card__link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.card__media { position: relative; aspect-ratio: 4 / 3; border-bottom: var(--border); background: var(--cream); overflow: hidden; }
.card__media img, .card__img { width: 100%; height: 100%; object-fit: cover; }
.card__badge { position: absolute; left: 10px; top: 10px; background: var(--yellow); border: 2px solid var(--cocoa); border-radius: 999px; padding: 2px 10px; font: 700 14px/1.4 var(--font-head); }
.card__body { padding: 12px 14px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card__tag { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--crust); }
.card__title { font-size: 20px; margin: 0; line-height: 1.25; }
.card__meta { display: flex; gap: 14px; margin: auto 0 0; font-size: 14px; color: var(--ink-soft); }
.card__meta span { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
@media (max-width: 520px) { .card__meta { gap: 8px; font-size: 13px; flex-wrap: wrap; } .card__title { font-size: 16px; } .card__body { padding: 10px 10px 12px; } }
.card__rating .icon { color: var(--spice); fill: var(--spice); }
.card--text .card__body { padding: 20px; }

/* Placeholder image: Benny on a brand color */
.ph { display: grid; place-items: center; width: 100%; height: 100%; min-height: 100%; }
.ph img.ph__benny, .card__media .ph img.ph__benny { width: 72%; max-width: 240px; height: auto; max-height: 82%; object-fit: contain; }
.ph--yellow { background: var(--yellow); }
.ph--caramel { background: #F1C58C; }
.ph--pistachio { background: #D5E8B5; }
.ph--cream { background: #FCE7C4; }
.ph--spice { background: #F8B8A3; }

.post-card { background: var(--white); border: var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.post-card__link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.post-card__media { aspect-ratio: 4 / 3; border-bottom: var(--border); overflow: hidden; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.post-card__media .ph img.ph__benny { width: auto; height: 82%; }
.post-card__body { padding: 18px 20px 22px; }
.post-card__title { font-size: 21px; margin-bottom: 8px; }
.post-card__meta { font-size: 14px; color: var(--ink-soft); margin-bottom: 6px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

/* ---------- Home: feature, methods, regions, pantry ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; }
.feature__media { border: var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3; background: var(--yellow); }
.feature__media img, .feature__media .ph { width: 100%; height: 100%; object-fit: cover; }
.feature__name { font-family: var(--font-accent); font-style: italic; font-size: 26px; margin: 8px 0; }
.feature__name a { color: var(--crust); text-decoration: none; }
.facts { list-style: none; display: flex; gap: 10px; flex-wrap: wrap; padding: 0; margin: 0 0 22px; }
.facts li { display: inline-flex; align-items: center; gap: 6px; background: var(--white); border: 2px solid var(--cocoa); border-radius: 14px; padding: 6px 12px; font-size: 15px; }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; } }

.method-row { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; padding: 0; margin: 0; }
.method-row li { background: var(--white); border: var(--border); border-radius: 18px; padding: 18px; display: grid; justify-items: center; gap: 8px; font-weight: 600; text-align: center; }
.method-row .icon { width: 36px; height: 36px; color: var(--crust); }

.regions { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; padding: 0; margin: 0; }
.region a { display: grid; gap: 4px; height: 100%; padding: 18px 20px; border: var(--border); border-radius: 20px; text-decoration: none; color: var(--cocoa); box-shadow: var(--shadow-sm); transition: transform .12s; }
.region a:hover { transform: translate(-2px, -2px); }
.region__icon { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--white); border: 2px solid var(--cocoa); margin-bottom: 4px; }
.region__name { font: 700 19px/1.2 var(--font-head); }
.region__desc { font-size: 14px; color: var(--ink-soft); }
.region__count { font-size: 13px; font-weight: 600; margin-top: 4px; }
.region--0 a { background: #FCE7C4; } .region--1 a { background: #D5E8B5; } .region--2 a { background: #FFE58A; }
.region--3 a { background: #F8C6B5; } .region--4 a { background: #F1D2AE; } .region--5 a { background: #FFF; }

.pantry { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; padding: 0; margin: 0 0 26px; }
.pantry__item { display: grid; grid-template-columns: 56px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 14px; border: var(--border); border-radius: 18px; background: var(--cream); }
.pantry__icon { grid-row: span 2; width: 56px; height: 56px; border-radius: 14px; background: var(--yellow); border: 2px solid var(--cocoa); display: grid; place-items: center; overflow: hidden; }
.pantry__icon .icon { width: 28px; height: 28px; }
.pantry__name { font-weight: 600; }
.pantry__desc { font-size: 14px; color: var(--ink-soft); }

/* ---------- Ads (space reserved = no layout shift) ---------- */
.ad-slot { padding: 22px var(--pad); text-align: center; background: var(--cream); }
.ad-slot__label { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 6px; }
.ad-slot__inner { min-height: 120px; display: grid; place-items: center; }
.ad-slot--empty .ad-slot__inner { border: 2px dashed var(--caramel); border-radius: 16px; color: var(--ink-soft); font-size: 14px; padding: 16px; }
@media (max-width: 760px) { .ad-slot__inner { min-height: 260px; } }

/* ---------- Breadcrumbs, page hero ---------- */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 16px; font-size: 14px; }
.crumbs li:not(:last-child)::after { content: "›"; margin-left: 6px; color: var(--ink-soft); }
.crumbs a { color: var(--ink-soft); }
.crumbs [aria-current] { font-weight: 600; }
.page-hero { position: relative; padding: 34px var(--pad) 40px; }
.page-hero h1 { max-width: 820px; }
.page-hero__lead { font-size: 19px; color: var(--ink-soft); max-width: 720px; }
.page-hero--404 { text-align: center; display: grid; justify-items: center; }
@media (max-width: 760px) { .page-hero { padding-top: 22px; } }

/* ---------- Recipe ---------- */
.recipe__head { padding: 30px var(--pad) 22px; }
.recipe__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.recipe__lead { font-size: 19px; color: var(--ink-soft); max-width: 760px; }
.recipe__social { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin: 6px 0 18px; font-size: 15px; }
.rating-link { display: inline-flex; align-items: center; gap: 8px; color: var(--cocoa); text-decoration: none; font-weight: 600; }
.views { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-soft); }
.recipe__actions { display: flex; flex-wrap: wrap; gap: 10px; }

.stars { position: relative; display: inline-block; font-size: 18px; line-height: 1; letter-spacing: 2px; }
.stars__bg { color: #E3D3B7; }
.stars__fg { position: absolute; left: 0; top: 0; overflow: hidden; white-space: nowrap; color: var(--spice); }

.vote { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.vote__btn { display: inline-flex; align-items: center; gap: 6px; border: 2px solid var(--cocoa); background: var(--white); border-radius: 999px; padding: 6px 12px; cursor: pointer; font-weight: 600; min-height: 40px; }
.vote__btn:hover:not(:disabled) { background: var(--yellow); }
.vote__btn:disabled { cursor: default; opacity: .65; }
.vote__btn.is-chosen { background: var(--yellow); opacity: 1; }
.vote__btn--big { padding: 12px 20px; min-height: 50px; box-shadow: var(--shadow-sm); }
.vote__msg { flex-basis: 100%; width: 0; min-width: 100%; margin: 6px 0 0; font-weight: 600; text-align: center; }
.vote__msg:empty { display: none; }

.recipe__hero { max-width: 960px; margin: 0 auto; border: var(--border); border-radius: 26px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3; background: var(--yellow); }
.recipe__hero img, .recipe__hero .ph { width: 100%; height: 100%; object-fit: cover; }
.recipe__hero .ph img.ph__benny { width: 40%; height: auto; max-width: 380px; max-height: none; }
.feature__media .ph img.ph__benny { width: 50%; height: auto; max-height: none; }

.times { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 0; margin: 26px var(--pad) 10px; border: var(--border); border-radius: 20px; overflow: hidden; background: var(--white); }
.times > div { padding: 14px 16px; border-right: 2px solid var(--line); }
.times > div:last-child { border-right: 0; }
.times dt { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.times dd { margin: 4px 0 0; font: 700 20px/1.2 var(--font-head); }
.times__total { background: var(--yellow); }
.times__total dt { color: var(--cocoa); }

.prose { max-width: 760px; }
.recipe__story { padding: 20px var(--pad) 10px; }
.prose h2 { margin-top: 1.6em; font-size: clamp(24px, 2.6vw, 30px); }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--crust); }
.prose img { border-radius: 18px; border: var(--border); }
/* Peel Off: AEO answer box, takeaways, tables, FAQ */
.answer-box { margin: 0 0 1.6em; padding: 18px 22px; background: #FFF3C4; border: var(--border); border-radius: 20px; box-shadow: var(--shadow-sm); }
.answer-box__label { display: inline-block; margin-bottom: 6px; padding: 2px 12px; border-radius: 999px; background: var(--yellow); border: 2px solid var(--cocoa); font: 700 13px/1.5 var(--font-head); letter-spacing: .04em; text-transform: uppercase; }
.answer-box p { margin: 0; font-size: 18px; line-height: 1.6; }
.takeaways { margin: 0 0 2em; padding: 18px 22px 10px; background: var(--white); border: 2px solid var(--line); border-left: 6px solid var(--pistachio); border-radius: 0 18px 18px 0; }
.prose .takeaways h2 { margin-top: 0; font-size: 22px; }
.prose table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 1.4em 0; font-size: 15px; background: var(--white); border: 2px solid var(--cocoa); border-radius: 14px; overflow: hidden; }
@media (max-width: 640px) { .prose table { display: block; overflow-x: auto; font-size: 14px; } }
.prose th, .prose td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose thead th { background: var(--yellow); font-family: var(--font-head); font-weight: 700; border-bottom: 2px solid var(--cocoa); white-space: nowrap; }
.prose tbody tr:last-child td { border-bottom: 0; }
.faq { max-width: 760px; margin: 40px auto; padding: 0 var(--pad); }
.faq__list { display: grid; gap: 12px; }
.faq__item { padding: 16px 20px; background: var(--white); border: 2px solid var(--cocoa); border-radius: 16px; }
.faq__q { margin: 0 0 6px; font-size: 18px; }
.faq__a { margin: 0; color: var(--ink-soft); }
.related--articles .grid--posts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .related--articles .grid--posts { grid-template-columns: 1fr; } }
.prose blockquote { margin: 1.5em 0; padding: 14px 20px; border-left: 6px solid var(--yellow); background: var(--white); border-radius: 0 16px 16px 0; font-family: var(--font-accent); font-style: italic; font-size: 20px; }
.lead { font-size: 20px; }

.recipe-card { position: relative; margin: 34px var(--pad); padding: 30px clamp(18px, 3vw, 36px); background: var(--white); border: var(--border); border-radius: 28px; box-shadow: var(--shadow); }
.recipe-card__title { margin-bottom: 4px; padding-right: 110px; }
.recipe-card__yield { color: var(--ink-soft); }
.recipe-card__grid { display: grid; grid-template-columns: minmax(280px, 0.9fr) 1.3fr; gap: 34px; margin-top: 16px; }
.recipe-card__ings { align-self: start; position: sticky; top: 16px; }
@media (max-width: 900px) { .recipe-card__grid { grid-template-columns: 1fr; } .recipe-card__ings { position: static; } .recipe-card__title { padding-right: 0; } }

.ings__head, .steps__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; min-height: 44px; }
.steps__head h3 { margin: 0; }
.ings__head h3 { margin: 0; }
.servings { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.servings button { width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--cocoa); background: var(--yellow); color: var(--cocoa); cursor: pointer; padding: 0; display: inline-grid; place-items: center; line-height: 0; }
.servings button:hover { background: #FFE27A; }
.servings button .icon { width: 18px; height: 18px; stroke-width: 2.6; }
.servings output { line-height: 38px; }
.servings output { font: 700 18px/1 var(--font-head); min-width: 26px; text-align: center; }
.ings__hint { font-size: 14px; color: var(--ink-soft); margin: 8px 0 10px; }
.ings { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ings__group h4 { margin: 14px 0 2px; font-family: var(--font-accent); font-style: italic; color: var(--crust); }
.ing { display: flex; align-items: center; gap: 8px; border: 2px solid var(--line); border-radius: 16px; padding: 6px 8px 6px 6px; background: var(--cream); transition: background .15s, border-color .15s; }
.ing:hover { border-color: var(--cocoa); }
.ing__label { display: flex; align-items: center; gap: 10px; flex: 1; cursor: pointer; min-height: 44px; }
.ing__check { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ing__icon { width: 42px; height: 42px; flex: none; border-radius: 12px; background: var(--yellow); border: 2px solid var(--cocoa); display: grid; place-items: center; transition: transform .2s; }
.ing__icon .icon { width: 24px; height: 24px; }
.ing:hover .ing__icon { transform: rotate(-8deg) scale(1.05); }
.ing__amt { font-family: var(--font-head); }
.ing__unit { font-weight: 600; margin-right: 2px; }
.ing__check:checked ~ .ing__text { text-decoration: line-through; opacity: .55; }
.ing__check:checked ~ .ing__icon { background: var(--pistachio); }
.ing__check:focus-visible ~ .ing__icon { outline: 3px solid var(--spice); outline-offset: 2px; }
.ing__shop { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; padding: 6px 10px; border-radius: 999px; border: 2px solid var(--cocoa); background: var(--white); color: var(--cocoa); text-decoration: none; white-space: nowrap; min-height: 34px; }
.ing__shop:hover { background: var(--yellow); }
.ing__shop .icon { width: 16px; height: 16px; }

.recipe-card__steps .ings__hint { margin-bottom: 10px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; counter-reset: s; }
.step { display: grid; grid-template-columns: 44px 1fr; gap: 14px; scroll-margin-top: 20px; }
.step__num { width: 44px; height: 44px; border-radius: 50%; background: var(--cocoa); color: var(--yellow); display: grid; place-items: center; font: 700 19px/1 var(--font-head); }
.step__body p { margin: 8px 0 10px; }
.step__img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; border-radius: 16px; border: 2px solid var(--cocoa); }
.step:target .step__num { background: var(--spice); color: var(--white); }

/* Shop box */
.shop { margin: 34px var(--pad); padding: 26px clamp(18px, 3vw, 32px); background: var(--cream); border: var(--border); border-radius: 26px; box-shadow: var(--shadow); }
.shop__title { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; font-size: clamp(22px, 2.4vw, 28px); }
.shop__sub { color: var(--ink-soft); }
.shop__list { list-style: none; padding: 0; margin: 14px 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.shop__item { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; background: var(--white); border: 2px solid var(--cocoa); border-radius: 16px; padding: 8px 10px; }
.shop__pick { display: flex; align-items: center; gap: 10px; cursor: pointer; min-height: 44px; flex: 1 1 auto; min-width: 0; }
.shop__pick input, .shop__icon { flex: none; }
.shop__pick input { width: 20px; height: 20px; accent-color: var(--crust); }
.shop__icon { width: 38px; height: 38px; border-radius: 10px; background: var(--yellow); display: grid; place-items: center; overflow: hidden; border: 2px solid var(--cocoa); }
.shop__icon img { width: 100%; height: 100%; object-fit: cover; }
.shop__name { font-weight: 600; font-size: 15px; line-height: 1.3; min-width: 0; overflow-wrap: anywhere; hyphens: auto; }
.shop__single { flex: none; font-size: 14px; font-weight: 600; white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; padding-right: 2px; }
.shop__single svg { width: 16px; height: 16px; flex: none; }
.shop__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 8px; }
.shop__label { margin: 0; font-weight: 600; }
.shop__label [data-count]:not(:empty)::after { content: " · "; }
.shop__markets { display: flex; flex-wrap: wrap; gap: 8px; }
.btn--market { padding: 8px 14px; min-height: 44px; font-size: 15px; }
.btn--market.is-guess { background: var(--yellow); }
.shop__note { flex-basis: 100%; margin: 0; color: var(--spice); font-weight: 600; }
.disclaimer { font-size: 13px; line-height: 1.55; color: var(--ink-soft); margin: 16px 0 0; }

/* Ingredients page */
.page-hero--shop { padding-right: 240px; }
.how { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 16px 0 0; }
.how li { display: inline-flex; align-items: center; gap: 8px; background: var(--white); border: 2px solid var(--cocoa); border-radius: 999px; padding: 6px 14px 6px 6px; font-weight: 600; font-size: 15px; }
.how span { width: 28px; height: 28px; border-radius: 50%; background: var(--yellow); display: grid; place-items: center; font-family: var(--font-head); }
.shop--page { margin-top: 0; box-shadow: none; border-radius: 0; border-left: 0; border-right: 0; margin-left: 0; margin-right: 0; padding-bottom: 140px; }
.shop__country { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.shop__country label { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.shop__country select { border: var(--border); border-radius: 999px; padding: 8px 14px; background: var(--white); min-height: 44px; }
.shelf { margin-top: 30px; }
.shelf__title { font-size: 24px; display: flex; align-items: center; gap: 10px; }
.shelf__title::after { content: ""; flex: 1; height: 3px; background: var(--cocoa); border-radius: 3px; opacity: .2; }
.products { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.product { position: relative; display: flex; flex-direction: column; gap: 6px; background: var(--white); border: var(--border); border-radius: 20px; padding: 16px; transition: box-shadow .15s, transform .15s; }
.product.is-picked { box-shadow: var(--shadow); transform: translate(-2px, -2px); background: #FFFBEF; }
.product__pick { position: absolute; right: 12px; top: 12px; cursor: pointer; }
.product__pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.product__check { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--cocoa); display: grid; place-items: center; background: var(--white); color: transparent; }
.product__pick input:checked + .product__check { background: var(--pistachio); color: var(--cocoa); }
.product__pick input:focus-visible + .product__check { outline: 3px solid var(--spice); outline-offset: 2px; }
.product__media { width: 76px; height: 76px; border-radius: 18px; background: var(--yellow); border: 2px solid var(--cocoa); display: grid; place-items: center; overflow: hidden; }
.product__media .icon { width: 38px; height: 38px; }
.product__media img { width: 100%; height: 100%; object-fit: cover; }
.product__name { font-size: 18px; margin: 6px 0 0; }
.product__desc { font-size: 14px; color: var(--ink-soft); margin: 0; }
.product__used { font-size: 13px; margin: 0; }
.product__buy { margin-top: auto; align-self: flex-start; }
.basket { position: sticky; bottom: 12px; z-index: 10; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 30px; padding: 14px 18px; background: var(--cocoa); color: var(--cream); border-radius: 22px; box-shadow: 0 8px 0 rgba(59, 35, 20, .25); }
.basket p { margin: 0; }
.basket__count { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.basket .btn--market { border-color: var(--cream); box-shadow: none; }
.basket .shop__note { color: var(--yellow); }
@media (max-width: 760px) { .page-hero--shop { padding-right: var(--pad); } }

/* Gallery, video, honest box, reviews */
.gallery, .video, .related, .reviews, .honest, .fusion-nav { margin: 40px var(--pad); }
.gallery__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.gallery__item { margin: 0; border: var(--border); border-radius: 18px; overflow: hidden; background: var(--white); }
.gallery__item--0 { grid-row: span 2; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; }
.gallery__item figcaption { padding: 8px 12px; font-size: 14px; }
@media (max-width: 640px) { .gallery__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.video__lite { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: var(--border); border-radius: 22px; overflow: hidden; padding: 0; cursor: pointer; background: var(--cocoa); box-shadow: var(--shadow); }
.video__lite img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.video__play { position: absolute; inset: 0; margin: auto; width: 84px; height: 84px; border-radius: 50%; background: var(--yellow); border: var(--border); display: grid; place-items: center; }
.video__play .icon { width: 34px; height: 34px; fill: var(--cocoa); }
.video__frame { width: 100%; aspect-ratio: 16 / 9; border: var(--border); border-radius: 22px; }

.honest { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 24px; padding: 24px 30px; background: var(--yellow); border: var(--border); border-radius: 26px; box-shadow: var(--shadow); }
.honest h2 { font-size: 24px; margin: 0 0 4px; }
.honest p { margin: 0; }
.honest .vote { justify-content: center; }
.vote__btn--big { justify-content: center; }
@media (max-width: 860px) { .honest { grid-template-columns: 1fr; text-align: center; justify-items: center; } }

.reviews h2 { margin-bottom: 18px; }
.review-list { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 14px; }
.review { background: var(--white); border: 2px solid var(--cocoa); border-radius: 18px; padding: 16px 18px; }
.review__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 6px; }
.review__avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--yellow); border: 2px solid var(--cocoa); display: grid; place-items: center; font-weight: 700; }
.review__head time { color: var(--ink-soft); font-size: 14px; margin-left: auto; }
.review__pending { font-style: italic; color: var(--crust); }
.review__text p:last-child { margin: 0; }
.comment-respond { background: var(--white); border: var(--border); border-radius: 24px; padding: 24px; }
.comment-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.comment-form > p, .comment-form .rate { grid-column: 1 / -1; }
.comment-form .comment-form-author, .comment-form .comment-form-email { grid-column: auto; }
.comment-form label { display: block; font-weight: 600; margin-bottom: 4px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form textarea { width: 100%; padding: 12px 14px; border: 2px solid var(--cocoa); border-radius: 14px; background: var(--cream); }
.req { color: var(--spice); }
.hp { position: absolute; left: -9999px; }
.rate { border: 0; padding: 0; margin: 0 0 12px; }
.rate legend { font-weight: 600; margin-bottom: 4px; }
.rate__stars { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.rate__stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rate__stars label { font-size: 34px; line-height: 1; color: #E3D3B7; cursor: pointer; padding: 2px; }
.rate__stars input:checked ~ label, .rate__stars label:hover, .rate__stars label:hover ~ label { color: var(--spice); }
.rate__stars input:focus-visible + label { outline: 3px solid var(--spice); border-radius: 6px; }
@media (max-width: 640px) { .comment-form { grid-template-columns: 1fr; } }

.fusion-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fusion-nav a { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border: var(--border); border-radius: 18px; background: var(--white); text-decoration: none; color: var(--cocoa); font-weight: 600; }
.fusion-nav small { display: block; font-weight: 400; color: var(--ink-soft); }
.fusion-nav__next { justify-content: flex-end; text-align: right; grid-column: 2; }

/* Pages */
.page-body { padding: 0 var(--pad) 50px; }
.page-body--toc { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; align-items: start; }
.toc { position: sticky; top: 16px; background: var(--white); border: var(--border); border-radius: 20px; padding: 18px 20px; }
.toc__title { font: 700 16px/1.2 var(--font-head); margin-bottom: 10px; }
.toc ol { margin: 0; padding-left: 1.2em; font-size: 15px; display: grid; gap: 6px; }
@media (max-width: 900px) { .page-body--toc { grid-template-columns: 1fr; } .toc { position: static; } }
.about-cta { text-align: center; }
.article__hero { max-width: 960px; margin: 0 auto 26px; border: var(--border); border-radius: 26px; overflow: hidden; aspect-ratio: 4 / 3; }
.article__hero img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 1000px) { .recipe__hero, .article__hero { margin-left: var(--pad); margin-right: var(--pad); } }
.article__body { padding: 0 var(--pad) 30px; margin: 0 auto; }

/* Pagination */
.pagination { margin-top: 34px; }
.nav-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.page-numbers { min-width: 44px; height: 44px; display: grid; place-items: center; padding: 0 12px; border: 2px solid var(--cocoa); border-radius: 999px; background: var(--white); text-decoration: none; color: var(--cocoa); font-weight: 600; }
.page-numbers.current { background: var(--yellow); }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--cocoa); color: var(--cream); padding: 54px var(--pad) 20px; margin-top: 104px; }
.site-footer a { color: var(--cream); }
.site-footer a:hover { color: var(--yellow); }
.site-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 30px; }
.site-footer__logo img { width: 236px; }
.site-footer__tagline { font-family: var(--font-accent); font-style: italic; font-weight: 700; color: var(--yellow); font-size: 20px; margin: 12px 0 6px; }
.site-footer__title { color: var(--yellow); font-size: 17px; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer__social { display: flex !important; gap: 8px; margin-top: 14px !important; }
.site-footer__social a { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--cream); display: grid; place-items: center; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; border-top: 1px solid rgba(255, 246, 229, .2); margin-top: 34px; padding-top: 16px; font-size: 14px; }
.site-footer__bottom p { margin: 0; }
@media (max-width: 860px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* ---------- Motion & print ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  body { background: #fff; }
  .page-box { margin: 0; border: 0; box-shadow: none; }
  .topbar, .site-header, .site-footer, .ad-slot, .recipe__actions, .recipe__social, .shop, .gallery, .video, .honest, .reviews, .related, .fusion-nav, .benny, .crumbs, .recipe__hero, .ings__hint, .servings, .ing__shop { display: none !important; }
  .recipe-card { box-shadow: none; border: 1px solid #999; margin: 0; }
  .recipe-card__grid { grid-template-columns: 1fr 1.4fr; }
  .ing { background: none; border: 0; padding: 0; }
  .ing__icon { width: 22px; height: 22px; border: 0; background: none; }
}

/* ---- Founder: byline, author box, About page card (1.5.0) ---- */
.avatar, .prose img.avatar { border-radius: 50%; aspect-ratio: 1; max-width: none; margin: 0; border: var(--border); object-fit: cover; flex: none; background: var(--yellow); }
.avatar--letter { display: inline-flex; align-items: center; justify-content: center; font: 700 1em/1 var(--font-head); color: var(--cocoa); }
.byline { display: flex; align-items: center; gap: 10px; margin: 14px 0 0; font-size: 15px; }
.recipe__head .byline, .page-hero--article .byline { justify-content: flex-start; }
.byline__name { font-weight: 600; color: var(--cocoa); }
.byline__role { color: var(--ink-soft); }
.byline__role::before { content: "·"; margin: 0 6px 0 2px; }
.founder-wrap { max-width: 760px; margin: 40px auto; padding: 0 var(--pad); }
.founder__eyebrow { font: 600 13px/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 12px; }
.founder { display: flex; gap: 22px; align-items: flex-start; background: var(--white); border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.founder--about { background: var(--cream, #FFF6E5); margin: 0 0 36px; }
.founder__text { min-width: 0; }
.founder__name { font: 700 22px/1.2 var(--font-head); margin: 0; color: var(--cocoa); }
.founder__role { margin: 4px 0 12px; color: var(--ink-soft); font-weight: 600; font-size: 15px; }
.founder__text p:not(.founder__name):not(.founder__role) { margin: 0 0 12px; }
.founder__social { list-style: none; display: flex; gap: 10px; padding: 0; margin: 4px 0 12px; }
.founder__social a { display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; border: var(--border); border-radius: 50%; color: var(--cocoa); background: var(--yellow); }
.founder__social svg { width: 18px; height: 18px; }
@media (max-width: 600px) {
  .founder { flex-direction: column; align-items: center; text-align: center; padding: 20px; }
  .founder__social { justify-content: center; }
}
