:root {
  --bg: #fffaf3;
  --surface: #ffffff;
  --text: #3f2d20;
  --muted: #8a6f5c;
  --accent: #c2410c;
  --accent-dark: #9a3412;
  --accent-soft: #fdeeda;
  --border: #ead9c6;
  --radius: 12px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
  font-size: 17px;
}
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }
.container.narrow { max-width: 760px; }
a { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }

/* skip link: hidden until keyboard focus (SAGE accessibility fix) */
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--accent); color: #fff; padding: 0.6rem 1rem; font-weight: 700; z-index: 100; }
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

/* header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 10; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.75rem 1.25rem; }
.brand { display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none; color: var(--text); font-weight: 800; font-size: 1.25rem; }
.brand-mark { color: var(--accent); display: inline-flex; }
.main-nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.main-nav a { text-decoration: none; color: var(--text); font-weight: 600; }
.main-nav a:hover { color: var(--accent); }

/* hero */
.hero { background: linear-gradient(135deg, var(--accent-soft), #fff); border-bottom: 1px solid var(--border); text-align: center; padding: 3.5rem 1rem; }
.hero h1 { font-size: 2.75rem; margin: 0 0 0.5rem; letter-spacing: -0.02em; }
.hero-tag { font-size: 1.35rem; color: var(--accent-dark); font-weight: 600; margin: 0 0 0.5rem; }
.hero-sub { color: var(--muted); margin: 0 0 1.5rem; }
.btn { display: inline-block; background: var(--accent); color: #fff; text-decoration: none; font-weight: 700; padding: 0.75rem 1.75rem; border-radius: 999px; border: 0; cursor: pointer; }
.btn:hover { background: var(--accent-dark); }

/* sections */
.section { padding: 2.5rem 0; }
.section h2 { font-size: 1.75rem; margin: 0 0 1.25rem; }
.page { padding: 2rem 1.25rem 3rem; }
.page h1 { font-size: 2.25rem; margin: 0.75rem 0 0.5rem; letter-spacing: -0.02em; }
.lead { font-size: 1.15rem; color: var(--muted); }
.empty-note { background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius); padding: 1.5rem; color: var(--muted); }

/* breadcrumb */
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1rem; padding: 0; font-size: 0.9rem; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 0.5rem; color: var(--border); }
.breadcrumb a { color: var(--accent); text-decoration: none; }

/* cuisine grid */
.cuisine-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.cuisine-card { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; text-decoration: none; color: var(--text); transition: transform 0.15s ease, box-shadow 0.15s ease; }
.cuisine-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(194, 65, 12, 0.12); }
.cuisine-card h3 { margin: 0 0 0.5rem; font-size: 1.2rem; color: var(--accent-dark); }
.cuisine-card p { margin: 0 0 0.75rem; color: var(--muted); font-size: 0.95rem; }
.cuisine-count { display: inline-block; background: var(--accent-soft); color: var(--accent-dark); font-size: 0.85rem; font-weight: 700; padding: 0.2rem 0.75rem; border-radius: 999px; }

/* recipe cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card-media { display: block; aspect-ratio: 16 / 10; background: var(--accent-soft); overflow: hidden; }
.card-media picture { display: block; height: 100%; }
.hero-intro { font-size: 1.1rem; max-width: 720px; margin: 0 auto 0.75rem; }
/* featured intro (SAGE round 2, 2026-11-16): the homepage's first
   <article> is this fixed editorial block, not a recipe card, so the
   keyword-density sample is stable whatever dish is latest. */
