/* FunToddlerRecipes.com — playful, mobile-first styles */

/* Self-hosted variable fonts (latin subset). File names carry the upstream
   version because /assets/* is cached as immutable. Not preloaded on purpose:
   measured, a preload delays the LCP photo more than the font swap costs. */
@font-face { font-family: "Baloo 2"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("../fonts/baloo2-latin-v23.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 200 1000; font-display: swap; src: url("../fonts/nunito-latin-v32.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  /* The palette is light-only; keep form controls from switching to dark styling. */
  color-scheme: light;
  --cream: #fff8ef;
  --paper: #ffffff;
  --ink: #2b2550;
  --ink-soft: #5d5880;
  --line: #f0e4d6;

  --pink: #ff5c9a;
  --pink-soft: #ffe1ec;
  --sun: #ffc23c;
  --sun-soft: #fff1c9;
  --mint: #22c7a0;
  --mint-soft: #d4f7ec;
  --sky: #3d9bff;
  --sky-soft: #dbeeff;
  --grape: #8f63ff;
  --grape-soft: #ebe2ff;
  --berry: #ff6b57;
  --berry-soft: #ffe2dc;

  /* darker shades for text on light tints (WCAG AA) */
  --pink-ink: #c4246a;
  --sun-ink: #8a5a00;
  --mint-ink: #0b7a60;
  --sky-ink: #0b5fbf;
  --grape-ink: #5f35d1;
  --berry-ink: #c23a26;

  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 10px 30px -12px rgba(43, 37, 80, 0.25);
  --shadow-pop: 0 6px 0 0 rgba(43, 37, 80, 0.12);
  --max: 1180px;
  --font-head: "Baloo 2", "Trebuchet MS", system-ui, sans-serif;
  --font-emoji: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: var(--pink-ink); text-underline-offset: 3px; }
a:hover { color: var(--pink); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
@media (min-width: 720px) { .container { padding-left: max(28px, env(safe-area-inset-left, 0px)); padding-right: max(28px, env(safe-area-inset-right, 0px)); } }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 10px; z-index: 100; }
.skip-link:focus { left: 8px; color: #fff; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ───────── Header ───────── */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--cream); }
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(255, 248, 239, 0.92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 2px dashed var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; line-height: 1; }
.logo:hover { color: var(--ink); }
.logo svg { width: 42px; height: 42px; flex: none; }
.logo .dot { color: var(--pink); }
.logo small { display: block; font-family: var(--font-body); font-weight: 700; font-size: 0.7rem; color: var(--ink-soft); letter-spacing: 0.04em; margin-top: 3px; }
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 14px; border: 2px solid var(--ink);
  background: var(--sun); box-shadow: 0 3px 0 var(--ink); cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 20px; height: 2.5px; background: var(--ink); border-radius: 2px; position: relative; transition: transform .2s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }
.site-nav { display: none; }
.nav-open .site-nav {
  display: block; position: absolute; top: 68px; left: 0; right: 0;
  background: var(--cream); border-bottom: 2px dashed var(--line); padding: 8px 16px 20px;
  box-shadow: 0 20px 30px -20px rgba(43, 37, 80, .3);
}
.site-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.site-nav a { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; text-decoration: none; color: var(--ink); font-weight: 800; }
.site-nav a:hover, .site-nav a[aria-current="page"] { background: var(--pink-soft); color: var(--pink-ink); }
@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .site-nav { display: block; }
  .site-nav ul { display: flex; gap: 2px; }
  .site-nav a { padding: 8px 12px; font-size: 0.98rem; }
}

