.recipe-browse,.recipe-section{min-width:0;max-width:100%}
/* Expanded vertical lists never claim horizontal tab gestures. Keep pinch zoom. */
.recipe-section:not(.recipe-browse)>.catalog-grid{touch-action:pan-y pinch-zoom}
.recipe-browse-title h1{margin:8px 0 0}
.recipe-browse-title{margin-bottom:24px}
.recipe-feed-controls{margin:0 0 24px}
.recipe-feed-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border-bottom:1px solid var(--edge);margin-bottom:12px}
.recipe-feed-tabs button{position:relative;min-width:0;min-height:48px;padding:12px 8px;border:0;border-radius:0;background:transparent;color:var(--ink);font:700 1rem/1.3 Georgia,serif;cursor:pointer}
.recipe-feed-tabs button[aria-pressed=true]{color:var(--accent)}
.recipe-feed-tabs button[aria-pressed=true]::after{content:'';position:absolute;bottom:-1px;left:15%;right:15%;height:3px;border-radius:3px;background:var(--accent)}
.recipe-feed-tabs button:focus-visible{outline:3px solid var(--accent);outline-offset:-3px}
.recipe-navigation-tabs{display:flex;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scrollbar-width:none;-ms-overflow-style:none;scroll-snap-type:x proximity;max-width:100%}
.recipe-navigation-tabs::-webkit-scrollbar{display:none;width:0;height:0}
.recipe-navigation-tabs>button{flex:1 0 auto;white-space:nowrap;scroll-snap-align:start;font-size:clamp(12px,3.5vw,16px);padding-inline:8px}
.recipe-navigation-tabs>button:not([data-ui-content]){flex:1 0 auto;white-space:nowrap;overflow-wrap:normal;padding-inline:8px}
.recipe-navigation-tabs>button[aria-pressed=true]::after{bottom:0}
.recipe-shelf{margin:0 0 28px;min-width:0}
.recipe-shelf-header{display:flex;align-items:center;gap:10px;margin-bottom:6px}
.recipe-shelf-heading{display:flex;align-items:center;gap:9px;flex:1;min-width:0;border:0;background:transparent;color:var(--ink);padding:6px 0;text-align:start;cursor:pointer}
.recipe-shelf-heading h2{font:italic 700 clamp(1.3rem,3vw,1.6rem)/1.25 Georgia,serif;margin:0;overflow-wrap:anywhere}
.recipe-weekly-preview .recipe-shelf-heading{cursor:default}
.recipe-weekly-preview .weekly-hint{border-color:var(--edge)}
.recipe-weekly-preview .weekly-hint-main{gap:16px}
.recipe-weekly-preview .weekly-hint-main img{width:clamp(80px,24vw,120px);height:clamp(80px,24vw,120px)}
.recipe-weekly-preview .weekly-hint-copy strong{font-style:normal;line-height:1.3}
.recipe-weekly-preview .weekly-hint-copy .recipe-engagement{margin:6px 0 0}
.recipe-shelf-count{display:inline-grid;place-items:center;min-width:24px;padding:3px 6px;border-radius:99px;background:var(--soft);font-size:.75rem;color:var(--ink)}
.recipe-shelf-more{display:flex;align-items:center;gap:7px;margin-inline-start:auto;white-space:nowrap;color:var(--accent);font-size:.8rem}
.recipe-shelf-more>span{font-size:1.6rem;line-height:1}
.recipe-carousel{overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;padding:0 0 14px;scrollbar-width:thin;scrollbar-color:var(--accent) var(--soft);min-width:0;max-width:100%}
html[data-design][data-page=recipes] #main#main .recipe-carousel{grid-template-columns:none!important;grid-auto-flow:column!important;grid-auto-columns:var(--recipe-carousel-card-width)!important}
.recipe-carousel>.card{scroll-snap-align:start}
.recipe-shelf-arrows{display:flex;gap:5px}
.recipe-shelf-arrows button{display:grid;place-items:center;width:30px;height:30px;border:1px solid var(--edge);border-radius:50%;color:var(--ink);background:var(--surface);font-size:1.2rem;cursor:pointer}
.recipe-shelf-heading:focus-visible,.recipe-carousel:focus-visible,.recipe-shelf-arrows button:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
#main:has(>.recipe-section):has(>.floating-recipes-back)::before{display:none}
.recipe-section-title{display:grid;justify-items:center;align-content:center;gap:4px;min-height:44px;padding-inline:44px;margin:0 0 20px;text-align:center}
.recipe-section-title>span{white-space:nowrap;font-size:.85rem;color:var(--ink)}
.recipe-section-title h1{min-width:0;max-width:100%;margin:0;overflow-wrap:anywhere}
.recipe-section-search-heading{display:flex;align-items:center;gap:10px;margin:0 0 16px;min-width:0}
html[data-design][data-page=recipes] #main#main .recipe-section-search-heading>h1{min-width:0;max-width:100%;margin:0!important;text-align:start!important;color:var(--accent);font:italic 700 clamp(1.4rem,5.5vw,1.8rem)/1.2 var(--al-font,Georgia,serif)!important;overflow-wrap:anywhere}
.recipe-section-search-heading>.recipe-shelf-count{flex:none;font-style:normal;font-weight:600;font-size:.85rem}
@media(max-width:600px){.recipe-shelf-arrows{display:none}.recipe-shelf-more{font-size:.72rem}.recipe-shelf{margin-bottom:24px}}

/* Individual search fields stay visible across all recipe collections. */
html[data-design][data-page=recipes] #main#main#main .catalog-controls:has(.catalog-search-filter-row){border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;padding:0!important}
html[data-design][data-page=recipes] #main#main#main .catalog-search-filter-row input:is([data-recipe-search],[data-personal-recipe-search]){border:1px solid var(--edge)!important;box-shadow:none!important;background:#fff!important}
html[data-design][data-page=recipes] #main#main#main .catalog-search-filter-row input[data-recipe-search]:focus-visible{outline:2px solid var(--accent);outline-offset:2px}

/* Finish each horizontal gesture on a complete card, without scroll anchoring. */
.recipe-carousel{scroll-snap-type:x mandatory;overflow-anchor:none;content-visibility:visible}

/* Faster menu changes: shelves outside the screen skip layout until they approach the viewport. */
.recipe-browse .recipe-shelf[data-recipe-shelf]{content-visibility:auto;contain-intrinsic-size:auto 420px}