.featured-intro { display: flex; gap: 1.25rem; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; margin: 0 0 1.5rem; }
.featured-intro img { width: 180px; height: 120px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.featured-intro h3 { margin: 0 0 0.5rem; }
.featured-intro p { margin: 0 0 0.75rem; }
.featured-intro p:last-child { margin-bottom: 0; }
@media (max-width: 640px) { .featured-intro { flex-direction: column; } .featured-intro img { width: 100%; height: auto; } }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
/* recipe search (2026-11-16) — hero form + /search/ results page */
.search-form { display: flex; gap: 0.5rem; max-width: 560px; margin: 0 auto 1rem; }
.search-form input[type="search"] { flex: 1; min-width: 0; padding: 0.7rem 1rem; font-size: 1rem; font-family: inherit; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text); }
.search-form button { padding: 0.7rem 1.4rem; font-size: 1rem; font-weight: 700; font-family: inherit; border: 0; border-radius: 999px; background: var(--accent); color: #fff; cursor: pointer; }
.search-form button:hover { background: var(--accent-dark); }
.search-count { color: var(--muted); margin: 0 0 1rem; }
.search-empty { max-width: 640px; }
@media (max-width: 520px) { .search-form { flex-direction: column; } .search-form button { width: 100%; } }
.updated { color: var(--muted); font-size: 0.95rem; margin: 0 0 1.5rem; }
.glossary { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem 1.5rem; margin: 1rem 0; }
.glossary dt { font-weight: 700; color: var(--accent-dark); }
.glossary dd { margin: 0 0 0.75rem; color: var(--muted); }
.cuisine-table { width: 100%; border-collapse: collapse; background: var(--surface); }
.cuisine-table th, .cuisine-table td { border: 1px solid var(--border); padding: 0.6rem 0.8rem; text-align: left; }
.cuisine-table th { background: var(--accent-soft); }
.faq-home details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.9rem 1.1rem; margin-bottom: 0.6rem; }
.faq-home summary { font-weight: 700; cursor: pointer; }
.faq-home .faq-answer { margin: 0.5rem 0 0; color: var(--muted); }
.card-img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 1.1rem 1.25rem 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.card-title { margin: 0; font-size: 1.15rem; }
.card-title a { color: var(--text); text-decoration: none; }
.card-title a:hover { color: var(--accent); }
.card-excerpt { margin: 0; color: var(--muted); font-size: 0.95rem; flex: 1; }
.card-link { font-weight: 700; text-decoration: none; }

