/* PenniZone — estilos principais (mobile first) */
:root {
  --bg: #FBF3EA;
  --bg-2: #F5E7DA;
  --surface: #FFFFFF;
  --ink: #2E1F33;
  --ink-2: #5F4D63;
  --ink-3: #8A788C;
  --plum: #56336A;
  --plum-2: #3E2250;
  --pink: #D46BC8;
  --pink-ink: #A23C95;
  --pink-soft: #F8E1F3;
  --cream: #FAF0E8;
  --line: #EADACB;
  --line-2: #DCC7B5;
  --ok: #2E7A4C;
  --ok-soft: #E1F2E6;
  --warn: #B86A12;
  --warn-soft: #FBEBD6;
  --bad: #B3364A;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(62, 34, 80, .06), 0 8px 24px rgba(62, 34, 80, .08);
  --shadow-lg: 0 18px 50px rgba(62, 34, 80, .18);
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.65 var(--font-body); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--pink-ink); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--plum); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--plum-2); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5.2vw, 3.3rem); font-weight: 800; }
h2 { font-size: clamp(1.45rem, 3.2vw, 2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 2px; border-radius: 6px; }
.icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.small { font-size: .9rem; color: var(--ink-2); }
.hint { font-size: .92rem; color: var(--ink-3); }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--plum); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 200; }
.skip-link:focus { top: 12px; color: #fff; }
.eyebrow { display: inline-flex; align-items: center; gap: .45em; font-weight: 800; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: var(--pink-ink); margin-bottom: .8em; }
.eyebrow a { color: inherit; text-decoration: none; }
.lead { font-size: clamp(1.06rem, 2vw, 1.22rem); color: var(--ink-2); max-width: 64ch; }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 44px; padding: .6em 1.15em; border-radius: 999px; border: 2px solid transparent; font-weight: 800; font-size: .98rem; text-decoration: none; cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s, color .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--plum); color: var(--cream); box-shadow: 0 4px 0 var(--plum-2); }
.btn-primary:hover { background: var(--plum-2); color: #fff; }
.btn-ghost { background: var(--surface); color: var(--plum); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--pink); color: var(--plum-2); }
.btn-light { background: var(--cream); color: var(--plum-2); }
.btn-light:hover { background: #fff; color: var(--plum-2); }
.btn-lg { min-height: 52px; padding: .75em 1.5em; font-size: 1.05rem; }
.btn-sm { min-height: 38px; padding: .4em .9em; font-size: .9rem; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; color: var(--plum); cursor: pointer; position: relative; text-decoration: none; }
.icon-btn:hover { background: var(--pink-soft); color: var(--plum-2); }
.icon-btn .icon { width: 22px; height: 22px; }
.link-btn { background: none; border: 0; color: var(--pink-ink); font-weight: 700; cursor: pointer; text-decoration: underline; padding: 4px; }

/* Cabeçalho */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251, 243, 234, .94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 12px; height: var(--header-h); }
.brand img { height: 34px; width: auto; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.fav-count { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--pink); color: #fff; font-size: .7rem; font-weight: 800; display: grid; place-items: center; line-height: 1; }
.main-nav { position: fixed; inset: var(--header-h) 0 auto 0; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); padding: 8px 16px 18px; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .2s; max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
.main-nav.open { transform: none; opacity: 1; visibility: visible; }
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav a { display: flex; align-items: center; gap: 12px; padding: 13px 10px; border-radius: 12px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.05rem; }
.main-nav a .icon { color: var(--pink-ink); width: 22px; height: 22px; }
.main-nav a:hover, .main-nav a[aria-current="page"] { background: var(--pink-soft); color: var(--plum-2); }
@media (max-width: 420px) { .hide-sm { display: none !important; } }
@media (min-width: 1060px) {
  .menu-toggle { display: none; }
  .main-nav { position: static; transform: none; opacity: 1; visibility: visible; background: none; border: 0; box-shadow: none; padding: 0; margin-left: 18px; max-height: none; overflow: visible; }
  .main-nav ul { display: flex; gap: 2px; }
  .main-nav a { padding: 8px 12px; font-size: .95rem; gap: 7px; }
  .main-nav a .icon { width: 18px; height: 18px; }
  .main-nav .nav-extra { display: none; }
  .brand img { height: 38px; }
}

/* Busca global */
.search-overlay { position: fixed; inset: 0; z-index: 100; background: rgba(46, 31, 51, .45); display: flex; justify-content: center; align-items: flex-start; padding: 70px 12px 12px; }
.search-dialog { width: 100%; max-width: 680px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; }
.search-form { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 18px; border-bottom: 1px solid var(--line); }
.search-form > .icon { color: var(--pink-ink); width: 22px; height: 22px; }
.search-form input { flex: 1; border: 0; outline: 0; font-size: 1.15rem; padding: 12px 0; background: none; min-width: 0; }
.search-hint { margin: 0; padding: 10px 18px; font-size: .85rem; color: var(--ink-3); background: var(--bg); }
kbd { font: 700 .8rem var(--font-body); background: var(--surface); border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 6px; padding: 1px 6px; }
.suggest-list { max-height: min(60vh, 460px); overflow-y: auto; }
.suggest-list:empty { display: none; }
.suggest-group { padding: 10px 18px 4px; font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.suggest-item { display: flex; align-items: center; gap: 12px; padding: 9px 18px; color: var(--ink); text-decoration: none; }
.suggest-item img, .suggest-item .s-ph { width: 54px; height: 40px; border-radius: 8px; object-fit: cover; flex: none; background: var(--bg-2); display: grid; place-items: center; color: var(--pink-ink); }
.suggest-item strong { display: block; font-weight: 700; line-height: 1.3; }
.suggest-item span { font-size: .85rem; color: var(--ink-3); }
.suggest-item:hover, .suggest-item.active { background: var(--pink-soft); }
.suggest-item mark { background: none; color: var(--pink-ink); font-weight: 800; }
.suggest-empty { padding: 16px 18px; color: var(--ink-2); }
.suggest-all { display: block; padding: 12px 18px; font-weight: 800; border-top: 1px solid var(--line); text-decoration: none; }

/* Breadcrumbs */
.breadcrumbs { padding-top: 14px; font-size: .88rem; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; color: var(--ink-3); }
.breadcrumbs li + li::before { content: "›"; margin-right: 4px; color: var(--line-2); }
.breadcrumbs a { color: var(--ink-2); text-decoration: none; }
.breadcrumbs a:hover { color: var(--pink-ink); text-decoration: underline; }

/* Seções */
.section { padding: 48px 0; }
.section-tint { background: var(--bg-2); }
.section-plum { background: var(--plum); color: var(--cream); }
.section-plum h2 { color: #fff; }
.section-plum .eyebrow { color: #F4B8EA; }
.section-head { margin-bottom: 24px; }
.section-head p { color: var(--ink-2); margin: 0; max-width: 62ch; }
.section-head-row { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: flex-end; justify-content: space-between; }
.section-head h2 .icon { color: var(--pink-ink); }
.page-head { padding-top: 22px; padding-bottom: 18px; }
.page-head h1 { margin-bottom: .3em; }
@media (min-width: 900px) { .section { padding: 72px 0; } .page-head { padding-top: 34px; } }

/* Hero */
.hero { padding: 26px 0 40px; background: radial-gradient(1200px 500px at 85% -10%, var(--pink-soft), transparent 60%); }
.hero-grid { display: grid; gap: 28px; align-items: center; }
.hero h1 { margin-bottom: .35em; }
.hero-search { position: relative; display: flex; align-items: center; gap: 8px; background: var(--surface); border: 2px solid var(--line-2); border-radius: 999px; padding: 6px 6px 6px 18px; box-shadow: var(--shadow); margin: 22px 0 16px; max-width: 580px; }
.hero-search:focus-within { border-color: var(--pink); }
.hero-search > .icon { color: var(--pink-ink); width: 22px; height: 22px; }
.hero-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; padding: 10px 0; font-size: 1.05rem; }
.suggest-inline { position: absolute; left: 0; right: 0; top: calc(100% + 8px); background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-lg); z-index: 20; border: 1px solid var(--line); }
.hero-media { margin: 0; position: relative; }
.hero-media img { border-radius: 28px; box-shadow: var(--shadow-lg); aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
figcaption { font-size: .78rem; color: var(--ink-3); margin-top: 8px; }
@media (min-width: 900px) { .hero { padding: 54px 0 70px; } .hero-grid { grid-template-columns: 1.08fr .92fr; gap: 54px; } }

/* Chips */
.chip-row { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.chip-row::-webkit-scrollbar { display: none; }
.chip-row-wrap { flex-wrap: wrap; overflow: visible; }
@media (min-width: 600px) { .hero .chip-row { flex-wrap: wrap; overflow: visible; } }
.chip { display: inline-flex; align-items: center; gap: .4em; min-height: 40px; padding: .4em 1em; border-radius: 999px; background: var(--surface); border: 1.5px solid var(--line-2); color: var(--plum-2); font-weight: 700; font-size: .93rem; text-decoration: none; white-space: nowrap; cursor: pointer; user-select: none; transition: .15s; }
.chip .icon { color: var(--pink-ink); }
.chip:hover { border-color: var(--pink); color: var(--plum-2); }
.chip-small { min-height: 34px; font-size: .85rem; padding: .3em .8em; }
.chip-check { padding: 0; position: relative; }
.chip-check input { position: absolute; opacity: 0; pointer-events: none; }
.chip-check span { display: inline-flex; align-items: center; gap: .4em; padding: .4em 1em; min-height: 40px; }
.chip-check:has(input:checked) { background: var(--plum); border-color: var(--plum); color: #fff; }
.chip-check:has(input:checked) .icon { color: #F4B8EA; }
.chip-check:has(input:focus-visible) { outline: 3px solid var(--pink); outline-offset: 2px; }
.chip-cloud { display: flex; flex-wrap: wrap; gap: 8px; }

/* Ferramentas */
.tool-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .tool-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .tool-grid { grid-template-columns: repeat(4, 1fr); } }
.tool-card { display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: var(--radius); text-decoration: none; color: var(--ink); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.tool-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: var(--ink); }
.tool-card strong { font-family: var(--font-head); font-size: 1.3rem; color: var(--plum-2); line-height: 1.2; }
.tool-card > span:not(.tool-icon):not(.tool-go) { color: var(--ink-2); font-size: .97rem; flex: 1; }
.tool-icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--pink-soft); color: var(--pink-ink); }
.tool-icon .icon { width: 28px; height: 28px; }
.tool-go { font-weight: 800; color: var(--pink-ink); display: inline-flex; gap: .4em; align-items: center; margin-top: 6px; }
.tool-pink { background: var(--pink); border-color: var(--pink); }
.tool-pink strong, .tool-pink .tool-go, .tool-pink > span:not(.tool-icon):not(.tool-go) { color: #2b0f2a; }
.tool-pink .tool-icon { background: rgba(255, 255, 255, .55); color: var(--plum-2); }
.tool-plum { background: var(--plum); border-color: var(--plum); }
.tool-plum strong { color: #fff; }
.tool-plum > span:not(.tool-icon):not(.tool-go) { color: #EBDDF0; }
.tool-plum .tool-go { color: #F4B8EA; }
.tool-plum .tool-icon { background: rgba(255, 255, 255, .14); color: #F4B8EA; }

/* Molhos */
.sauce-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .sauce-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .sauce-grid { grid-template-columns: repeat(3, 1fr); } }
.sauce-pill { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 16px 18px 16px 22px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); position: relative; overflow: hidden; transition: .15s; }
.sauce-pill::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--sc, var(--pink)); }
.sauce-pill:hover { border-color: var(--sc, var(--pink)); transform: translateY(-2px); color: var(--ink); }
.sauce-pill strong { font-family: var(--font-head); color: var(--plum-2); font-size: 1.1rem; }
.sauce-pill span { grid-column: 1; font-size: .9rem; color: var(--ink-2); line-height: 1.45; }
.sauce-pill em { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-style: normal; font-weight: 800; font-size: .82rem; color: var(--pink-ink); background: var(--pink-soft); padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.sauce-tomate { --sc: #D9472B; } .sauce-ragu { --sc: #8C3B22; } .sauce-creme { --sc: #E5C98F; } .sauce-queijo { --sc: #E7B43C; }
.sauce-manteiga { --sc: #D9A441; } .sauce-pesto { --sc: #4E8B3A; } .sauce-azeite { --sc: #A5A530; } .sauce-vegetais { --sc: #6AA84F; } .sauce-caldo { --sc: #C08A4A; }

/* Cards */
.card-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .card-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1140px) { .card-grid { grid-template-columns: repeat(4, 1fr); } .card-grid-3 { grid-template-columns: repeat(3, 1fr); } }
.card { position: relative; display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; height: 100%; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card-media { position: relative; display: block; aspect-ratio: 3 / 2; background: var(--bg-2); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-media img { transform: scale(1.04); }
.card-ph, .media-ph { display: grid; place-items: center; width: 100%; height: 100%; color: var(--pink); background: repeating-linear-gradient(45deg, var(--bg-2), var(--bg-2) 12px, var(--cream) 12px, var(--cream) 24px); }
.card-ph .icon, .media-ph .icon { width: 48px; height: 48px; }
.media-ph { aspect-ratio: 3 / 2; border-radius: 24px; }
.card-badges { position: absolute; left: 10px; top: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: .74rem; font-weight: 800; padding: 4px 9px; border-radius: 999px; background: rgba(255, 255, 255, .94); color: var(--plum-2); }
.badge .icon { width: 14px; height: 14px; }
.badge-veg { color: var(--ok); }
.badge-fast { color: var(--pink-ink); }
.fav-btn { position: absolute; top: 8px; right: 8px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .94); color: var(--pink-ink); display: grid; place-items: center; cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, .12); transition: transform .15s; }
.fav-btn:hover { transform: scale(1.08); }
.fav-btn .icon { width: 22px; height: 22px; grid-area: 1 / 1; }
[data-fav] .on, [data-fav][aria-pressed="true"] .off { display: none; }
[data-fav][aria-pressed="true"] .on { display: inline; }
.fav-btn[aria-pressed="true"] { color: var(--pink); }
.fav-btn.pop { animation: pop .35s; }
@keyframes pop { 50% { transform: scale(1.3); } }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.card-kicker { font-size: .76rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--pink-ink); margin: 0 0 4px; }
.card-title { font-size: 1.16rem; margin: 0 0 6px; line-height: 1.25; }
.card-title a { color: var(--plum-2); text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card-title a:hover { color: var(--pink-ink); }
.fav-btn { z-index: 2; }
.card-text { font-size: .93rem; color: var(--ink-2); margin: 0 0 12px; line-height: 1.5; flex: 1; }
.card-meta { list-style: none; margin: 0; padding: 10px 0 0; border-top: 1px dashed var(--line); display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .82rem; color: var(--ink-2); font-weight: 700; }
.card-meta li { display: inline-flex; gap: 4px; align-items: center; }
.card-meta .icon { color: var(--ink-3); width: 15px; height: 15px; }
.diff-facil { color: var(--ok) !important; } .diff-media { color: var(--warn) !important; } .diff-dificil { color: var(--bad) !important; }
.card-meta .diff .icon { color: currentColor; }
.card-scroller { display: grid; grid-auto-flow: column; grid-auto-columns: min(78%, 290px); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; }
.card-scroller > * { scroll-snap-align: start; }

/* Sorteador */
.randomizer { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .randomizer { grid-template-columns: 1fr 1fr; gap: 48px; } }
.randomizer .btn { margin-top: 18px; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; align-items: center; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: inline-block; padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1.5px solid var(--line-2); font-weight: 700; font-size: .92rem; }
.seg input:checked + span { background: var(--pink); border-color: var(--pink); color: #2b0f2a; }
.seg input:focus-visible + span { outline: 3px solid var(--plum); outline-offset: 2px; }
.seg-small span { padding: 5px 12px; font-size: .86rem; }
.seg-label { font-size: .9rem; color: var(--ink-2); margin-right: 4px; font-weight: 700; }
.randomizer-result { min-height: 320px; display: grid; }
.roll-empty { display: grid; place-items: center; text-align: center; border: 2px dashed var(--line-2); border-radius: var(--radius); color: var(--ink-3); padding: 30px; }
.roll-empty .icon { width: 48px; height: 48px; color: var(--pink); }
.roll-card { display: grid; grid-template-rows: auto 1fr; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); text-decoration: none; color: var(--ink); animation: rollIn .45s cubic-bezier(.2, 1.4, .4, 1); }
.roll-card img, .roll-card .card-ph { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; height: auto; }
.roll-card div { padding: 18px 20px; }
.roll-card strong { font-family: var(--font-head); font-size: 1.5rem; color: var(--plum-2); display: block; line-height: 1.2; margin-bottom: 4px; }
.roll-card p { margin: 0 0 8px; color: var(--ink-2); }
.roll-card em { font-style: normal; font-weight: 800; color: var(--pink-ink); font-size: .9rem; }
.roll-card.spinning { animation: none; filter: blur(1.5px); opacity: .8; }
@keyframes rollIn { from { transform: scale(.92) rotate(-1.5deg); opacity: 0; } to { transform: none; opacity: 1; } }

/* Despensa (home) */
.pantry-teaser { display: grid; gap: 24px; }
@media (min-width: 900px) { .pantry-teaser { grid-template-columns: .8fr 1.2fr; align-items: center; gap: 48px; } }
.pantry-teaser p { color: #EBDDF0; }
.pantry-quick .chip { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .25); color: #fff; }
.pantry-quick .chip-check:has(input:checked) { background: var(--pink); border-color: var(--pink); color: #2b0f2a; }
.pantry-quick .btn { margin-top: 18px; }

/* Coleções */
.collection-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .collection-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .collection-grid { grid-template-columns: repeat(4, 1fr); } }
.collection-card { display: flex; flex-direction: column; gap: 6px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: .2s; }
.collection-card:hover { border-color: var(--pink); transform: translateY(-2px); color: var(--ink); }
.collection-card strong { font-family: var(--font-head); font-size: 1.15rem; color: var(--plum-2); }
.collection-card span:not(.collection-icon) { font-size: .92rem; color: var(--ink-2); flex: 1; }
.collection-card em { font-style: normal; font-weight: 800; font-size: .85rem; color: var(--pink-ink); }
.collection-icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--pink-soft); color: var(--pink-ink); }
.collection-icon .icon { width: 24px; height: 24px; }
.collection-row { padding: 26px 0; border-bottom: 1px solid var(--line); }
.other-collections { margin: 46px 0 10px; }

/* Sobre (home) */
.about-strip { display: grid; gap: 20px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 26px; }
@media (min-width: 760px) { .about-strip { grid-template-columns: 96px 1fr; padding: 36px; gap: 30px; } }
.about-strip p { color: var(--ink-2); }

/* Explorador */
.explorer-top { display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 760px) { .explorer-top { flex-direction: row; align-items: center; } .explorer-top .search-field { flex: 1; } }
.search-field { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 2px solid var(--line-2); border-radius: 999px; padding: 0 16px; min-height: 50px; }
.search-field:focus-within { border-color: var(--pink); }
.search-field .icon { color: var(--pink-ink); width: 20px; height: 20px; }
.search-field input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; padding: 10px 0; font-size: 1rem; }
.explorer-tools { display: flex; gap: 8px; }
.select-field select, .field select { appearance: none; min-height: 48px; padding: 0 40px 0 16px; border-radius: 999px; border: 2px solid var(--line-2); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2356336A' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 16px center; font-weight: 700; cursor: pointer; max-width: 100%; }
.filters-toggle { flex: none; }
.count-pill { background: var(--pink); color: #2b0f2a; border-radius: 999px; padding: 0 8px; font-size: .8rem; min-width: 22px; }
.quick-toggles { display: flex; gap: 8px; overflow-x: auto; padding: 14px 0 6px; scrollbar-width: none; }
.quick-toggles::-webkit-scrollbar { display: none; }
.quick-toggles .chip { flex: none; }
.explorer-layout { display: grid; gap: 24px; margin-top: 10px; }
.explorer-filters { position: fixed; inset: 0 0 0 auto; width: min(380px, 92vw); background: var(--bg); z-index: 90; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; transform: translateX(105%); transition: transform .25s; }
.explorer-filters.open { transform: none; }
.filters-backdrop { position: fixed; inset: 0; background: rgba(46, 31, 51, .4); z-index: 89; }
.filters-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 10px 10px 18px; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
.filters-scroll { overflow-y: auto; flex: 1; padding: 6px 18px 18px; }
.filters-foot { display: flex; gap: 10px; padding: 12px 18px; border-top: 1px solid var(--line); background: var(--surface); }
.filters-foot .btn { flex: 1; }
.facet { border-bottom: 1px solid var(--line); padding: 4px 0; }
.facet summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 0; font-weight: 800; color: var(--plum-2); }
.facet summary::-webkit-details-marker { display: none; }
.facet summary::after { content: "+"; font-size: 1.3rem; color: var(--pink-ink); line-height: 1; }
.facet[open] summary::after { content: "–"; }
.facet-sel { margin-left: auto; font-size: .78rem; background: var(--pink-soft); color: var(--pink-ink); border-radius: 999px; padding: 1px 8px; }
.facet-sel:empty { display: none; }
.facet ul { list-style: none; margin: 0 0 10px; padding: 0; }
.check { display: flex; align-items: center; gap: 10px; padding: 7px 4px; border-radius: 8px; cursor: pointer; font-size: .97rem; }
.check:hover { background: var(--pink-soft); }
.check input { width: 20px; height: 20px; accent-color: var(--plum); flex: none; margin: 0; }
.check-label { flex: 1; }
.facet-n { font-size: .8rem; color: var(--ink-3); font-weight: 700; min-width: 2ch; text-align: right; }
.check.zero { opacity: .45; }
@media (min-width: 1000px) {
  .explorer-layout { grid-template-columns: 270px 1fr; align-items: start; }
  .explorer-filters { position: sticky; top: calc(var(--header-h) + 12px); inset: auto; width: auto; transform: none; box-shadow: none; z-index: 1; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); max-height: calc(100vh - var(--header-h) - 24px); }
  .filters-head .icon-btn, .filters-toggle, [data-filters-apply] { display: none !important; }
  .filters-backdrop { display: none; }
}
.results-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 14px; min-height: 40px; }
.results-count { margin: 0; color: var(--ink-2); }
.results-count strong { color: var(--plum-2); font-size: 1.2rem; }
.active-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.active-chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 6px 4px 12px; border-radius: 999px; background: var(--plum); color: #fff; font-size: .85rem; font-weight: 700; border: 0; cursor: pointer; }
.active-chip .icon { width: 16px; height: 16px; }
.active-chip:hover { background: var(--plum-2); }
.card-grid-explorer { grid-template-columns: 1fr; }
@media (min-width: 560px) { .card-grid-explorer { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1140px) { .card-grid-explorer { grid-template-columns: repeat(3, 1fr); } }
.card-wrap { display: contents; }
.empty-state { text-align: center; padding: 40px 20px; background: var(--surface); border: 2px dashed var(--line-2); border-radius: var(--radius); }
.empty-state > .icon { width: 54px; height: 54px; color: var(--pink); margin: 0 auto 10px; }
.empty-state p { color: var(--ink-2); max-width: 48ch; margin-left: auto; margin-right: auto; }
.explorer-help h2 { margin-bottom: 18px; }
.help-grid { display: grid; gap: 16px; }
@media (min-width: 700px) { .help-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .help-grid { grid-template-columns: repeat(4, 1fr); } }
.help-grid > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px; }
.help-grid h3 { display: flex; gap: 8px; align-items: center; font-size: 1.05rem; }
.help-grid h3 .icon { color: var(--pink-ink); }
.help-grid p { font-size: .95rem; color: var(--ink-2); margin: 0; }

/* Receita */
.recipe-hero { display: grid; gap: 22px; padding-top: 18px; padding-bottom: 10px; }
@media (min-width: 960px) { .recipe-hero { grid-template-columns: 1fr 1fr; gap: 46px; align-items: center; padding-top: 28px; } }
.recipe-hero h1 { margin-bottom: .2em; }
.recipe-sub { font-size: 1.2rem; color: var(--ink-2); font-family: var(--font-head); font-weight: 600; margin-bottom: .8em; }
.recipe-summary { color: var(--ink-2); }
.recipe-hero-media { margin: 0; }
.recipe-hero-media img { border-radius: 24px; box-shadow: var(--shadow-lg); aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.tag-row { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px; border-radius: 999px; background: var(--pink-soft); color: var(--pink-ink); font-weight: 800; font-size: .84rem; }
.recipe-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 12px; }
.fav-toggle[aria-pressed="true"] { border-color: var(--pink); color: var(--pink-ink); }
.byline { font-size: .88rem; color: var(--ink-3); margin: 0; }
.byline a { color: var(--ink-2); }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 22px 0; }
@media (min-width: 640px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.facts > div { background: var(--surface); padding: 14px 16px; }
.facts dt { font-size: .76rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); display: flex; align-items: center; gap: 5px; }
.facts dt .icon { color: var(--pink-ink); width: 16px; height: 16px; }
.facts dd { margin: 2px 0 0; font-weight: 800; font-size: 1.05rem; color: var(--plum-2); }
.facts dd a { color: inherit; }
.fact-strong { background: var(--pink-soft) !important; }
.facts-compact { grid-template-columns: repeat(3, 1fr); }
.jump-nav { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 0 22px; padding: 8px 0; position: sticky; top: var(--header-h); background: var(--bg); z-index: 5; border-bottom: 1px solid var(--line); }
.jump-nav::-webkit-scrollbar { display: none; }
.jump-nav a { flex: none; padding: 6px 13px; border-radius: 999px; font-weight: 700; font-size: .9rem; color: var(--plum); text-decoration: none; background: var(--surface); border: 1px solid var(--line); }
.jump-nav a:hover { border-color: var(--pink); }
.prose { max-width: 72ch; }
.prose p, .prose li { color: #3d2c42; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .45em; }
.prose h2 { margin-top: 1.6em; }
.narrow { max-width: 780px; }
.recipe-intro { margin-bottom: 30px; font-size: 1.08rem; }
.recipe-main { display: grid; gap: 28px; align-items: start; }
@media (min-width: 960px) { .recipe-main { grid-template-columns: 370px 1fr; gap: 44px; } .ingredients-inner { position: sticky; top: calc(var(--header-h) + 64px); max-height: calc(100vh - var(--header-h) - 80px); overflow-y: auto; } }
.ingredients-inner { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.ingredients-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.ingredients-head h2 { margin: 0; }
.servings { display: inline-flex; align-items: center; gap: 2px; background: var(--bg); border-radius: 999px; padding: 2px; border: 1px solid var(--line); }
.servings output { font-weight: 800; font-size: 1.1rem; min-width: 2ch; text-align: center; color: var(--plum-2); }
.servings-label { font-size: .85rem; color: var(--ink-2); margin-right: 4px; }
.servings .icon-btn { width: 38px; height: 38px; }
.ingredients h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .05em; color: var(--pink-ink); margin: 18px 0 6px; font-family: var(--font-body); font-weight: 800; }
.ing-list { list-style: none; margin: 0; padding: 0; }
.ing { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px dashed var(--line); cursor: pointer; }
.ing input { width: 20px; height: 20px; accent-color: var(--plum); margin: 3px 0 0; flex: none; }
.ing-text { line-height: 1.45; }
.ing .qty { color: var(--plum-2); }
.ing .qty.changed { color: var(--pink-ink); }
.ing small { display: block; color: var(--ink-3); font-size: .85rem; }
.ing .opt { font-style: normal; font-size: .72rem; font-weight: 800; text-transform: uppercase; background: var(--bg-2); color: var(--ink-3); padding: 1px 6px; border-radius: 6px; margin-left: 4px; }
.ing:has(input:checked) .ing-text { text-decoration: line-through; color: var(--ink-3); }
.ing:has(input:checked) .qty { color: var(--ink-3); }
.ingredients [data-copy-list] { margin-top: 16px; }
.equipment { margin-top: 18px; padding-top: 6px; }
.equipment ul { margin: 0; padding-left: 1.2em; font-size: .95rem; color: var(--ink-2); }
.equipment h3 { display: flex; gap: 6px; align-items: center; }
.steps-head { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.steps-head h2 { margin: 0; }
.progress { flex: 1; min-width: 140px; max-width: 260px; height: 10px; border-radius: 999px; background: var(--bg-2); overflow: hidden; }
.progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--pink), var(--plum)); transition: width .3s; }
.step-list { list-style: none; margin: 0; padding: 0; }
.step { display: grid; grid-template-columns: 48px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.step-check { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--pink); background: var(--surface); color: var(--plum-2); font-weight: 800; font-size: 1.1rem; cursor: pointer; display: grid; place-items: center; font-family: var(--font-head); }
.step-check .icon { display: none; width: 22px; height: 22px; }
.step.done .step-check { background: var(--plum); border-color: var(--plum); color: #fff; }
.step.done .step-check .icon { display: block; }
.step.done .step-n { display: none; }
.step.done .step-body { opacity: .55; }
.step-body h3 { margin: 8px 0 6px; }
.step-body p { margin: 0 0 8px; }
.timer-btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px; border-radius: 999px; border: 1.5px solid var(--pink); background: var(--pink-soft); color: var(--plum-2); font-weight: 800; font-size: .88rem; cursor: pointer; }
.timer-btn:hover { background: var(--pink); }
.callout { background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--pink); border-radius: var(--radius-sm); padding: 18px 20px; margin: 26px 0; }
.callout h2, .callout h3 { display: flex; align-items: center; gap: 8px; font-size: 1.15rem; }
.callout h2 .icon, .callout h3 .icon { color: var(--pink-ink); }
.callout p:last-child { margin-bottom: 0; }
.callout-sauce { background: var(--pink-soft); border-color: var(--pink); }
.callout-tip { border-left-color: #E3B33C; background: #FFF8E7; }
.callout-tip strong { display: flex; gap: 6px; align-items: center; color: #8a5a00; margin-bottom: 4px; }
.recipe-section { margin: 40px 0; }
.recipe-section h2 { display: flex; align-items: center; gap: 10px; }
.recipe-section h2 .icon { color: var(--pink-ink); width: 26px; height: 26px; }
.tip-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
@media (min-width: 760px) { .tip-list { grid-template-columns: 1fr 1fr; } }
.tip-list li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px 14px 46px; position: relative; color: #3d2c42; }
.tip-list li::before { content: ""; position: absolute; left: 16px; top: 18px; width: 14px; height: 14px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 4px var(--pink-soft); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); margin: 16px 0; }
table { width: 100%; border-collapse: collapse; font-size: .96rem; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--plum); color: #fff; font-weight: 800; font-size: .85rem; letter-spacing: .03em; }
tbody tr:last-child > * { border-bottom: 0; }
tbody th { color: var(--plum-2); font-weight: 800; }
tbody tr:nth-child(even) { background: #FDF9F5; }
.two-col { display: grid; gap: 10px 40px; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; } }
.error-list { list-style: none; margin: 0; padding: 0; }
.error-list li { padding: 12px 0 12px 32px; border-bottom: 1px dashed var(--line); position: relative; color: #3d2c42; }
.error-list li::before { content: "!"; position: absolute; left: 0; top: 13px; width: 22px; height: 22px; border-radius: 50%; background: var(--warn-soft); color: var(--warn); font-weight: 900; display: grid; place-items: center; font-size: .85rem; }
.dot-list { padding-left: 1.2em; }
.dot-list li { margin-bottom: .5em; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 15px 48px 15px 18px; font-weight: 800; color: var(--plum-2); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--pink-ink); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 18px 16px; margin: 0; color: #3d2c42; }
.tag-cloud { margin: 30px 0 10px; display: flex; flex-wrap: wrap; gap: 8px 14px; }
.tag-cloud a { font-weight: 700; color: var(--ink-2); text-decoration: none; }
.tag-cloud a:hover { color: var(--pink-ink); }

/* Modo cozinha */
.cook-mode { position: fixed; inset: 0; z-index: 120; background: var(--plum-2); color: var(--cream); display: flex; flex-direction: column; }
.cook-top { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 20px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.cook-top strong { font-family: var(--font-head); font-size: 1.1rem; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cook-count { font-weight: 800; color: #F4B8EA; }
.cook-top .icon-btn { color: #fff; }
.cook-top .icon-btn:hover { background: rgba(255, 255, 255, .12); }
.cook-body { flex: 1; overflow-y: auto; padding: 28px 22px; max-width: 820px; margin: 0 auto; width: 100%; }
.cook-body .cook-step-n { font-weight: 800; color: #F4B8EA; text-transform: uppercase; letter-spacing: .08em; font-size: .9rem; }
.cook-body h2 { color: #fff; font-size: clamp(1.6rem, 4vw, 2.4rem); }
.cook-body p { font-size: clamp(1.2rem, 2.6vw, 1.6rem); line-height: 1.55; }
.cook-body .timer-btn { font-size: 1.05rem; padding: 10px 18px; }
.cook-body .cook-ings { margin-top: 26px; padding: 16px 18px; background: rgba(255, 255, 255, .07); border-radius: var(--radius-sm); font-size: 1.05rem; }
.cook-body .cook-ings ul { margin: 6px 0 0; padding-left: 1.2em; }
.cook-nav { display: flex; gap: 10px; padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(255, 255, 255, .12); }
.cook-nav .btn { flex: 1; }
.cook-nav .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .3); }
.cook-nav .btn-primary { background: var(--pink); color: #2b0f2a; box-shadow: none; }
.cook-nav .btn:disabled { opacity: .35; cursor: default; }

/* Cronômetros */
.timer-dock { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 130; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; pointer-events: none; }
@media (min-width: 640px) { .timer-dock { left: auto; width: 340px; } }
.timer { pointer-events: auto; width: 100%; display: flex; align-items: center; gap: 10px; background: var(--surface); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 10px 10px 10px 16px; border: 2px solid var(--pink); }
.timer-time { font: 800 1.5rem var(--font-head); color: var(--plum-2); font-variant-numeric: tabular-nums; min-width: 4.2ch; }
.timer-label { flex: 1; font-size: .85rem; color: var(--ink-2); line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.timer .icon-btn { width: 38px; height: 38px; }
.timer.ring { animation: ring .5s infinite alternate; background: var(--pink-soft); }
@keyframes ring { to { border-color: var(--plum); transform: scale(1.02); } }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); background: var(--plum-2); color: #fff; padding: 12px 20px; border-radius: 999px; font-weight: 700; z-index: 150; box-shadow: var(--shadow-lg); max-width: calc(100% - 32px); text-align: center; }

/* Ferramenta de ingredientes */
.pantry { display: grid; gap: 26px; align-items: start; }
@media (min-width: 1000px) { .pantry { grid-template-columns: 1fr 1fr; gap: 40px; } .pantry-results { position: sticky; top: calc(var(--header-h) + 12px); max-height: calc(100vh - var(--header-h) - 24px); overflow-y: auto; padding-right: 4px; } }
.pantry-picker-head { display: grid; gap: 12px; margin-bottom: 10px; }
.preset-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .9rem; color: var(--ink-2); font-weight: 700; }
.ing-group { border: 0; margin: 0; padding: 14px 0; border-bottom: 1px solid var(--line); }
.ing-group legend { font-family: var(--font-head); font-weight: 700; color: var(--plum-2); font-size: 1.1rem; padding: 0; margin-bottom: 10px; }
.pantry-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 16px; box-shadow: var(--shadow); }
.pantry-summary { display: flex; justify-content: space-between; align-items: center; }
.pantry-summary p { margin: 0; }
.pantry-summary strong { font-size: 1.4rem; color: var(--plum-2); }
.pantry-options { display: grid; gap: 10px; margin-top: 12px; }
.switch { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: .95rem; font-weight: 600; }
.switch input { position: absolute; opacity: 0; }
.switch span { width: 42px; height: 24px; border-radius: 999px; background: var(--line-2); position: relative; flex: none; transition: .2s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: .2s; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.switch input:checked + span { background: var(--plum); }
.switch input:checked + span::after { left: 21px; }
.switch input:focus-visible + span { outline: 3px solid var(--pink); outline-offset: 2px; }
.pantry-group-title { display: flex; align-items: center; gap: 8px; margin: 22px 0 12px; font-size: 1.25rem; }
.pantry-group-title .count-pill { font-family: var(--font-body); font-size: .85rem; }
.match-list { display: grid; gap: 10px; }
.match { display: grid; grid-template-columns: 84px 1fr; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px; text-decoration: none; color: var(--ink); align-items: center; transition: .15s; }
.match:hover { border-color: var(--pink); color: var(--ink); }
.match img, .match .card-ph { width: 84px; height: 64px; object-fit: cover; border-radius: 10px; }
.match strong { display: block; font-family: var(--font-head); color: var(--plum-2); line-height: 1.25; font-size: 1.05rem; }
.match-meta { font-size: .82rem; color: var(--ink-3); font-weight: 700; }
.match-bar { height: 6px; border-radius: 999px; background: var(--bg-2); margin: 6px 0 4px; overflow: hidden; }
.match-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--pink), var(--plum)); }
.missing { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; font-size: .8rem; }
.missing b { font-weight: 800; color: var(--warn); }
.missing span { background: var(--warn-soft); color: #7a4708; border-radius: 6px; padding: 1px 7px; font-weight: 700; }
.ing-group.no-match { display: none; }

/* Formatos */
.matcher { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 22px; margin-bottom: 34px; box-shadow: var(--shadow); }
.matcher h2 { display: flex; align-items: center; gap: 10px; }
.matcher h2 .icon { color: var(--pink-ink); }
.matcher-grid { display: grid; gap: 12px; align-items: end; }
@media (min-width: 760px) { .matcher-grid { grid-template-columns: 1fr auto 1fr; } }
.matcher-or { font-weight: 800; color: var(--ink-3); text-align: center; padding-bottom: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; border: 0; padding: 0; min-width: 0; }
.field-label, .field > span { font-weight: 800; color: var(--plum-2); font-size: .95rem; }
.matcher .field { margin: 0; }
.matcher .field select { width: 100%; }
.matcher-out { margin-top: 18px; }
.matcher-out h3 { margin-bottom: 8px; }
.match-sauces { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.match-sauces a, .match-sauces span { padding: 6px 12px; border-radius: 999px; background: var(--pink-soft); color: var(--plum-2); font-weight: 800; text-decoration: none; font-size: .92rem; }
.match-sauces a:hover { background: var(--pink); }
.match-recipes { padding-left: 1.2em; margin: 0; }
.tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 6px; margin-bottom: 18px; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: none; border: 1.5px solid var(--line-2); background: var(--surface); padding: 8px 16px; border-radius: 999px; font-weight: 800; color: var(--plum); cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--plum); border-color: var(--plum); color: #fff; }
.format-section { margin-bottom: 36px; }
.section-desc { color: var(--ink-2); }
.format-grid { display: grid; gap: 14px; }
@media (min-width: 640px) { .format-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .format-grid { grid-template-columns: repeat(3, 1fr); } }
.format-card { display: grid; grid-template-columns: 110px 1fr; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; text-decoration: none; color: var(--ink); transition: .2s; }
.format-card:hover { border-color: var(--pink); transform: translateY(-2px); color: var(--ink); }
.format-media { width: 110px; height: 110px; border-radius: 14px; overflow: hidden; background: var(--bg-2); display: grid; place-items: center; color: var(--pink); }
.format-media img { width: 100%; height: 100%; object-fit: cover; }
.format-media .icon { width: 40px; height: 40px; }
.format-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.format-body strong { font-family: var(--font-head); font-size: 1.15rem; color: var(--plum-2); }
.format-origin { font-size: .8rem; color: var(--ink-3); font-weight: 700; display: flex; gap: 4px; align-items: center; }
.format-desc { font-size: .88rem; color: var(--ink-2); line-height: 1.45; }
.format-sauces { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.format-sauces em { font-style: normal; font-size: .72rem; font-weight: 800; background: var(--pink-soft); color: var(--pink-ink); padding: 2px 8px; border-radius: 999px; }
.format-count { font-size: .8rem; font-weight: 800; color: var(--plum); margin-top: 2px; }
.format-detail { display: grid; gap: 30px; }
@media (min-width: 900px) { .format-detail { grid-template-columns: 1fr 1fr; gap: 50px; } }
.sauce-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.sauce-list a { display: block; padding: 12px 16px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.sauce-list a:hover { border-color: var(--pink); }
.sauce-list strong { display: block; color: var(--plum-2); }
.sauce-list span { font-size: .9rem; color: var(--ink-2); }

/* Guia */
.read-progress { position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 60; }
.read-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--pink), var(--plum)); }
.guide-hero { padding-top: 20px; max-width: 980px; }
.guide-media { margin: 24px 0 0; }
.guide-media img { border-radius: 24px; aspect-ratio: 3 / 2; object-fit: cover; width: 100%; max-height: 520px; }
.guide-layout { display: grid; gap: 20px; margin-top: 30px; padding-bottom: 40px; }
@media (min-width: 1000px) { .guide-layout { grid-template-columns: 260px 1fr; gap: 50px; } .toc { position: sticky; top: calc(var(--header-h) + 16px); align-self: start; } }
.toc details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; }
.toc summary { font-weight: 800; color: var(--plum-2); cursor: pointer; }
.toc ol { margin: 10px 0 0; padding-left: 1.2em; font-size: .92rem; }
.toc li { margin-bottom: 6px; }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover, .toc a.active { color: var(--pink-ink); font-weight: 800; }
.guide-body { font-size: 1.07rem; }
.guide-body .intro:first-child { font-size: 1.18rem; }
.guide-body section { scroll-margin-top: calc(var(--header-h) + 16px); }

/* Calculadora */
.calc { display: grid; gap: 26px; align-items: start; }
@media (min-width: 960px) { .calc { grid-template-columns: 1.1fr .9fr; gap: 40px; } .calc-result { position: sticky; top: calc(var(--header-h) + 16px); } }
.calc-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.stepper { display: inline-flex; align-items: center; gap: 6px; background: var(--bg); border-radius: 999px; padding: 4px; border: 1px solid var(--line); align-self: flex-start; }
.stepper input { width: 64px; text-align: center; border: 0; background: none; font-weight: 800; font-size: 1.4rem; color: var(--plum-2); -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.option-cards { display: grid; gap: 8px; }
@media (min-width: 560px) { .option-cards { grid-template-columns: 1fr 1fr; } }
.option-cards label { cursor: pointer; position: relative; }
.option-cards input { position: absolute; opacity: 0; }
.option-cards span { display: block; padding: 12px 14px; border-radius: var(--radius-sm); border: 2px solid var(--line); background: var(--bg); height: 100%; }
.option-cards strong { display: block; color: var(--plum-2); }
.option-cards em { font-style: normal; font-size: .85rem; color: var(--ink-2); }
.option-cards input:checked + span { border-color: var(--pink); background: var(--pink-soft); }
.option-cards input:focus-visible + span { outline: 3px solid var(--plum); }
.calc-result { background: var(--plum); color: var(--cream); border-radius: 24px; padding: 24px; box-shadow: var(--shadow-lg); }
.calc-result h2 { color: #fff; }
.calc-list { list-style: none; padding: 0; margin: 0 0 16px; }
.calc-list li { display: flex; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px dashed rgba(255, 255, 255, .22); align-items: baseline; }
.calc-list strong { font-size: 1.15rem; color: #fff; text-align: right; }
.calc-extra { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 14px; }
.calc-extra div { background: rgba(255, 255, 255, .08); border-radius: 12px; padding: 10px 12px; }
.calc-extra dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: #F4B8EA; font-weight: 800; }
.calc-extra dd { margin: 2px 0 0; font-weight: 700; font-size: .95rem; }
.calc-note { font-size: .92rem; color: #EBDDF0; }
.calc-result .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.calc-explain { max-width: 900px; }

/* Contato */
.contact-grid { display: grid; gap: 30px; padding-bottom: 50px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.3fr .7fr; gap: 50px; } }
.contact-form input, .contact-form textarea, .contact-form select { width: 100%; padding: 12px 14px; border-radius: 12px; border: 2px solid var(--line-2); background: var(--surface); }
.contact-form select { border-radius: 12px; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--pink); outline: 0; }
.hp { position: absolute; left: -9999px; }
.alert { padding: 14px 18px; border-radius: 12px; margin-bottom: 18px; font-weight: 700; }
.alert ul { margin: 0; padding-left: 1.2em; }
.alert-ok { background: var(--ok-soft); color: var(--ok); display: flex; gap: 8px; align-items: center; }
.alert-error { background: #FBE3E6; color: var(--bad); }
.contact-aside { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; align-self: start; }
.credits-table img { border-radius: 6px; object-fit: cover; }

/* Favoritas */
.fav-tools { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }

/* 404 */
.not-found { text-align: center; padding: 50px 16px 70px; }
.not-found img { margin: 0 auto 16px; }
.not-found .lead { margin: 0 auto; }
.not-found .hero-search { margin: 24px auto; }

/* Rodapé */
.site-footer { background: var(--plum-2); color: #E6D7EA; margin-top: 30px; }
.footer-grid { display: grid; gap: 30px; padding-top: 48px; padding-bottom: 30px; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; } }
.footer-about img { height: 36px; width: auto; margin-bottom: 14px; background: var(--cream); border-radius: 10px; padding: 4px 10px; box-sizing: content-box; }
.footer-about p { font-size: .95rem; }
.footer-note { display: flex; gap: 8px; font-size: .85rem !important; color: #CDB9D3; }
.footer-note .icon { margin-top: 3px; color: #F4B8EA; }
.site-footer h2 { color: #fff; font-size: 1.05rem; font-family: var(--font-body); font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #E6D7EA; text-decoration: none; }
.site-footer a:hover { color: #F4B8EA; text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: space-between; align-items: center; padding-top: 18px; padding-bottom: 26px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .85rem; }
.footer-bottom p { margin: 0; }
.to-top { display: inline-flex; gap: 6px; align-items: center; font-weight: 700; }

/* Cookies */
.cookie-banner { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 140; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 16px 18px; display: grid; gap: 12px; max-width: 760px; margin: 0 auto; }
.cookie-banner p { margin: 0; font-size: .92rem; color: var(--ink-2); }
.cookie-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cookie-actions .btn { flex: 1; }
@media (min-width: 760px) { .cookie-banner { grid-template-columns: 1fr auto; align-items: center; } }

/* Anúncios */
.ad-slot { margin: 30px auto; text-align: center; min-height: 100px; }
.ad-label { display: block; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px; }

/* Itens de grid não podem crescer além da tela por causa de conteúdo rolável (chips, tabelas) */
.hero-grid > *, .recipe-hero > *, .recipe-main > *, .format-detail > *, .guide-layout > *, .explorer-layout > *, .pantry > *,
.calc > *, .randomizer > *, .contact-grid > *, .pantry-teaser > *, .two-col > *, .matcher-grid > *, .about-strip > * { min-width: 0; }
.facts-compact { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); }
@media (max-width: 999px) { .explorer-filters:not(.open) { visibility: hidden; } }

/* Movimento reduzido */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Impressão */
@media print {
  .site-header, .site-footer, .breadcrumbs, .recipe-actions, .jump-nav, .section, .cookie-banner, .timer-dock, .toast, .servings .icon-btn, .timer-btn, [data-copy-list], .ad-slot, .tag-cloud, .read-progress, .toc, .step-check, .hint { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .recipe-hero { grid-template-columns: 1fr 200px; }
  .recipe-main { grid-template-columns: 1fr 1.6fr; }
  .ingredients-inner { position: static; box-shadow: none; max-height: none; }
  .card, .callout, .ingredients-inner, .tip-list li { box-shadow: none; break-inside: avoid; }
  a { color: inherit; text-decoration: none; }
}
