/* ============================================================
   Receita e Fácil — Design System v2 (editorial / portal)
   Tipografia: Fraunces (display) + Inter (UI/texto)
   Estilo: revista de gastronomia, limpo e profissional
   ============================================================ */

:root {
  --bg:            #FFFFFF;
  --cream:         #FBF7F2;
  --cream-2:       #F5EDE4;
  --primary:       #D6482B;
  --primary-dark:  #B23A22;
  --primary-soft:  #FBEAE4;
  --saffron:       #E1912E;
  --green:         #3F7D53;
  --green-soft:    #E7F1EA;
  --ink:           #1E1915;
  --body:          #4B443E;
  --muted:         #8C817769;
  --muted-2:       #8C8177;
  --line:          #ECE3D9;
  --line-2:        #E3D8CC;
  --shadow-sm:     0 2px 8px rgba(60, 35, 15, .06);
  --shadow:        0 12px 30px rgba(60, 35, 15, .09);
  --shadow-lg:     0 28px 60px rgba(60, 35, 15, .14);
  --radius:        16px;
  --radius-sm:     10px;
  --radius-pill:   999px;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, "Segoe UI", system-ui, sans-serif;
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--sans); color: var(--body);
  background: var(--bg); line-height: 1.65; font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--primary-dark); text-decoration: none; transition: color .18s; }
a:hover { color: var(--primary); }
h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); line-height: 1.14; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); letter-spacing: -.015em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); letter-spacing: -.01em; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1rem; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.text-muted { color: var(--muted-2); }
.center { text-align: center; }

/* Eyebrow / kicker */
.kicker {
  display: inline-block; font-family: var(--sans); font-weight: 700;
  font-size: .74rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 12px;
}

/* Tags/pills */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.92); color: var(--ink);
  font-family: var(--sans); font-weight: 700; font-size: .72rem;
  text-transform: uppercase; letter-spacing: .05em;
  padding: 6px 12px; border-radius: var(--radius-pill);
}
.pill.solid { background: var(--primary); color: #fff; }
.pill.green { background: var(--green); color: #fff; }
.pill.saffron { background: var(--saffron); color: #fff; }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--sans); font-weight: 600; font-size: .96rem;
  padding: 13px 26px; border-radius: var(--radius-pill);
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .15s, box-shadow .2s, background .2s, border-color .2s;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 10px 22px rgba(214,72,43,.32); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary-dark); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; color: #fff; }
.btn-sm { padding: 9px 18px; font-size: .88rem; }

/* Ícones inline (line-art) */
.ico { width: 1em; height: 1em; display: inline-block; vertical-align: -.125em; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Topbar ---------- */
.topbar { background: var(--ink); color: #e8ddd2; font-size: .82rem; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 38px; }
.topbar a { color: #e8ddd2; }
.topbar a:hover { color: #fff; }
.topbar .tb-links { display: flex; gap: 18px; }
@media (max-width: 720px){ .topbar { display: none; } }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 26px; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); flex-shrink: 0; }
.brand:hover { color: var(--ink); }
.brand .logo {
  width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0;
  background: var(--primary); color: #fff;
  display: grid; place-items: center; font-family: var(--display); font-weight: 600; font-size: 1.5rem;
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.25);
}
.brand .bt { font-family: var(--display); font-weight: 600; font-size: 1.4rem; line-height: 1; }
.brand small { display: block; font-family: var(--sans); font-size: .6rem; font-weight: 700; letter-spacing: .22em; color: var(--primary); text-transform: uppercase; margin-top: 3px; }

.nav-search { flex: 1; max-width: 420px; position: relative; }
.nav-search input {
  width: 100%; height: 44px; padding: 0 16px 0 42px;
  border: 1.5px solid var(--line-2); border-radius: var(--radius-pill);
  background: var(--cream); font-family: var(--sans); font-size: .95rem; color: var(--ink);
}
.nav-search input:focus { outline: none; border-color: var(--primary); background: #fff; }
.nav-search .ico { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--muted-2); font-size: 1.1rem; }

.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; margin-left: auto; }
.nav-links a { font-family: var(--sans); font-weight: 600; font-size: .95rem; color: var(--ink); padding: 9px 14px; border-radius: 8px; }
.nav-links a:hover, .nav-links a.active { color: var(--primary-dark); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; margin-left: auto; }
.nav-toggle span { display: block; width: 24px; height: 2.5px; background: var(--ink); border-radius: 2px; margin: 5px 0; transition: .25s; }

/* Faixa de categorias */
.cat-ribbon { border-bottom: 1px solid var(--line); background: #fff; }
.cat-ribbon .wrap { display: flex; gap: 4px; overflow-x: auto; height: 50px; align-items: center; scrollbar-width: none; }
.cat-ribbon .wrap::-webkit-scrollbar { display: none; }
.cat-ribbon a { font-family: var(--sans); font-weight: 600; font-size: .9rem; color: var(--body); padding: 8px 15px; border-radius: var(--radius-pill); white-space: nowrap; }
.cat-ribbon a:hover { background: var(--primary-soft); color: var(--primary-dark); }

@media (max-width: 900px) {
  .nav { gap: 14px; }
  .nav-search { display: none; }
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 76px; left: 0; right: 0; margin: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 12px 22px 20px; box-shadow: var(--shadow); transform: translateY(-140%); transition: transform .3s; z-index: -1;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 12px 14px; border-radius: 8px; }
}

/* ---------- Placeholder de foto (profissional, sem emoji gigante) ---------- */
.ph {
  position: relative; width: 100%; height: 100%; overflow: hidden;
  background:
    linear-gradient(150deg, rgba(255,255,255,.14), rgba(0,0,0,.14)),
    linear-gradient(135deg, var(--c1, #E8A34A), var(--c2, #D6482B));
}
.ph::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 30% 25%, rgba(255,255,255,.28), transparent 60%),
    radial-gradient(40% 40% at 80% 80%, rgba(0,0,0,.18), transparent 60%);
}
.ph::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 40px; height: 40px;
  transform: translate(-50%, -50%); opacity: .55;
  background: no-repeat center/contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 2v7a2 2 0 0 0 2 2h0V2M7 2v20M14 2s3 1 3 6-3 5-3 5v9'/%3E%3C/svg%3E");
}
.ph .tag { position: absolute; bottom: 8px; right: 10px; z-index: 2; font-size: .58rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.82); }

