/* Shared navigation rebuilt from approved04. Body/recipe action clearances remain shared. */
:root{--cp-header-height:64px;--cp-dock-height:clamp(68px,21vw,82px);--cp-shell-surface:#061722}
:is(#app,.recipe-video-layout) [data-el-fereej-dock]{position:absolute!important;z-index:80!important;left:0!important;right:0!important;bottom:0!important;display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:0!important;width:100%!important;height:var(--cp-dock-height)!important;min-height:var(--cp-dock-height)!important;flex:0 0 var(--cp-dock-height)!important;margin:0!important;padding:7px 6px max(9px,env(safe-area-inset-bottom))!important;border:0!important;border-top:1px solid var(--cp-border)!important;border-radius:0!important;background:var(--cp-shell-surface)!important;color:var(--cp-text)!important;box-shadow:none!important;overflow:hidden}
:is(#app,.recipe-video-layout) [data-el-fereej-dock]::before,:is(#app,.recipe-video-layout) [data-el-fereej-dock]::after,:is(#app,.recipe-video-layout) [data-el-fereej-dock] .dock-lens{display:none!important}
:is(#app,.recipe-video-layout) [data-el-fereej-dock]>a{position:relative!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:5px!important;min-width:0!important;min-height:44px!important;margin:0!important;padding:3px 0 6px!important;border:0!important;border-radius:0!important;background:transparent!important;color:inherit!important;box-shadow:none!important;text-decoration:none!important}
:is(#app,.recipe-video-layout) [data-el-fereej-dock] .dock-glyph{display:grid!important;place-items:center!important;width:24px!important;height:24px!important;background:none!important;border:0!important;border-radius:0!important;box-shadow:none!important}
:is(#app,.recipe-video-layout) [data-el-fereej-dock] .dock-glyph svg{display:block;width:22px!important;height:22px!important;fill:none;stroke:currentColor;stroke-width:1.7!important;stroke-linecap:round;stroke-linejoin:round}
:is(#app,.recipe-video-layout) [data-el-fereej-dock] .dock-label{display:block!important;position:static!important;width:auto!important;height:auto!important;margin:0!important;padding:0!important;clip:auto!important;clip-path:none!important;overflow:visible!important;white-space:nowrap!important;font:400 10px/1.1 Roboto,Arial,sans-serif!important;color:inherit!important}
:is(#app,.recipe-video-layout) [data-el-fereej-dock]>a[aria-current=page]{color:var(--cp-link)!important}
:is(#app,.recipe-video-layout) [data-el-fereej-dock]>a[aria-current=page]::after{content:'';position:absolute;bottom:0;left:50%;width:5px;height:5px;transform:translateX(-50%);border-radius:50%;background:var(--cp-link)}
.recipe-video-layout>[data-el-fereej-dock]{position:relative!important;grid-row:3}
html #app .system-brandbar,:is(#app,.recipe-video-layout) .system-brandbar{position:relative;z-index:24;display:flex;align-items:center;justify-content:space-between;height:var(--cp-header-height);min-height:var(--cp-header-height);flex:none;padding:8px 16px;border:0;background:var(--cp-shell-surface);color:var(--cp-text)}
:is(#app,.recipe-video-layout) .system-brandbar .system-brand{position:relative;display:block;width:132px;height:44px;border:0;padding:0;background:transparent}
:is(#app,.recipe-video-layout) .system-brandbar .system-brand img[data-shrink-logo]{display:block;position:static;width:86px;height:44px;object-fit:contain;object-position:left center;scale:1!important;opacity:1}
:is(#app,.recipe-video-layout) .system-brandbar .system-brand::after{content:'';position:absolute;left:94px;top:3px;width:38px;height:38px;background:url('brand/courtyard-tile.svg') center/contain no-repeat;pointer-events:none}
:is(#app,.recipe-video-layout) .system-brandbar .system-account-actions{position:static;z-index:3;display:flex;align-items:center;gap:0}
:is(#app,.recipe-video-layout) .system-brandbar .system-account-actions button{position:relative;display:grid;place-items:center;width:44px;height:44px;border:0;border-radius:0;padding:0;background:transparent!important;color:var(--cp-text);box-shadow:none!important}
:is(#app,.recipe-video-layout) .system-brandbar .system-account-actions svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
:is(#app,.recipe-video-layout) .system-brandbar .system-account-actions img{width:34px;height:34px;padding:2px;border:1px solid var(--cp-border);border-radius:50%;background:var(--cp-card);object-fit:cover}
:is(#app,.recipe-video-layout) .system-brandbar [data-account-open-order]>i:last-child{position:absolute;right:9px;top:7px;width:8px;height:8px;border:1px solid var(--cp-canvas);border-radius:50%;background:var(--cp-coral)}
html #app.is-logo-compact .system-brandbar{height:var(--cp-header-height);min-height:var(--cp-header-height);padding:8px 16px}
html #app.is-logo-compact .system-brandbar .system-brand{width:132px;height:44px}
html #app.is-logo-compact .system-brandbar .system-brand img{width:86px;height:44px;opacity:1}
html #app.is-logo-compact .system-brandbar .system-brand::after{left:94px;top:3px;width:38px;height:38px}
#app .fr-account-actions,#app .et-account-actions{z-index:26!important}
#app{--header-search-height:min(624px,calc(100dvh - var(--cp-dock-height) - 124px));--header-search-surface:radial-gradient(ellipse at 70% 20%,#1b2d3e,#061923 72%)}
html[data-theme=light] #app{--header-search-surface:#fff}
html #app.has-header-search .system-brandbar.is-search-expanded{z-index:75!important;isolation:isolate;background:transparent!important}
.system-brandbar.is-search-expanded::before{content:'';position:absolute;z-index:-1;top:0;left:0;right:0;height:var(--header-search-height);border-radius:0 0 28px 28px;background:var(--header-search-surface);box-shadow:0 18px 25px #0004;animation:header-search-expand .22s ease-out}
html #app .system-brandbar.is-search-expanded [data-header-search]{color:var(--cp-link)}
.header-search-content{position:absolute;top:var(--cp-header-height);left:0;right:0;height:calc(var(--header-search-height) - var(--cp-header-height));overflow:hidden;border-radius:0 0 28px 28px;animation:header-search-reveal .22s ease-out}
.header-search-scrim{position:absolute;inset:var(--cp-header-height) 0 var(--cp-dock-height);z-index:65;background:#0005;pointer-events:auto}
html #app .header-search-content .search-page{display:flex;flex-direction:column;position:relative;width:100%;height:100%;min-height:0;background:transparent!important;color:var(--cp-text)}
html #app .header-search-content .search-page .retail-scroll{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:0 16px 12px!important;scroll-padding:12px;background:transparent!important}
.header-search-back{display:inline-flex;align-items:center;gap:4px;min-height:44px;margin:0 16px;padding:0;flex:none;border:0;background:none;color:var(--cp-text);font:400 12px/18px Roboto,Arial,sans-serif}
.header-search-back svg{width:16px;height:16px}
html #app .header-search-content .search-heading{padding:0!important;margin:0}
html #app .header-search-content .search-heading h1{margin:0;font:800 28px/33px Roboto,Arial,sans-serif;letter-spacing:-.04em;color:var(--cp-text)}
html #app .header-search-content .search-heading>small{margin-top:3px;color:var(--cp-muted);font:400 12px/18px Roboto,Arial,sans-serif}
html #app .header-search-content .search-top{margin-top:7px}
html #app .header-search-content .retail-search-field{height:44px;margin:0;padding:0 12px;border:1px solid var(--cp-border);border-radius:13px;background:var(--cp-card);color:var(--cp-text)}
html #app .header-search-content .retail-search-field input{min-width:0;font:400 12px/18px Roboto,Arial,sans-serif;color:var(--cp-text)}
html #app .header-search-content .search-landing-suggest{margin-top:20px}
html #app .header-search-content .search-suggestions{gap:7px;margin:7px 0 0}
html #app .header-search-content .search-suggestions button{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:9px;height:62px;min-height:62px;padding:7px;border-radius:16px;text-align:left}
.header-search-content .search-suggestions img{flex:none;width:42px;height:42px;object-fit:cover;border-radius:50%;background:#fff}
html #app .header-search-content .search-suggestion-copy{display:flex;flex-direction:column;gap:4px;min-width:0;width:auto}
.header-search-content .search-suggestion-copy b{font:500 13px/15px Roboto,Arial,sans-serif;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
html #app .header-search-content .search-suggestion-copy small{font:400 11px/14px Roboto,Arial,sans-serif;color:var(--cp-muted)}
html #app .header-search-content .search-landing-section-head{min-height:28px;margin:18px 0 4px}.header-search-content .search-landing-section-head>button{min-height:28px;font-weight:400;font-size:12px}.header-search-content .search-landing-section-head h2{font-weight:800}
html #app .header-search-content .search-event-poster{height:clamp(98px,30.6vw,118px);border-radius:16px}
html #app .header-search-content .search-event-copy strong{font-size:18px;line-height:22px;font-weight:500}
html #app .header-search-content .search-event-copy em,.header-search-content .search-event-foot,.header-search-content .search-event-dots{display:none}
html #app .header-search-content .search-event-carousel{margin:0;padding:0;gap:10px}html #app .header-search-content .search-event-slide{flex:0 0 100%;width:100%}.header-search-content .search-landing-watch{margin-top:18px}
@keyframes header-search-expand{from{height:var(--cp-header-height)}to{height:var(--header-search-height)}}
@keyframes header-search-reveal{from{opacity:0;clip-path:inset(0 0 100% 0)}to{opacity:1;clip-path:inset(0)}}
@media(max-width:360px){:root{--cp-header-height:54px}#app{--header-search-height:min(522px,calc(100dvh - var(--cp-dock-height) - 124px))}html #app .system-brandbar,html #app.is-logo-compact .system-brandbar{padding:7px 12px}html #app .system-brandbar .system-brand,html #app.is-logo-compact .system-brandbar .system-brand{width:116px;height:42px}html #app .system-brandbar .system-brand img[data-shrink-logo],html #app.is-logo-compact .system-brandbar .system-brand img{width:74px;height:42px}html #app .system-brandbar .system-brand::after,html #app.is-logo-compact .system-brandbar .system-brand::after{left:82px;top:4px;width:34px;height:34px}html #app .header-search-content .search-page .retail-scroll{padding-inline:12px!important}.header-search-back{min-height:36px;margin-inline:12px}html #app .header-search-content .search-top{margin-top:2px}html #app .header-search-content .search-heading h1{font-size:25px;line-height:30px}.header-search-content .search-suggestion-copy b{font-size:13px}}
/* Compact reference04 defines separate Light/Dark typography spacing.
   Keep the Back hit area intact; only its contents follow the visual baseline. */
@media(max-width:360px){
 .header-search-back{padding-inline:2px;align-items:flex-start;padding-top:6px}
 html #app .header-search-content .search-heading{position:relative;top:-5px;padding-inline:6px!important}
 html #app .header-search-content .search-landing-section-head{margin-top:17px}
 html[data-theme=light] #app .header-search-back{padding-inline:3px;padding-top:15px}
 html[data-theme=light] #app .header-search-content .search-heading{top:7px;padding-inline:7px!important}
 html[data-theme=light] #app .header-search-content .search-top{margin-top:14px}
 html[data-theme=light] #app .header-search-content .search-landing-suggest{margin-top:14px}
 html[data-theme=light] #app .header-search-content .search-suggestions{gap:5px;margin-top:8px}
 html[data-theme=light] #app .header-search-content .search-suggestions button{height:60px;min-height:60px}
 html[data-theme=light] #app .header-search-content .search-landing-section-head{margin-top:18px}
}
@media(prefers-reduced-motion:reduce){.system-brandbar.is-search-expanded::before,.header-search-content{animation:none}}

/* Journeys scroll behind the shared rail; fixed actions remain above it. */
#app:not([data-route=discover]) :is(.rr-scroll,.mr-scroll,.retail-scroll,.et-scroll,.et-event-scroll,.qc-scroll,.mh-page,.bk-shell>main,.destination-pending,.rp-scroll,.ch-page){
 padding-bottom:116px!important;
 scroll-padding-bottom:116px;
}
#app:not([data-route=discover]) :is(.rp-purchase,.ig-purchase,.ig-cook-action,.mt-actions){margin-bottom:76px!important}
#app .mr-basket{margin-bottom:91px!important}
#app[data-route=grocery] .grocery-plan-page .retail-scroll{padding-bottom:180px!important;scroll-padding-bottom:180px}


/* The expanded header owns neutral glass tokens; page-specific cards cannot tint it. */
html[data-theme=light]{--cp-shell-surface:#fff}
html #app .system-brandbar.is-search-expanded{--cp-text:#fff;--cp-muted:#c5d0dc;--cp-border:#2a4051;--cp-card:linear-gradient(115deg,#182f3f,#142637);--cp-link:#5592ff}
html[data-theme=light] #app .system-brandbar.is-search-expanded{--cp-text:#080954;--cp-muted:#4e60ac;--cp-border:#e2e6ef;--cp-card:#fff;--cp-link:#174bff}
html #app .header-search-content .search-landing-suggest h2{color:var(--cp-text);font-size:12px;font-weight:700;letter-spacing:0}
html #app .header-search-content .search-landing-section-head h2::before{content:'';position:absolute;left:calc(100% + 8px);top:9px;width:21px;height:4px;border-radius:3px;background:#ff643e}
html[data-theme=light] #app .header-search-content .search-landing-section-head h2::after{background:#ff643e}
html #app .header-search-content .retail-search-field input::placeholder{color:var(--cp-muted)}
html #app .header-search-content .search-event-visual img{object-fit:cover!important}
#app.is-header-search-closing .system-brandbar.is-search-expanded::before{animation:header-search-collapse .18s ease-in forwards}
#app.is-header-search-closing .header-search-content{animation:header-search-rollup .18s ease-in forwards;pointer-events:none}
#app.is-header-search-closing .header-search-scrim{opacity:0;transition:opacity .18s ease-in}
@keyframes header-search-collapse{from{height:var(--header-search-height)}to{height:var(--cp-header-height)}}
@keyframes header-search-rollup{from{opacity:1;clip-path:inset(0)}to{opacity:0;clip-path:inset(0 0 100% 0)}}
@media(prefers-reduced-motion:reduce){#app.is-header-search-closing .system-brandbar.is-search-expanded::before,#app.is-header-search-closing .header-search-content{animation:none}#app.is-header-search-closing .header-search-scrim{transition:none}}

html #app[data-route] .system-brandbar{height:var(--cp-header-height)!important;min-height:var(--cp-header-height)!important;padding:8px 16px!important}
@media(max-width:360px){html #app[data-route] .system-brandbar{padding:7px 12px!important}}

html #app .header-search-content .search-event-visual{position:relative;align-self:stretch;min-height:0;height:100%}
html #app .header-search-content .search-event-visual img{position:absolute;inset:0;width:100%!important;height:100%!important;max-height:none!important;max-width:none!important;object-fit:cover!important}
html #app .header-search-content .search-event-visual.is-artwork img{object-fit:contain!important}

/* Match04's breathing room between Search, alerts and the account portrait. */
html #app .system-brandbar .system-account-actions{gap:4px}
html #app .system-brandbar [data-header-search]{margin-right:8px}
html #app .system-brandbar [data-header-search] svg{width:26px;height:26px}
html #app .header-search-content .search-top .retail-search-field>svg{width:21px;height:21px}

/* Search uses the same quiet loading primitives as the destination pages. */
.header-search-loading{padding:0 16px 18px;color:var(--cp-muted)}
.header-search-loading>p{font:400 12px/18px Roboto,Arial,sans-serif;margin:0 0 16px}
.header-search-loading .loading-shape{background:color-mix(in srgb,var(--cp-muted) 13%,transparent)}
.header-search-loading .loading-shape--search{height:44px;border-radius:13px}
.header-search-loading .loading-shape--photo{height:62px;border-radius:16px}
.header-search-loading .loading-shape--hero{height:118px;border-radius:16px}
@media(max-width:360px){.header-search-loading{padding-inline:12px}}
