/* Layout: find a recipe first, then explore. */
.hero{grid-template-columns:minmax(0,1.12fr) minmax(0,1fr);gap:44px;padding-top:32px;padding-bottom:40px;align-items:start}
.hero h1{font-size:clamp(38px,4.1vw,54px);margin:17px 0;line-height:1.08}
.hero .sub{margin:0 0 18px;line-height:1.65}
.hero-finder{display:block;padding:20px 22px;border:1px solid #e1cb63;border-radius:18px;background:#fff6c2;box-shadow:0 8px 24px #30250007}
.hero-finder h2{font-size:26px;line-height:1.2;margin:0 0 7px}
.hero-finder>div>p{font-size:13px;line-height:1.55;margin:0 0 15px}
.hero-finder .searchbox{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px;padding:7px;border-radius:12px}
.hero-finder .searchbox select{grid-column:1/-1;min-height:38px;width:100%;padding:7px 9px;border:0;border-bottom:1px solid var(--line);background:none;font:inherit;font-size:13px}
.hero-finder .searchbox input{min-width:0;width:100%;font-size:16px;padding:10px 8px}
.hero-finder .searchbox .btn{margin:0;min-height:46px;gap:6px;padding:10px 13px;font-size:12px;justify-content:center}
.hero-finder .pantry-options{margin-top:10px}
.hero-finder .examples{display:flex;flex-wrap:wrap;gap:7px;margin-top:14px}
.hero-finder .examples button{min-height:40px;font-size:11px;padding:7px 9px}
.hero-browse-link{display:inline-flex;align-items:center;gap:14px;margin-top:17px;min-height:38px;font-weight:700}
.hero .smallnote{margin-top:8px}
.hero-image{height:auto;aspect-ratio:1/1;align-self:center;margin:0}
.hero-image img{object-fit:contain;border-radius:52px 12px 12px 12px}
.hero-image .image-note{left:-12px;bottom:16px;padding:15px 18px}
.hero-image .circle{right:-8px}

/* Compact one-line navigation, with a real menu before space runs out. */
.top header{gap:20px;flex-wrap:nowrap}
.top .brand{flex:0 0 auto}
.top #navigation{gap:3px;flex:0 1 auto;min-width:0}
.top #navigation>a{padding:0 9px;white-space:nowrap;flex:0 0 auto;font-size:13px}
.top #navigation .favnav{white-space:nowrap;flex:0 0 auto;padding:0 12px;font-size:13px}

/* Show the complete photograph, using its natural proportions. */
.recipe-page>figure{margin:26px auto;width:fit-content;max-width:100%}
.recipe-page .recipe-page-image{display:block;width:auto;height:auto;aspect-ratio:auto;max-width:100%;max-height:520px;object-fit:contain;border-radius:16px;margin-inline:auto}
.recipe-page>figure figcaption{max-width:780px;margin:9px auto 0;line-height:1.6}
.recipe-image{height:auto;max-height:360px;object-fit:contain;aspect-ratio:auto;background:#f5f0df}

/* One shared, aligned footer, including the collaboration link. */
.site-footer{padding:30px 0 0;margin-top:20px;background:#fff9e5}
.site-footer .footer-main{display:grid;grid-template-columns:minmax(220px,1fr) minmax(0,2fr);align-items:start;gap:30px}
.site-footer .footer-brand .brand{display:inline-flex}
.site-footer .footer-brand p{font-size:12px;line-height:1.65;color:var(--muted);margin:13px 0 0}
.site-footer .site-footer-links{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:4px 20px;align-items:center;min-width:0}
.site-footer .site-footer-links a,.site-footer .site-footer-links button{display:inline-flex;align-items:center;min-height:44px;padding:8px 0;border:0;background:none;color:#403b2b;font:inherit;font-size:12px;text-decoration:none;line-height:1.4}
.site-footer .site-footer-links a:hover,.site-footer .site-footer-links button:hover{text-decoration:underline;text-underline-offset:4px}
.site-footer .footer-social{display:contents}
.site-footer .footer-social>a{position:fixed;inset:auto;right:calc(14px + env(safe-area-inset-right,0px));z-index:40;display:inline-flex;align-items:center;justify-content:center;width:auto;height:auto;min-height:48px;gap:9px;padding:10px 15px;border-radius:999px;font-size:12px;white-space:nowrap;box-shadow:0 4px 14px #1919191a}
.site-footer .footer-social .instagram-float{bottom:calc(80px + env(safe-area-inset-bottom,0px))}
.site-footer .footer-social .whatsapp-float{bottom:calc(20px + env(safe-area-inset-bottom,0px))}
.site-footer .footer-social>a>span:last-child{display:inline}
.site-footer .footer-bottom{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-top:22px;padding:15px 0;border-top:1px solid var(--line);font-size:11px;color:var(--muted)}
.site-footer .footer-bottom>a{display:inline-flex;align-items:center;min-height:44px;gap:8px}

@media(max-width:1280px){
 .top header{height:auto;min-height:76px;position:relative;flex-wrap:wrap;padding-top:12px;padding-bottom:12px;gap:12px}
 .top .menu-toggle{display:inline-flex;align-items:center;justify-content:center;min-height:46px;margin-left:auto;padding:10px 14px}
 .top #navigation{display:none;position:absolute;top:100%;left:0;right:0;width:100%;max-height:calc(100dvh - 86px);overflow-y:auto;background:var(--bg);border-bottom:1px solid var(--line);box-shadow:0 12px 22px #19191914;padding:12px 20px;flex-direction:column;align-items:stretch;gap:4px;z-index:30}
 .top #navigation.open{display:flex}
 .top #navigation>a,.top #navigation .favnav{display:flex;width:100%;justify-content:flex-start;min-height:46px;margin:0;border-radius:10px;padding:0 12px;font-size:13px;white-space:normal}
}
@media(max-width:800px){
 .hero{grid-template-columns:1fr;gap:28px;padding-top:24px;padding-bottom:28px}
 .hero h1{font-size:clamp(36px,8vw,48px);margin:16px 0;max-width:600px}
 .hero .sub{font-size:14px;max-width:100%;margin-bottom:16px}
 .hero-finder{padding:18px 16px}
 .hero-finder h2{font-size:24px}
 .hero-finder .searchbox{grid-template-columns:minmax(0,1fr) auto}
 .hero-finder .searchbox select{font-size:16px}
 .hero-finder .searchbox .btn{width:auto;min-width:94px;font-size:12px}
 .hero-image{width:min(100%,480px);justify-self:center;aspect-ratio:1/1;height:auto;margin:0 0 12px}
 .hero-image .image-note{left:0;bottom:12px}
 .hero-image .circle{right:0}
 .site-footer .footer-main{grid-template-columns:1fr;gap:18px}
 .site-footer .site-footer-links{justify-content:flex-start;gap:3px 20px}
 .recipe-page .recipe-page-image{max-height:65svh}
 .recipe-page > .recipe-cover{width:min(100%,520px)}
 .recipe-page > .recipe-cover .recipe-page-image{
  width:100%;
  max-height:none;
  aspect-ratio:1/1;
  object-fit:cover;
 }
}
@media(max-width:480px){
 .hero .eyebrow{font-size:9px;letter-spacing:1.4px}
 .hero h1{font-size:38px;letter-spacing:-1.5px}
 .hero-finder .searchbox{grid-template-columns:1fr}
 .hero-finder .searchbox input{min-height:46px}
 .hero-finder .searchbox .btn{width:100%;min-height:46px}
 .hero-finder .searchbox select{grid-column:auto}
 .hero .smallnote{display:none}
 .site-footer .footer-social>a{width:48px;height:48px;padding:0;gap:0;border-radius:50%;font-size:0}
 .site-footer .footer-social>a>span:last-child{display:none}
 .site-footer .site-footer-links{display:grid;grid-template-columns:1fr 1fr;gap:4px 16px}
}

.hero-finder .ingredient-options{grid-template-columns:repeat(3,minmax(0,1fr));max-height:360px}
@media(max-width:480px){.hero-finder .ingredient-options{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Reading and touch targets stay comfortable on narrow screens. */
.recipe-gallery-grid figcaption{font-size:14px;line-height:1.65}
.recipe-shortcuts{flex-wrap:wrap}
.recipe-shortcuts a{min-height:44px;display:inline-flex;align-items:center}
#recipebody .recipe-gallery{scroll-margin-top:24px}
#recipebody h3[id],.recipe-page [id]{scroll-margin-top:110px}
@media(max-width:700px){
 body{font-size:16px}
 input,select,textarea{font-size:16px}
 .hero-finder .examples button,.hero-finder>div>p,.hero-finder .pantry-options label,.hero-finder .assistant-status{font-size:14px}
 .recipe-gallery-grid{gap:16px 10px}
 .recipe-page .recipe-list,.recipe-page .recipe-steps,#recipebody .recipe-list,#recipebody ol{font-size:16px;line-height:1.8}
}
@media(max-width:480px){.recipe-gallery-grid{grid-template-columns:1fr;gap:22px}}