/* image placeholder */
.img-placeholder { display: flex; align-items: center; justify-content: center; text-align: center; padding: 2rem 1rem; background: repeating-linear-gradient(45deg, var(--accent-soft), var(--accent-soft) 12px, #fff5e8 12px, #fff5e8 24px); border: 2px dashed var(--border); border-radius: var(--radius); color: var(--accent-dark); font-weight: 700; min-height: 180px; }
.card-media .img-placeholder { border: 0; border-radius: 0; min-height: 100%; height: 100%; }
/* share + popular rows */
.share-row { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin: 1.6rem 0 .4rem; padding: 1rem 1.2rem; background: var(--accent-soft); border-radius: var(--radius); font-weight: 600; }
.share-btn { display: inline-block; padding: .5rem 1rem; border-radius: 999px; color: #fff; text-decoration: none; font-weight: 700; font-size: .95rem; }
.share-btn.pin { background: #bd081c; }
.share-btn.fb { background: #1877f2; }
.share-btn:hover { opacity: .88; }
.popular-row { margin: .4rem 0 1.2rem; }
.popular-row a { font-weight: 600; }
.contact-email { font-size: 1.15rem; }

/* recipe article */
.recipe .hero-figure { margin: 1.5rem 0; }
/* byline + author box (AdSense E-E-A-T, 2026-11-12) */
.byline { color: var(--muted); font-size: 0.95rem; margin: 0.25rem 0 1rem; }
.byline a { font-weight: 700; }
.author-box { background: var(--accent-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.25rem; margin: 1.6rem 0; }
.author-box h2 { font-size: 1.15rem; margin: 0 0 0.4rem; }
.author-box p { margin: 0; color: var(--muted); }
/* cooking guides list (AdSense depth, 2026-11-12) */
.guide-list { list-style: none; padding: 0; margin: 0; }
.guide-list li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.25rem; margin-bottom: 0.9rem; }
.guide-list h3 { margin: 0 0 0.3rem; }
.guide-list p { margin: 0; color: var(--muted); }
.hero-img { border-radius: var(--radius); width: 100%; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0.75rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; margin: 1.5rem 0; }
.fact dt { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin: 0; }
.fact dd { margin: 0.15rem 0 0; font-weight: 700; font-size: 1.05rem; }
.recipe h2 { font-size: 1.5rem; margin: 2rem 0 0.75rem; color: var(--accent-dark); }
.ingredients, .tips { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem 1.25rem 1.25rem 2.5rem; margin: 0; }
.ingredients li, .tips li { margin-bottom: 0.4rem; }
.instructions { padding-left: 1.75rem; }
.instructions li { margin-bottom: 0.9rem; }
.faqs details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.9rem 1.1rem; margin-bottom: 0.6rem; }
.faqs summary { font-weight: 700; cursor: pointer; }
.faqs p { margin: 0.5rem 0 0; color: var(--muted); }

/* contact form */
.contact-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; margin-top: 1.5rem; display: grid; gap: 1rem; }
.contact-form label { display: grid; gap: 0.35rem; font-weight: 600; }
.contact-form input, .contact-form textarea { font: inherit; padding: 0.6rem 0.8rem; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); }
.form-note { margin: 0; color: var(--muted); font-size: 0.9rem; }

/* footer */
.site-footer { background: #2b1d12; color: #f3e3d3; margin-top: 3rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; padding: 2.5rem 1.25rem 1rem; }
.footer-brand { font-weight: 800; font-size: 1.2rem; margin: 0 0 0.25rem; }
.footer-tag { margin: 0; color: #c9a98a; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.footer-links a { color: #f3e3d3; text-decoration: none; font-size: 0.95rem; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { border-top: 1px solid #4a3220; padding: 1rem 1.25rem 1.5rem; color: #c9a98a; font-size: 0.9rem; }
.footer-bottom p { margin: 0; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding: 2.5rem 1rem; }
  .hero h1 { font-size: 2rem; }
  .page h1 { font-size: 1.75rem; }
  .header-inner { flex-direction: column; align-items: flex-start; }
}

/* ads - Revbid placements. Added 2026-11-09: this block previously sat
   inside a docstring and never shipped, so live ad slots were unstyled. */
.ad-slot { text-align: center; margin: 1.5rem auto; max-width: 100%; }
.ad-label { display: block; font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.3rem; }
.ad-top { background: var(--surface); border-bottom: 1px solid var(--border); }
.ad-top .ad-slot { margin: 0 auto; padding: 0.6rem 1rem; }
footer .ad-slot { margin-top: 0; padding-top: 1.25rem; }
/* floating side ads — desktop only, dismissible */
.float-ad { position: fixed; top: 50%; transform: translateY(-50%); z-index: 40; }
.float-ad-left { left: 8px; }
.float-ad-right { right: 8px; }
.float-ad .ad-slot { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.5rem; box-shadow: 0 4px 18px rgba(0,0,0,0.10); }
.float-ad-close { position: absolute; top: -10px; right: -10px; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--muted); font-size: 16px; line-height: 1; cursor: pointer; z-index: 41; }
@media (max-width: 1250px) { .float-ad { display: none; } }
/* footer in view (2026-11-10): hide floating side ads so only the footer leaderboard shows */
.footer-visible .float-ad { display: none !important; }
/* in-feed square ad as a grid cell (2026-11-16): sits in .card-grid like a
   recipe card — same surface/border/radius, square centered inside */
.in-feed-ad { display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 0.5rem; min-height: 280px; }
.in-feed-ad .ad-slot { margin: 0; }
@media (max-width: 520px) {
  .ad-slot > div[id] { transform: scale(0.92); transform-origin: top center; }
}

/* ---- mobile ad safety: ad slots must never force horizontal scrolling ---- */
[id^="revbid-"] { max-width: 100%; }
[id^="revbid-"] img, [id^="revbid-"] iframe { max-width: 100% !important; height: auto; }
@media (max-width: 767px) {
  [id^="revbid-"] { min-width: 0 !important; }
}

/* ---- PubPremier GPT units (2026-11-19) ---- */
/* ---- PubPremier header-bidding units (2026-11-26) ---- */
.pp-hb { max-width: 100%; }
.pp-hb iframe { max-width: 100% !important; }
/* sidebar rectangle: floated right inside article text on desktop, centered block on mobile */
.pp-sidebar { float: right; margin: 0 0 1rem 1.5rem; }
@media (max-width: 767px) { .pp-sidebar { float: none; margin: 1.5rem auto; } }
/* billboard as a full-width row inside a .card-grid listing — UNUSED
   since 2026-11-23 (billboard moved above the fold); kept for reuse */
.billboard-cell { grid-column: 1 / -1; }
.billboard-cell .ad-slot { margin: 0.5rem auto; }
/* CLS reservations (2026-11-26 HB rework, Step 3): every HB
   placeholder reserves its expected height so the ad never
   shifts content when it renders. Empty / too-wide slots
   collapse via PPHB_LOADER, so a reservation only holds while
   an ad is actually coming.
   Widths are explicit on purpose (fix 2026-11-26, rendered
   check): pp-hb.js fits sizes to the PARENT box width, and the
   floated rectangle wrapper + the fixed sticky box are
   shrink-to-fit — with no width the parent measured ~0px, so
   336x280 / 300x250 came back "too-wide" and never auctioned.
   Explicit widths make the wrapper size to the creative. */
#gpt-passback1, #gpt-passback2, #gpt-passback3, #gpt-passback4 { max-width: 100%; }
#gpt-passback1 iframe, #gpt-passback2 iframe, #gpt-passback3 iframe, #gpt-passback4 iframe { max-width: 100% !important; }
/* CLS reservations for GPT in-page slots (2026-11-23 viewability
   rework, restored 2026-11-26). */
.pp-slot-billboard { min-height: 90px; }
@media (min-width: 768px) { .pp-slot-billboard { min-height: 250px; } }
.pp-slot-halfpage { min-height: 600px; }
.pp-slot-rect { min-height: 280px; }
.pp-fb-square { min-height: 250px; width: 250px; max-width: 100%; margin: 0 auto; }
.pp-fb-mpu { min-height: 250px; width: 300px; max-width: 100%; margin: 0 auto; }
.pp-hb-atf { min-height: 100px; width: 100%; }
@media (min-width: 768px) { .pp-hb-atf { min-height: 90px; } }
@media (min-width: 1024px) { .pp-hb-atf { min-height: 250px; } }
.pp-hb-halfpage { min-height: 600px; width: 300px; max-width: 100%; margin: 0 auto; }
.pp-hb-rect { min-height: 280px; width: 336px; max-width: 100%; margin: 0 auto; }
.pp-hb-square { min-height: 250px; width: 250px; max-width: 100%; margin: 0 auto; }
.pp-hb-mpu { min-height: 250px; width: 300px; max-width: 100%; margin: 0 auto; }
/* bottom-right sticky rectangle — desktop/tablet only since 2026-11-23
   (mobile gets the anchor bar instead; the slot itself is JS-gated,
   this hides the empty shell) */
.pp-sticky-br { position: fixed; right: 10px; bottom: 10px; z-index: 45; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.5rem; box-shadow: 0 4px 18px rgba(0,0,0,0.10); max-width: calc(100vw - 20px); }
.pp-sticky-br .ad-slot { margin: 0; }
@media (max-width: 767px) { .pp-sticky-br { display: none; } }
/* footer in view: hide the sticky box like the floating side ads */
.footer-visible .pp-sticky-br { display: none !important; }
/* Founder — About page (2026-11-26): same portrait + same dimensions as MM Coaching Academy (400px desktop / 300px mobile) */
.founder-hero{display:grid;gap:26px;align-items:start;margin:18px 0 8px}
.founder-hero h3{margin-top:0}
.founder-photo-col{max-width:300px;margin:0 auto;width:100%}
.founder-photo{position:relative}
.founder-photo::before{content:"";position:absolute;inset:-10px;border-radius:22px;background:linear-gradient(135deg,var(--accent),#f59e0b)}
.founder-photo img{position:relative;z-index:1;width:100%;height:auto;border:4px solid #fff;border-radius:16px;box-shadow:0 4px 18px rgba(0,0,0,.12)}
.founder-photo-caption{position:relative;z-index:1;text-align:center;margin-top:16px}
.founder-photo-caption strong{display:block;color:var(--text);font-size:1.05rem}
.founder-photo-caption span{font-size:.78rem;letter-spacing:.14em;text-transform:uppercase;color:var(--muted)}
.founder-role{font-size:.85rem;letter-spacing:.06em;color:var(--accent);font-weight:500;margin:-.25rem 0 1rem}
@media (min-width: 900px){.founder-hero{grid-template-columns:400px minmax(0,1fr)}.founder-photo-col{max-width:420px}}