/* ───────── Buttons & chips ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; border: 2px solid var(--ink);
  background: var(--pink); color: #fff; font-weight: 800; font-size: 1rem; text-decoration: none;
  box-shadow: 0 4px 0 var(--ink); cursor: pointer; transition: transform .12s, box-shadow .12s;
  font-family: var(--font-body); min-height: 48px;
}
.btn:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink); }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { color: var(--ink); }
.btn-sun { background: var(--sun); color: var(--ink); }
.btn-sun:hover { color: var(--ink); }
.btn-sm { padding: 8px 16px; min-height: 40px; font-size: .92rem; }

.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px;
  font-size: 0.8rem; font-weight: 800; text-decoration: none; letter-spacing: .02em;
}
.c-sun { --c: var(--sun); --c-soft: var(--sun-soft); --c-ink: var(--sun-ink); }
.c-mint { --c: var(--mint); --c-soft: var(--mint-soft); --c-ink: var(--mint-ink); }
.c-berry { --c: var(--berry); --c-soft: var(--berry-soft); --c-ink: var(--berry-ink); }
.c-sky { --c: var(--sky); --c-soft: var(--sky-soft); --c-ink: var(--sky-ink); }
.c-grape { --c: var(--grape); --c-soft: var(--grape-soft); --c-ink: var(--grape-ink); }
.c-pink { --c: var(--pink); --c-soft: var(--pink-soft); --c-ink: var(--pink-ink); }
.pill { background: var(--c-soft, var(--pink-soft)); color: var(--c-ink, var(--pink-ink)); }

/* ───────── Hero ───────── */
.hero { position: relative; padding: 36px 0 28px; overflow: hidden; }
.hero-grid { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .hero { padding: 64px 0 48px; } .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 48px; } }
.hero .kicker { display: inline-block; background: var(--mint-soft); color: var(--mint-ink); font-weight: 800; padding: 6px 14px; border-radius: 999px; font-size: .9rem; margin-bottom: 14px; }
.hero h1 .hl { color: var(--pink); position: relative; white-space: nowrap; }
.hero h1 .hl::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0.02em; height: 0.28em; background: var(--sun); opacity: .55; border-radius: 6px; z-index: -1; }
.hero p.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 22px; font-weight: 800; color: var(--ink-soft); font-size: .95rem; }
.hero-stats b { color: var(--ink); font-family: var(--font-head); font-size: 1.3rem; margin-right: 4px; }
.hero-collage { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hero-collage img { border-radius: var(--radius); box-shadow: var(--shadow); border: 4px solid #fff; aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.hero-collage .big { grid-column: span 2; }
.hero-collage .tilt-l { transform: rotate(-2.5deg); }
.hero-collage .tilt-r { transform: rotate(2.5deg); }
.blob { position: absolute; border-radius: 50%; filter: blur(2px); z-index: -1; opacity: .7; }
.blob-1 { width: 280px; height: 280px; background: var(--pink-soft); top: -80px; right: -60px; }
.blob-2 { width: 200px; height: 200px; background: var(--sky-soft); bottom: -60px; left: -70px; }
.blob-3 { width: 120px; height: 120px; background: var(--sun-soft); top: 40%; left: 45%; }

/* ───────── Sections ───────── */
.section { padding: 40px 0; }
@media (min-width: 900px) { .section { padding: 60px 0; } }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 10px 20px; margin-bottom: 22px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 4px 0 0; color: var(--ink-soft); }
.squiggle { display: block; width: 110px; height: 12px; margin-top: 4px; }
.band { background: #fff; border-top: 2px dashed var(--line); border-bottom: 2px dashed var(--line); }

/* ───────── Category tiles ───────── */
.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 720px) { .cat-grid { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; } }
.cat-tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 4px;
  padding: 20px 10px; border-radius: var(--radius); background: var(--c-soft); color: var(--ink);
  text-decoration: none; border: 2px solid transparent; transition: transform .15s, border-color .15s;
  font-weight: 800;
}
.cat-tile:last-child:nth-child(odd) { grid-column: span 2; }
@media (min-width: 720px) { .cat-tile:last-child:nth-child(odd) { grid-column: auto; } }
.cat-tile:hover { transform: translateY(-4px) rotate(-1deg); border-color: var(--c); color: var(--ink); }
.cat-tile .emoji { font-size: 2.2rem; line-height: 1; width: 64px; height: 64px; display: grid; place-items: center; background: #fff; border-radius: 50%; box-shadow: var(--shadow-pop); margin-bottom: 6px; }
.cat-tile .name { font-family: var(--font-head); font-size: 1.2rem; }
.cat-tile .count { font-size: .82rem; color: var(--c-ink); }

/* ───────── Recipe cards ───────── */
.card-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 560px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .card-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
@media (min-width: 1100px) { .card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); } }
.card {
  position: relative; display: flex; flex-direction: column; background: var(--paper); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); transition: transform .18s, box-shadow .18s;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 18px 36px -16px rgba(43, 37, 80, .35); }