/* ---------- Seções ---------- */
.section { padding: 60px 0; }
.section.tight { padding: 40px 0; }
.section.cream { background: var(--cream); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 32px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head .kicker { margin-bottom: 6px; }
.section-head p { margin: 8px 0 0; color: var(--muted-2); max-width: 54ch; }

/* ---------- Hero editorial ---------- */
.hero { padding: 48px 0 20px; }
.hero-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; }
.hero-main { position: relative; border-radius: 20px; overflow: hidden; min-height: 460px; box-shadow: var(--shadow); }
.hero-main .ph { position: absolute; inset: 0; }
.hero-overlay { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; justify-content: flex-end; padding: 34px; background: linear-gradient(to top, rgba(20,12,8,.82) 8%, rgba(20,12,8,.25) 45%, transparent 70%); color: #fff; }
/* O h1 do hero é menor que o h1 de artigo: aqui ele divide o espaço com a
   imagem, o resumo e a meta dentro de um card de ~460px. Com o tamanho global
   (até 3.4rem) o título estourava o card em telas médias. */
.hero-overlay h1 {
  color: #fff; max-width: 20ch; margin-bottom: 12px;
  font-size: clamp(1.5rem, 2.2vw, 2.1rem); line-height: 1.15;
  overflow-wrap: break-word; hyphens: auto;
}
.hero-overlay p { color: rgba(255,255,255,.86); max-width: 42ch; margin-bottom: 18px; font-size: .95rem; }
.hero-meta { display: flex; gap: 18px; font-size: .88rem; color: rgba(255,255,255,.9); margin-bottom: 20px; }
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-side { display: grid; grid-template-rows: 1fr 1fr; gap: 24px; }
.hero-card { position: relative; border-radius: 18px; overflow: hidden; min-height: 218px; box-shadow: var(--shadow-sm); }
.hero-card .ph { position: absolute; inset: 0; }
.hero-card .hc-body { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; justify-content: flex-end; padding: 20px; background: linear-gradient(to top, rgba(20,12,8,.8), transparent 62%); color: #fff; }
.hero-card h3 { color: #fff; font-size: 1.15rem; margin: 0; }
.hero-card .hc-body small { color: rgba(255,255,255,.82); font-size: .82rem; }
@media (max-width: 880px){ .hero-grid { grid-template-columns: 1fr; } .hero-main { min-height: 380px; } .hero-side { grid-template-rows: none; grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .hero-side { grid-template-columns: 1fr; } }

/* ---------- Cards de receita (revista) ---------- */
.recipe-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 28px; }
.recipe-grid.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px){ .recipe-grid.four { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 520px){ .recipe-grid.four { grid-template-columns: 1fr; } }
.card { background: #fff; border-radius: var(--radius); overflow: hidden; transition: transform .2s; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-4px); }
.card-media { position: relative; aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.card-media .pill { position: absolute; top: 12px; left: 12px; z-index: 2; box-shadow: var(--shadow-sm); }
.card-media .fav { position: absolute; top: 10px; right: 10px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.9); display: grid; place-items: center; color: var(--primary); }
.card-body { padding: 14px 2px 4px; display: flex; flex-direction: column; flex: 1; }
.card-cat { font-family: var(--sans); font-weight: 700; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); margin-bottom: 6px; }
.card-body h3 { font-family: var(--display); margin: 0 0 8px; font-size: 1.18rem; line-height: 1.22; }
.card-body h3 a { color: var(--ink); }
.card-body h3 a:hover { color: var(--primary-dark); }
.card-meta { display: flex; gap: 14px; margin-top: auto; padding-top: 12px; font-size: .84rem; color: var(--muted-2); align-items: center; }
.card-meta span { display: inline-flex; align-items: center; gap: 5px; }
.stars { color: var(--saffron); letter-spacing: 1px; font-size: .82rem; }
.card-credit { font-size: .76rem; color: var(--muted-2); margin-top: 8px; display: flex; align-items: center; gap: 5px; }

/* Lista "mais populares" (numerada) */
.rank-list { list-style: none; margin: 0; padding: 0; }
.rank-list li { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.rank-list li:last-child { border-bottom: 0; }
.rank-num { font-family: var(--display); font-size: 1.5rem; color: var(--line-2); font-weight: 600; width: 30px; flex-shrink: 0; }
.rank-thumb { width: 66px; height: 66px; border-radius: 12px; overflow: hidden; flex-shrink: 0; position: relative; }
.rank-thumb .ph { position: absolute; inset: 0; }
.rank-list h4 { font-family: var(--display); font-size: 1rem; margin: 0 0 3px; line-height: 1.2; }
.rank-list h4 a { color: var(--ink); }
.rank-list small { color: var(--muted-2); font-size: .8rem; }

/* ---------- Categorias (grid visual) ---------- */
.cat-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 18px; }
.cat-tile { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3/2.1; box-shadow: var(--shadow-sm); }
.cat-tile .ph { position: absolute; inset: 0; transition: transform .3s; }
.cat-tile:hover .ph { transform: scale(1.06); }
.cat-tile span { position: absolute; inset: 0; z-index: 2; display: flex; align-items: flex-end; padding: 14px; background: linear-gradient(to top, rgba(20,12,8,.72), transparent 60%); color: #fff; font-family: var(--display); font-weight: 600; font-size: 1.12rem; }

/* ---------- Notice / aviso ---------- */
.notice { display: flex; gap: 13px; align-items: flex-start; background: var(--green-soft); border: 1px solid #CFE4D6; border-radius: var(--radius-sm); padding: 15px 17px; font-size: .93rem; }
.notice .ico { color: var(--green); font-size: 1.2rem; flex-shrink: 0; margin-top: 2px; }
.notice.amber { background: #FCF3E1; border-color: #F0DEB6; }
.notice.amber .ico { color: var(--saffron); }
.notice.blue  { background: #EBF2FA; border-color: #D2E1F1; }
.notice.blue .ico { color: #3E6FA8; }
.notice p { margin: 0; }
.notice strong { color: var(--ink); }

/* ---------- Bloco de crédito ---------- */
.credit-box { display: flex; align-items: center; gap: 13px; flex-wrap: wrap; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 13px 16px; margin: 6px 0 16px; }
.credit-box .avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; color: #fff; font-family: var(--display); font-weight: 600; }
.credit-box .meta { flex: 1; min-width: 150px; }
.credit-box .meta small { color: var(--muted-2); display: block; font-size: .78rem; }
.credit-box .meta strong { font-family: var(--sans); color: var(--ink); }

/* ---------- Vídeo embed ---------- */
.video-embed { position: relative; width: 100%; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; background: #14100c; box-shadow: var(--shadow-sm); }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-embed .vph { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; background: radial-gradient(circle at 50% 42%, #2a231d, #100c09); color: #fff; cursor: pointer; }
.video-embed .play { width: 72px; height: 72px; border-radius: 50%; background: var(--primary); display: grid; place-items: center; margin: 0 auto 12px; box-shadow: 0 12px 26px rgba(214,72,43,.5); }
.video-embed .play::after { content: ""; border-style: solid; border-width: 11px 0 11px 19px; border-color: transparent transparent transparent #fff; margin-left: 4px; }
.video-embed .vph small { color: rgba(255,255,255,.65); }

/* ---------- Artigo: layout 2 colunas ----------
   Conteúdo à esquerda (largura de leitura preservada), sidebar à direita.
   A sidebar é o lugar dos anúncios: fica fora do fluxo de leitura e não
   empurra o conteúdo — os slots têm altura reservada para não causar CLS.
   O índice vem ANTES do artigo no HTML (no mobile é onde ele serve); aqui no
   desktop ele é colocado na coluna direita, acima da sidebar. */
.article-layout {
  display: grid;
  /* A coluna lateral encolhe de 320 até 280 quando falta espaço, em vez de
     espremer o texto: entre 1025 e 1200px, 760+320+40 não cabia no wrap. */
  grid-template-columns: minmax(0, 1fr) clamp(280px, 26vw, 320px);
  grid-template-areas: "artigo indice" "artigo lateral";
  grid-template-rows: auto 1fr;
  column-gap: clamp(24px, 3vw, 40px);
  row-gap: 20px;
  align-items: start;
  padding: 32px 0 50px;
}
.article-layout > .article { grid-area: artigo; min-width: 0; max-width: 760px; padding: 0; margin: 0; }

/* Índice sticky (acompanha a leitura). A sidebar rola normalmente: dois
   elementos sticky na mesma coluna se sobreporiam ao rolar. */
.article-layout > .sb-toc { grid-area: indice; position: sticky; top: 88px; z-index: 1; }
.sidebar { grid-area: lateral; display: flex; flex-direction: column; gap: 20px; }
.sb-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.sb-card > h3 {
  font-family: var(--display); font-size: 1rem; margin: 0 0 12px;
  padding-bottom: 10px; border-bottom: 1px solid var(--line); color: var(--ink);
}
.sb-card.is-cream { background: var(--cream); }

/* TOC na sidebar: rolagem própria para não esticar a coluna */
.sb-toc nav { max-height: 46vh; overflow-y: auto; }
.sb-toc ol, .sb-toc ul { margin: 0; padding-left: 18px; }
.sb-toc li { margin: 6px 0; font-size: .9rem; line-height: 1.45; }
.sb-toc a { color: var(--body); text-decoration: none; }
.sb-toc a:hover { color: var(--primary); text-decoration: underline; }

/* Ficha rápida: rótulo + valor em duas colunas */
.sb-facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 0; font-size: .9rem; }
.sb-facts dt { color: var(--muted-2); }
.sb-facts dd { margin: 0; color: var(--ink); font-weight: 600; text-align: right; }

/* Lista de posts compacta */
.sb-list { display: flex; flex-direction: column; gap: 12px; }
.sb-item { display: grid; grid-template-columns: 72px 1fr; gap: 10px; align-items: center; text-decoration: none; }
.sb-item .ph { width: 72px; height: 54px; border-radius: 8px; overflow: hidden; position: relative; flex: none; }
.sb-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sb-item span { font-size: .88rem; line-height: 1.35; color: var(--ink); font-weight: 500; }
.sb-item:hover span { color: var(--primary); }

/* Slot de anúncio — altura reservada evita layout shift (CLS) */
.ad-slot {
  display: grid; place-items: center; min-height: 250px;
  background: var(--cream); border: 1px dashed var(--line-2);
  border-radius: var(--radius); color: var(--muted-2); font-size: .8rem;
}
.ad-slot.is-tall { min-height: 600px; }

@media (max-width: 1024px) {
  /* Uma coluna, na ordem do HTML: índice → artigo → sidebar. O índice fica
     acima do texto, que é onde ele serve no celular. */
  .article-layout {
    grid-template-columns: 1fr;
    grid-template-areas: "indice" "artigo" "lateral";
    row-gap: 0;
  }
  .article-layout > .article { max-width: 760px; margin: 0 auto; }
  .article-layout > .sb-toc {
    position: static; max-width: 760px; margin: 0 auto 24px; width: 100%;
  }
  .sb-toc nav { max-height: none; }
  .sidebar { position: static; max-width: 760px; margin: 0 auto 40px; width: 100%; }
}

/* ---------- Artigo / receita ---------- */
.article { max-width: 760px; margin: 0 auto; padding: 32px 0 50px; }
.article-head { margin-bottom: 22px; }
.article-head h1 { margin: 10px 0 14px; }
.byline { display: flex; align-items: center; gap: 12px; color: var(--muted-2); font-size: .9rem; flex-wrap: wrap; }
.byline .avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--green); display: grid; place-items: center; color: #fff; font-family: var(--display); font-weight: 600; font-size: .9rem; }
.byline b { color: var(--ink); }
.rating-inline { display: inline-flex; align-items: center; gap: 6px; }
.article-lead { font-size: 1.16rem; color: var(--body); line-height: 1.7; }
.article-hero { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/10; margin: 22px 0; box-shadow: var(--shadow); }
.article-hero .ph { position: absolute; inset: 0; }

.jump-bar { display: flex; gap: 10px; flex-wrap: wrap; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 16px; margin: 18px 0; align-items: center; font-size: .92rem; }
.jump-bar strong { font-family: var(--display); color: var(--ink); margin-right: 4px; }

.recipe-card-box { border: 2px solid var(--line-2); border-radius: var(--radius); overflow: hidden; margin: 30px 0; }
.recipe-card-box .rcb-head { background: var(--ink); color: #fff; padding: 20px 24px; }
.recipe-card-box .rcb-head h2 { color: #fff; margin: 0 0 6px; }
.recipe-card-box .rcb-head .rating-inline { color: var(--saffron); font-size: .9rem; }
.recipe-card-box .rcb-body { padding: 24px; }

.recipe-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px; margin: 0 0 24px; text-align: center; background: var(--cream); }
.recipe-facts .f small { display: block; color: var(--muted-2); font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; }
.recipe-facts .f strong { font-family: var(--display); font-size: 1.15rem; color: var(--ink); }
@media (max-width: 620px){ .recipe-facts { grid-template-columns: repeat(2,1fr); } }

.recipe-cols { display: grid; grid-template-columns: 1fr 1.5fr; gap: 32px; }
@media (max-width: 720px){ .recipe-cols { grid-template-columns: 1fr; gap: 24px; } }
.ingredients h3, .steps-wrap h3 { font-family: var(--display); }
.ingredients ul { list-style: none; margin: 0; padding: 0; }
.ingredients li { padding: 9px 0 9px 28px; position: relative; border-bottom: 1px solid var(--line); font-size: .96rem; }
.ingredients li::before { content: ""; position: absolute; left: 2px; top: 14px; width: 13px; height: 13px; border: 2px solid var(--primary); border-radius: 4px; }
.ingredients li:last-child { border-bottom: 0; }
.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; }
.steps li { position: relative; padding: 0 0 24px 54px; }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 36px; height: 36px; background: var(--primary); color: #fff; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 600; }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 17px; top: 40px; bottom: 8px; width: 2px; background: var(--line); }
.steps li h4 { font-family: var(--display); margin: 3px 0 6px; font-size: 1.08rem; }

.tip { background: var(--green-soft); border-left: 4px solid var(--green); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 14px 18px; margin: 16px 0; }
.tip strong { color: var(--green); }

.tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 26px 0; }
.tag { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 6px 14px; font-size: .85rem; color: var(--muted-2); }
.tag:hover { border-color: var(--primary); color: var(--primary-dark); }

.author-box { display: flex; gap: 18px; align-items: flex-start; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin: 30px 0; }
.author-box .avatar { width: 62px; height: 62px; border-radius: 50%; flex-shrink: 0; background: var(--green); display: grid; place-items: center; color: #fff; font-family: var(--display); font-weight: 600; font-size: 1.3rem; }
.author-box h4 { font-family: var(--display); margin: 0 0 4px; }

/* Prosa */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .5em; }
.legal-updated { color: var(--muted-2); font-size: .9rem; }

/* Breadcrumb */
.crumbs { font-size: .84rem; color: var(--muted-2); padding: 18px 0 0; }
.crumbs a { color: var(--muted-2); }
.crumbs a:hover { color: var(--primary-dark); }

/* Newsletter */
.newsletter { background: var(--ink); color: #fff; border-radius: 22px; padding: 48px; text-align: center; position: relative; overflow: hidden; }
.newsletter::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 100% at 50% 0%, rgba(214,72,43,.4), transparent 60%); }
.newsletter > * { position: relative; }
.newsletter h2 { color: #fff; }
.newsletter p { color: rgba(255,255,255,.8); max-width: 46ch; margin: 0 auto 22px; }
.newsletter form { display: flex; gap: 10px; max-width: 480px; margin: 0 auto; flex-wrap: wrap; }
.newsletter input { flex: 1; min-width: 200px; padding: 14px 18px; border-radius: var(--radius-pill); border: 0; font-size: 1rem; font-family: var(--sans); }
.newsletter small { display: block; margin-top: 14px; color: rgba(255,255,255,.55); font-size: .82rem; }
.form-feedback { color: var(--saffron); }

/* Filtros */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.chip { background: #fff; border: 1.5px solid var(--line-2); border-radius: var(--radius-pill); padding: 9px 18px; font-family: var(--sans); font-weight: 600; font-size: .9rem; cursor: pointer; transition: .18s; color: var(--body); }
.chip:hover { border-color: var(--primary); }
.chip.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Formulários */
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-family: var(--sans); font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.form-field input, .form-field textarea, .form-field select { width: 100%; padding: 13px 16px; border: 1.5px solid var(--line-2); border-radius: var(--radius-sm); font-size: 1rem; font-family: var(--sans); background: #fff; color: var(--ink); }
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--primary); }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); }

/* Footer */
.site-footer { background: var(--ink); color: #c9bcb0; margin-top: 40px; padding: 56px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 36px; }
.site-footer h4 { color: #fff; font-family: var(--display); font-size: 1.05rem; margin-bottom: 14px; }
.site-footer a { color: #c9bcb0; display: block; padding: 4px 0; font-size: .93rem; }
.site-footer a:hover { color: var(--saffron); }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.site-footer .brand .logo { background: var(--primary); }
.site-footer .brand .bt { color: #fff; }
.footer-about { font-size: .92rem; color: #a99c90; max-width: 36ch; }
.footer-bottom { border-top: 1px solid #3a322b; margin-top: 36px; padding-top: 22px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: .84rem; color: #8f8377; }

@media (max-width: 780px){ .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px; } }

.mt-0{margin-top:0}.mt-1{margin-top:10px}.mt-2{margin-top:20px}.mt-3{margin-top:30px}
.mb-0{margin-bottom:0}.mb-2{margin-bottom:20px}

/* ══════════════════════════════════════════════════════════════════════════
   DYNAMIC LAYER
   Styles for markup that only exists once pages are driven by the API.
   Kept in this same file on purpose: the whole theme is ONE stylesheet, so
   Cloudflare serves it as a single long-lived cached request per visitor.
   ═════════════════════════════════════════════════════════════════════════ */

/* Real photos inside a .ph placeholder ------------------------------------
   .ph paints a gradient plus a decorative utensil glyph for posts with no
   image yet. When the API does return a photo, it fills the box and the
   decoration must be hidden — otherwise the glyph shows on top of the food. */
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.ph:has(img)::before, .ph:has(img)::after { content: none; }
.ph .pill, .ph .tag { z-index: 2; }

/* Accessibility: keyboard skip link (visible only when focused) */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--primary); color: #fff; padding: 12px 18px; border-radius: 0 0 var(--radius-sm) 0; font-family: var(--sans); font-weight: 600; }
.skip-link:focus { left: 0; }

/* Sticky header — enabled per domain via the admin (header.sticky) */
.site-header.sticky { position: sticky; top: 0; z-index: 50; }

/* Logo image variant of the brand mark (admin-uploaded logo) */
.brand .logo-img { height: 40px; width: auto; display: block; border-radius: 10px; }

/* Categoria ativa na barra.
   Verde, não o vermelho da marca: o logo já ocupa o vermelho no mesmo campo
   de visão, e repeti-lo aqui faz o item ativo competir com a identidade em vez
   de indicar "você está aqui". O verde é a cor secundária da paleta, tem
   contraste suficiente com o branco (AA) e não aparece em mais nada no header. */
.cat-ribbon a.active { background: var(--green); color: #fff; border-color: var(--green); }
.cat-ribbon a.active:hover { background: #356744; border-color: #356744; }

/* Footer social row */
.footer-social { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 16px; }
.footer-social a { display: inline-block; padding: 0; font-size: .88rem; }

/* Empty states — a listing with no posts is still a useful page */
.empty-state { text-align: center; max-width: 60ch; margin: 0 auto; padding: 56px 20px; }
.empty-state h2 { margin: 6px 0 12px; }
.empty-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }

/* Pagination */
.pagination { display: flex; gap: 8px; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 48px; list-style: none; padding: 0; }
.pagination a, .pagination span { display: inline-block; padding: 10px 16px; border-radius: var(--radius-sm); border: 1.5px solid var(--line-2); font-family: var(--sans); font-weight: 600; font-size: .9rem; background: #fff; }
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .current { background: var(--primary); border-color: var(--primary); color: #fff; }

/* Back-to-top button (admin toggle: config.show_back_to_top) */
.goto-top { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--primary); color: #fff; font-size: 1.2rem; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; box-shadow: var(--shadow-sm); }
.goto-top.show { opacity: 1; pointer-events: auto; }
.goto-top:hover { transform: translateY(-2px); }

/* Recipe utilities bar: print / save / WhatsApp + Pinterest share.
   WhatsApp first because it is the dominant sharing channel in Brazil. */
.recipe-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 26px 0; }
.recipe-tools .btn { font-size: .86rem; }
.btn-whatsapp { background: #25D366; border-color: #25D366; color: #fff; }
.btn-whatsapp:hover { filter: brightness(.94); color: #fff; }

/* Serving scaler: recalculates ingredient amounts for a different yield */
.portion-tool { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; font-family: var(--sans); font-size: .9rem; }
.portion-tool button { width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--line-2); background: #fff; font-size: 1.1rem; font-weight: 700; cursor: pointer; color: var(--ink); line-height: 1; }
.portion-tool button:hover { border-color: var(--primary); color: var(--primary); }
.portion-tool output { font-weight: 700; min-width: 5ch; text-align: center; }
.ingredients li.scaled { color: var(--ink); }
.ingredients li .qty-scaled { font-weight: 700; color: var(--primary); }

/* Video facade: the iframe is only injected on click, so no third-party
   request or cookie happens before the reader asks for the video. */
.video-embed .vph { cursor: pointer; }
.video-embed iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; }
.video-fallback { padding: 22px; text-align: center; background: var(--cream); border: 1px dashed var(--line-2); border-radius: var(--radius-sm); font-family: var(--sans); }

/* Article body: styling for HTML that arrives from the CMS */
.article-body > h2 { margin-top: 38px; }
.article-body > h3 { margin-top: 26px; }
.article-body img { max-width: 100%; height: auto; border-radius: var(--radius-sm); margin: 22px 0; }
.article-body ul, .article-body ol { margin: 0 0 20px 22px; }
.article-body li { margin-bottom: 8px; }
.article-body table { width: 100%; border-collapse: collapse; margin: 22px 0; font-size: .94rem; display: block; overflow-x: auto; }
.article-body th, .article-body td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.article-body iframe { max-width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--radius-sm); }
.article-body blockquote { margin: 22px 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--primary); color: var(--body); font-style: italic; }

/* Table of contents (from the CMS toc array) */
.toc { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 22px 26px; margin: 26px 0; font-family: var(--sans); }
.toc h2 { font-size: 1.05rem; margin: 0 0 10px; font-family: var(--display); }
.toc ol { margin: 0 0 0 18px; }
.toc li { margin-bottom: 6px; font-size: .93rem; }

/* Search results header */
.search-head { padding: 40px 0 0; }
.search-head form { display: flex; gap: 10px; max-width: 560px; margin-top: 18px; flex-wrap: wrap; }
.search-head input { flex: 1; min-width: 220px; padding: 13px 18px; border: 1.5px solid var(--line-2); border-radius: var(--radius-pill); font-size: 1rem; font-family: var(--sans); }
.search-head input:focus { outline: none; border-color: var(--primary); }

@media (max-width: 900px) {
  .recipe-tools { gap: 8px; }
  .recipe-tools .btn { flex: 1 1 auto; justify-content: center; }
}

/* Homepage: main grid + sidebar. Was an inline style in the static mock-up;
   moved here so the breakpoint lives with the rest of the responsive rules. */
.home-split { display: grid; grid-template-columns: 1fr 320px; gap: 44px; align-items: start; }
@media (max-width: 980px) { .home-split { grid-template-columns: 1fr; gap: 40px; } }

/* Icon badge in the "why trust us" row */
.trust-ico { width: 46px; height: 46px; border-radius: 12px; background: var(--primary-soft); display: grid; place-items: center; color: var(--primary); margin-bottom: 12px; }
.trust-ico .ico { width: 22px; height: 22px; }

/* ══════════════════════════════════════════════════════════════════════════
   PRINT — the "Imprimir" button is a required feature, so printing has to
   produce a usable recipe sheet: ingredients + steps, nothing else. Chrome and
   the site furniture are dropped rather than wasting the reader's paper.
   ═════════════════════════════════════════════════════════════════════════ */
@media print {
  .topbar, .site-header, .cat-ribbon, .site-footer, .crumbs,
  .jump-bar, .recipe-tools, .portion-tool, .newsletter, .goto-top,
  .video-embed, .credit-box, .notice, .toc, .tags, .author-box,
  .skip-link, .section-head .btn { display: none !important; }

  /* Related recipes are navigation, not part of the printed recipe. */
  main > .section:last-child { display: none !important; }

  body { background: #fff; color: #000; font-size: 11pt; }
  .wrap { max-width: none; padding: 0; }
  .article-hero { max-height: 8cm; }
  .article-hero img { max-height: 8cm; object-fit: cover; }

  .recipe-card-box { border: 1px solid #999; box-shadow: none; break-inside: avoid; }
  .recipe-cols { display: block; }
  .ingredients { break-inside: avoid; margin-bottom: 1cm; }
  .steps li { break-inside: avoid; }

  /* Print the destination of body links so a paper copy stays useful. */
  .article-body a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }

  a { text-decoration: none; color: #000; }
  h1 { font-size: 20pt; }
  h2 { font-size: 14pt; }
}