.card-img { position: relative; aspect-ratio: 3 / 2; background: var(--c-soft, var(--pink-soft)); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-img .pill { position: absolute; top: 12px; left: 12px; background: #fff; box-shadow: var(--shadow-pop); }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card h3 { margin: 0; font-size: 1.25rem; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card p { margin: 0; color: var(--ink-soft); font-size: .95rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .85rem; font-weight: 800; color: var(--ink-soft); margin-top: auto; padding-top: 8px; }
.meta span { display: inline-flex; align-items: center; gap: 5px; }

/* ───────── Features ───────── */
.feature-grid { display: grid; gap: 16px; }
@media (min-width: 720px) { .feature-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; } }
.feature { background: var(--paper); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); border-top: 6px solid var(--c); }
.feature .icon { font-size: 2rem; }
.feature h3 { margin: 8px 0 6px; }
.feature p { margin: 0; color: var(--ink-soft); }

/* ───────── Page head / breadcrumbs ───────── */
.page-head { padding-top: 28px; padding-bottom: 10px; }
.page-head .lead { color: var(--ink-soft); font-size: 1.1rem; max-width: 46em; }
.breadcrumbs { font-size: .88rem; font-weight: 700; margin-bottom: 12px; color: var(--ink-soft); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; }
.breadcrumbs li + li::before { content: "›"; margin: 0 6px 0 2px; color: var(--pink); }
.breadcrumbs a { color: var(--ink-soft); text-decoration: none; }
.breadcrumbs a:hover { color: var(--pink-ink); text-decoration: underline; }
.chip-row { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 12px; scrollbar-width: none; }
.chip-row::-webkit-scrollbar { display: none; }
.chip-row a { flex: none; padding: 8px 16px; border-radius: 999px; background: #fff; border: 2px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 800; font-size: .92rem; }
.chip-row a:hover, .chip-row a[aria-current="page"] { background: var(--c-soft, var(--pink-soft)); border-color: var(--c, var(--pink)); color: var(--ink); }

/* ───────── Recipe page ───────── */
.recipe-layout { display: grid; gap: 32px; padding-bottom: 40px; }
@media (min-width: 1000px) { .recipe-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; } }
.recipe-hero { display: grid; gap: 20px; }
.recipe-hero .hero-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 5px solid #fff; background: var(--c-soft); aspect-ratio: 3 / 2; }
.recipe-hero .hero-img img { width: 100%; height: 100%; object-fit: cover; }
.recipe-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 6px 0 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .facts { grid-template-columns: repeat(5, 1fr); } }
.facts li:last-child:nth-child(odd) { grid-column: span 2; }
@media (min-width: 640px) { .facts li:last-child:nth-child(odd) { grid-column: auto; } }
.facts li { background: #fff; border-radius: var(--radius-sm); padding: 10px 12px; text-align: center; border: 2px solid var(--line); }
.facts .k { display: block; font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; color: var(--ink-soft); }
.facts .v { display: block; font-family: var(--font-head); font-weight: 800; font-size: 1.1rem; line-height: 1.2; margin-top: 2px; }
.box { background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
@media (min-width: 720px) { .box { padding: 28px 32px; } }
.box + .box, .box + .ad-slot, .ad-slot + .box { margin-top: 24px; }
.box h2 { display: flex; align-items: center; gap: 10px; font-size: 1.7rem; }
.box h2 .badge { font-family: var(--font-emoji); width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 1.3rem; background: var(--c-soft); flex: none; }
.ingredients { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
@media (min-width: 720px) { .ingredients { grid-template-columns: 1fr 1fr; column-gap: 24px; } }
.ingredients label { display: flex; gap: 12px; align-items: flex-start; padding: 8px 6px; border-radius: 10px; cursor: pointer; }
.ingredients label:hover { background: var(--cream); }
.ingredients input { appearance: none; -webkit-appearance: none; flex: none; width: 24px; height: 24px; border: 2.5px solid var(--c); border-radius: 8px; margin: 1px 0 0; display: grid; place-items: center; cursor: pointer; background: #fff; }
.ingredients input:checked { background: var(--c); }
.ingredients input:checked::after { content: "✓"; color: #fff; font-weight: 900; font-size: 15px; line-height: 1; }
.ingredients input:checked + span { text-decoration: line-through; color: var(--ink-soft); }
.allergens { margin-top: 14px; font-size: .92rem; color: var(--ink-soft); }
.allergens strong { color: var(--ink); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; counter-reset: step; }
.step { display: grid; gap: 14px; align-items: start; }
@media (min-width: 720px) { .step { grid-template-columns: 300px 1fr; gap: 22px; } }
.step figure { margin: 0; border-radius: var(--radius-sm); overflow: hidden; background: var(--c-soft); aspect-ratio: 3 / 2; }
.step figure img { width: 100%; height: 100%; object-fit: cover; }
.step-num { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--c); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; margin-right: 10px; box-shadow: 0 3px 0 rgba(43, 37, 80, .2); flex: none; }
.step h3 { display: flex; align-items: center; margin: 0 0 6px; }
.step p { margin: 0; }
.tips { margin: 0; padding-left: 0; list-style: none; display: grid; gap: 10px; }
.tips li { position: relative; padding: 12px 14px 12px 46px; background: var(--sun-soft); border-radius: var(--radius-sm); }
.tips li::before { content: "💡"; position: absolute; left: 14px; top: 11px; }
.notice { display: flex; gap: 12px; padding: 16px; border-radius: var(--radius-sm); background: var(--sky-soft); font-size: .95rem; }
.notice .icon { font-size: 1.4rem; line-height: 1.2; }
.notice p:last-child { margin: 0; }

.sidebar { display: grid; gap: 24px; align-content: start; }
@media (min-width: 1000px) { .sidebar-sticky { position: sticky; top: 92px; display: grid; gap: 24px; } }
.side-box { background: #fff; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.side-box h2 { font-size: 1.25rem; }
.side-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.side-list a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; text-decoration: none; color: var(--ink); font-weight: 700; line-height: 1.25; }
.side-list a:hover { background: var(--cream); }
.side-list img { width: 64px; height: 43px; object-fit: cover; border-radius: 8px; flex: none; }

.byline { margin: -4px 0 12px; font-size: .9rem; font-weight: 700; color: var(--ink-soft); }
.age-grid { display: grid; gap: 12px; }
@media (min-width: 720px) { .age-grid { grid-template-columns: repeat(3, 1fr); } }
.age-card { background: var(--c-soft); border-radius: var(--radius-sm); padding: 14px 16px; }
.age-card h3 { font-size: 1.1rem; margin: 0 0 4px; color: var(--c-ink); }
.age-card p { margin: 0; font-size: .97rem; }
.swaps { margin: 0; display: grid; gap: 12px; }
.swaps div { display: grid; gap: 2px; padding-left: 14px; border-left: 4px solid var(--c); }
.swaps dt { font-weight: 800; }
.swaps dd { margin: 0; }
.faq h3 { font-family: var(--font-body); font-size: 1.05rem; font-weight: 800; margin: 18px 0 4px; }
.faq h3:first-child { margin-top: 0; }
.faq p { margin: 0; }
.guide h3 { margin-top: 18px; font-size: 1.15rem; }
.idea-list { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; }

/* ───────── Prose pages ───────── */
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.4em; font-size: 1.6rem; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .35em; }

details.box { padding: 18px 22px; }
details summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; font-size: 1.05rem; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; font-family: var(--font-head); font-weight: 800; font-size: 1.5rem; line-height: 1; color: var(--pink); }
details[open] summary::after { content: "–"; }

/* ───────── Search / filter ───────── */
.search { position: relative; max-width: 520px; margin: 8px 0 18px; }
.search input { width: 100%; padding: 14px 18px 14px 48px; border-radius: 999px; border: 2px solid var(--ink); font: inherit; font-weight: 700; background: #fff; color: var(--ink); -webkit-text-fill-color: var(--ink); caret-color: var(--pink); box-shadow: 0 4px 0 var(--ink); }
.search input::placeholder { color: var(--ink-soft); -webkit-text-fill-color: var(--ink-soft); opacity: 1; font-weight: 600; }
.search svg { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; }
.empty { display: none; padding: 20px; text-align: center; font-weight: 800; color: var(--ink-soft); }

/* ───────── Ad slots (AdSense-ready) ─────────
   Slots reserve their height up front so ads never shift the layout (CLS). */
.ad-slot { margin: 28px auto; text-align: center; width: 100%; }
.ad-slot::before { content: "Advertisement"; display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-soft); margin-bottom: 6px; font-weight: 700; }
.ad-slot .adsbygoogle, .ad-slot .ad-placeholder { display: block; width: 100%; min-height: 280px; }
.ad-slot.ad-leaderboard .adsbygoogle, .ad-slot.ad-leaderboard .ad-placeholder { min-height: 100px; }
@media (min-width: 728px) { .ad-slot.ad-leaderboard .adsbygoogle, .ad-slot.ad-leaderboard .ad-placeholder { min-height: 90px; max-width: 970px; margin: 0 auto; } }
.ad-slot.ad-sidebar .adsbygoogle, .ad-slot.ad-sidebar .ad-placeholder { min-height: 600px; }
.ad-slot.ad-sidebar { margin: 0; }
@media (max-width: 999px) { .ad-slot.ad-sidebar { display: none; } }
.ad-placeholder { border: 2px dashed #d9c9b6; border-radius: var(--radius-sm); background: repeating-linear-gradient(45deg, #fffaf3, #fffaf3 12px, #fbf1e4 12px, #fbf1e4 24px); display: grid !important; place-items: center; color: #b49d82; font-weight: 800; font-size: .9rem; }

/* ───────── Footer ───────── */
.site-footer { position: relative; margin-top: 40px; background: var(--ink); color: #e9e6ff; padding: 56px 0 28px; }
.site-footer .wave { position: absolute; top: -38px; left: 0; width: 100%; height: 40px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--sun); text-decoration: underline; }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-grid h2 { font-size: 1.1rem; color: var(--sun); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-brand p { color: #c8c3ec; font-size: .95rem; max-width: 32em; }
.footer-brand .logo { color: #fff; margin-bottom: 12px; }
.footer-brand .logo small { color: #c8c3ec; }
.footer-bottom { margin-top: 32px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .15); font-size: .85rem; color: #c8c3ec; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }

.to-top { position: fixed; right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); width: 48px; height: 48px; border-radius: 50%; background: var(--sun); border: 2px solid var(--ink); box-shadow: 0 3px 0 var(--ink); display: grid; place-items: center; font-size: 1.3rem; text-decoration: none; color: var(--ink); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 40; }
.to-top.show { opacity: 1; pointer-events: auto; }

/* ───────── Print (recipe card) ───────── */
@media print {
  .site-header, .site-footer, .sidebar, .ad-slot, .recipe-actions, .to-top, .breadcrumbs, .related, .step figure, .no-print { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .box { box-shadow: none; padding: 0; }
  .recipe-layout { display: block; }
  .recipe-hero .hero-img { max-width: 360px; }
  .step { grid-template-columns: 1fr !important; }
  a { color: inherit; text-decoration: none; }
}
