/* Shared storefront components: geometry is identical in light and dark. */
:root{--hours-open:#006650;--hours-closed:#654d2d;--hours-neutral:var(--muted);--storebar-height:64px}
:root[data-theme=dark]{--hours-open:#b0deb6;--hours-closed:#e4c69f}
.venue-page{padding-top:0}
.store-topbar{position:sticky;top:0;z-index:30;height:calc(var(--storebar-height) + env(safe-area-inset-top,0px));padding:10px 16px;margin:0 0 12px;gap:12px;background:var(--canvas);border-radius:0;transition:none}
.store-topbar>.back,.store-topbar .save,.store-topbar .store-info{display:grid;place-items:center;width:44px;height:44px;min-width:44px;min-height:44px;border:0;border-radius:50%;background:#fff;color:#17221c;box-shadow:0 2px 9px #0002;margin:0;font-size:25px;text-decoration:none}
.store-topbar .store-info{font-size:22px}.store-topbar .store-actions{display:flex;gap:8px;margin-left:auto}
.collapsed-venue-name{font-size:17px;font-weight:750;line-height:1.2;opacity:0;overflow:hidden;max-height:42px;flex:1;pointer-events:none}
.store-topbar.is-collapsed{background:var(--canvas);box-shadow:0 1px 0 var(--line);border-radius:0}
.store-topbar.is-collapsed .collapsed-venue-name{opacity:1}.store-topbar.is-collapsed>.back,.store-topbar.is-collapsed .save,.store-topbar.is-collapsed .store-info{background:var(--surface-soft);color:var(--text);box-shadow:none}
.store-hero-shell{position:relative;isolation:isolate;margin:0 0 0;overflow:hidden;border-radius:20px}
.venue-page .venue-hero{height:380px;margin:0;border-radius:0;box-shadow:none}
.venue-hero figure{height:100%;margin:0;position:relative}.venue-hero img{width:100%;height:100%;object-fit:cover}
.store-hero-shell:after{content:"";position:absolute;inset:20% 0 0;pointer-events:none;background:linear-gradient(transparent,rgba(0,0,0,.32) 35%,rgba(0,0,0,.88));z-index:1}
.store-hero-shell .store-identity{position:absolute;bottom:0;left:0;right:0;z-index:2;padding:28px;color:#fff;margin:0;pointer-events:none;display:block}
.store-hero-shell .store-identity h1{font-size:clamp(28px,4vw,42px);font-weight:800;line-height:1.08;letter-spacing:-.8px;margin:0 0 10px;max-width:750px;color:#fff}
.store-hero-shell .store-identity p{margin:0;color:#fff;font-size:14px}.venue-hero-fallback{background:#294c3c}
.venue-hero.multi-branch figure figcaption{position:absolute;top:76px;left:16px;bottom:auto;z-index:2;background:#000a;color:#fff;padding:6px 10px;border-radius:8px;font-size:12px;max-width:calc(100% - 32px)}
.published-hours-strip{display:flex;gap:20px;justify-content:space-between;align-items:center;padding:18px 0;border-bottom:1px solid var(--line);margin-bottom:18px}
.hours-status{display:flex;flex-direction:column;gap:4px;min-width:0}.hours-state{font-size:16px;font-weight:750;line-height:1.35;color:var(--text)}.hours-state[data-state=open]{color:var(--hours-open)}.hours-state[data-state=closed]{color:var(--hours-closed)}
.hours-today,.hours-basis{display:block;font-size:13px;line-height:1.4;color:var(--muted)}.hours-basis{font-size:11px}.hours-compact .hours-state{font-size:13px}.hours-compact .hours-today{font-size:12px}.hours-compact .hours-basis{font-size:10px}.hours-compact{margin-top:8px;gap:3px}
.published-hours-strip .venue-links{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;margin:0}.published-hours-strip .venue-links>a,.published-hours-strip .directions-button{padding:10px 14px;min-height:44px;border:0;border-radius:24px;background:var(--surface-soft);color:var(--text);font-size:13px;font-weight:650;white-space:nowrap;display:flex;align-items:center}
.hours-branches{margin:0;max-width:660px}.hours-branches>summary{cursor:pointer;min-height:44px;padding:10px 0;font-size:14px;font-weight:650}.hours-branch{padding:10px 0;border-top:1px solid var(--line)}.hours-branch h3{font-size:14px;margin:0 0 5px}
.hours-exception{padding:12px 0;border-top:1px solid var(--line);font-size:13px}.hours-exception p{margin:5px 0}.hours-source-link{font-size:12px;text-decoration:underline}
.venue h3{font-size:17px;line-height:1.3;min-height:0}.venue .venue-body{padding:12px 0 4px}.venue .meta{margin:4px 0;font-size:12px}.venue .venue-menu-preview{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;font-size:12px;margin:7px 0;color:var(--muted)}.venue-view{margin-top:10px}.venue-photo,.venue-photo-mosaic{border-radius:18px}
.your-hall-note .hours-compact{margin-top:3px}.your-hall-note .hours-today{font-size:11px}.your-hall-note .hours-basis{display:none}
.store-menu-title{margin:18px 0 8px}.store-menu-title h2{font-size:24px}.storefront-tools{margin-bottom:10px}
.category-nav{top:var(--storebar-sticky-height,calc(var(--storebar-height) + env(safe-area-inset-top,0px)));z-index:20;background:var(--canvas)}
.menu-section{scroll-margin-top:calc(var(--storebar-sticky-height,64px) + var(--category-bar-sticky-height,48px) + 12px)}
@media(min-width:1100px){.category-nav{top:calc(var(--storebar-sticky-height,64px) + 16px);max-height:calc(100dvh - 100px);overflow-y:auto}.menu-section{scroll-margin-top:calc(var(--storebar-sticky-height,64px) + 12px)}}
@media(max-width:767px){
 .venue-page{padding-inline:16px}.store-topbar{margin-left:-16px;margin-right:-16px;border-radius:0;padding-top:calc(10px + env(safe-area-inset-top,0px))}
 .store-hero-shell{margin-left:-16px;margin-right:-16px;border-radius:0}.venue-page .venue-hero{height:clamp(280px,76vw,380px)}
 .store-hero-shell .store-identity{padding:20px}.store-hero-shell .store-identity h1{font-size:30px;max-width:100%;margin-bottom:8px}
 .published-hours-strip{align-items:stretch;flex-direction:column;gap:10px;padding:14px 0;margin-bottom:12px}.published-hours-strip .venue-links{justify-content:flex-start}.published-hours-strip .hours-state{font-size:16px}
 .discover-page .venue-grid{display:flex;gap:14px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x proximity;overscroll-behavior-x:contain;padding:0 0 16px;scroll-padding-inline:0}
 .discover-page .venue-grid>.venue{flex:0 0 min(78vw,310px);scroll-snap-align:start;min-width:0}
 .store-menu-title{margin-top:12px}.store-menu-title h2{font-size:23px}.category-nav{margin-inline:-16px;padding-inline:16px;width:calc(100% + 32px);max-width:calc(100% + 32px);border-bottom:1px solid var(--line)}
 .category-nav>button{flex:0 0 auto;min-width:44px;width:max-content;white-space:nowrap;min-height:48px}
 .your-dining-hall{margin-bottom:20px}.section-head h2{font-size:23px}
}
@media(prefers-reduced-motion:reduce){.store-topbar{transition:none}}
.category-index-button{min-width:44px;min-height:44px;padding:8px 12px;border:0;border-radius:24px;background:var(--surface-soft);color:var(--text);font-weight:650}.menu-heading-actions{display:flex;align-items:center;gap:8px}.category-sheet-list{display:flex;flex-direction:column;margin-top:16px}.category-sheet-list button{display:flex;justify-content:space-between;gap:16px;padding:18px 12px;min-height:56px;background:transparent;border:0;border-left:3px solid transparent;text-align:left;color:var(--text);font:inherit}.category-sheet-list button[aria-current=true]{border-left-color:var(--green);font-weight:750;background:var(--surface-soft)}.category-sheet-list button span:last-child{color:var(--muted);font-variant-numeric:tabular-nums}
:root{--coast-sand:#f4f0e7;--coast-ocean:#256477}:root[data-theme=dark]{--coast-sand:#24221e;--coast-ocean:#9bcedb}.venue-view{color:var(--coast-ocean)}
@media(max-width:767px){#detail[data-sheet=categories]{position:fixed;inset:auto 0 0;width:100%;max-width:100%;margin:0;max-height:85dvh;border-radius:24px 24px 0 0;padding:22px 20px calc(24px + env(safe-area-inset-bottom,0px))}.discover-page .venue-grid{scrollbar-width:none}.discover-page .venue-grid::-webkit-scrollbar{display:none}}
.category-index-button{margin-left:auto}.store-menu-title{gap:10px}.store-menu-title .venue-search{margin-left:0}

/* The all-sections control stays outside the natively scrolling chip rail. */
.category-bar{display:flex;align-items:stretch;gap:8px;position:sticky;top:var(--storebar-sticky-height,calc(var(--storebar-height) + env(safe-area-inset-top,0px)));z-index:20;min-width:0;max-width:100%;margin:6px 0 0;background:var(--canvas);border-bottom:1px solid var(--line)}
.category-bar>.category-nav{position:static;flex:1 1 0;min-width:0;max-width:100%;width:auto;margin:0;padding:0;border:0;scroll-behavior:auto}
.category-all-button{display:flex;align-items:center;justify-content:center;gap:8px;flex:0 0 44px;min-width:44px;min-height:48px;padding:0;border:0;border-radius:0;background:var(--canvas);color:var(--text);box-shadow:1px 0 0 var(--line);cursor:pointer}
.category-all-button:focus-visible{outline:2px solid var(--green);outline-offset:-3px}
.category-all-label{display:none}
.menu-content[data-category-measured]>.menu-section{content-visibility:visible}
@media(max-width:767px){.category-bar{margin-inline:-16px;padding-inline:8px 16px;width:calc(100% + 32px);max-width:calc(100% + 32px)}}
@media(min-width:1100px){.category-bar{flex-direction:column;align-items:stretch;top:calc(var(--storebar-sticky-height,64px) + 16px);margin:16px 0;border:0;max-height:calc(100dvh - 100px)}.category-bar>.category-nav{flex:1 1 auto;overflow-y:auto;padding-right:10px;max-height:calc(100dvh - 156px)}.category-all-button{justify-content:flex-start;flex:0 0 44px;min-height:44px;padding:0 14px;border-radius:10px;box-shadow:none;background:var(--surface-soft);font:inherit;font-size:14px;font-weight:650}.category-all-label{display:inline}}
/* Page rails may pass behind the fixed app navigation before becoming sticky.
   Keep all three navigation targets above those rails and ordinary content.
   Focused search owns layer 70; native dialogs remain in the browser top layer. */
@media(max-width:849px){.bottom-nav{z-index:60}}

.menu-status-compact{padding:12px 0;background:none;border:0;box-shadow:none}.menu-status-compact h3{margin:0 0 6px;font-size:16px;line-height:1.35}.menu-status-compact>p{margin:0 0 8px;color:var(--muted);font-size:13px}.menu-status-compact details{font-size:12px;color:var(--muted)}.menu-status-compact summary{cursor:pointer;min-height:44px;display:flex;align-items:center}.menu-status-compact details p{max-width:48ch;line-height:1.5}
.store-topbar .venue-share-button{display:grid;place-items:center;min-width:60px;min-height:44px;padding:0 12px;border:0;border-radius:999px;background:#fff;color:#17221c;box-shadow:0 2px 9px #0002;font:inherit;font-size:13px;font-weight:700}
.store-topbar.is-collapsed .venue-share-button{background:var(--surface-soft);color:var(--text);box-shadow:none}
.store-topbar .venue-share-button:focus-visible{outline:2px solid var(--text);outline-offset:2px}
#app-view>header{flex-wrap:wrap;min-width:0}
#app-view>header>.brand{flex:none;white-space:nowrap}
#app-view>header>nav{align-items:center;justify-content:flex-end;flex-wrap:wrap;min-width:0;max-width:100%;row-gap:8px}
[data-account-controls]{min-width:0;max-width:100%;flex-wrap:wrap}
@media(max-width:600px){#app-view>header{align-items:flex-start;gap:8px 12px}#app-view>header>nav{gap:8px 12px;font-size:13px}}
.filter-drawer .constraint-row legend{display:flex;align-items:center;gap:8px;min-height:30px}
.allergen-filter-icon{display:inline-grid;place-items:center;width:30px;height:30px;flex:0 0 30px;padding:0;border-radius:9px}
.allergen-filter-icon .tag-icon{display:block;width:16px;height:16px}
.constraint-row[data-allergen=soy]{--allergen-surface:#f3e6d4;--allergen-ink:#725010}
.constraint-row[data-allergen=wheat]{--allergen-surface:#fff0c9;--allergen-ink:#765700}
.constraint-row[data-allergen=milk]{--allergen-surface:#e0eefb;--allergen-ink:#24567d}
.constraint-row[data-allergen=egg]{--allergen-surface:#ffe7db;--allergen-ink:#864725}
.constraint-row[data-allergen=sesame]{--allergen-surface:#eadff4;--allergen-ink:#69418b}
.constraint-row[data-allergen=peanuts]{--allergen-surface:#e8d8c9;--allergen-ink:#68452b}
.constraint-row[data-allergen="tree nuts"]{--allergen-surface:#f7dfed;--allergen-ink:#773754}
.constraint-row[data-allergen=fish]{--allergen-surface:#dceef5;--allergen-ink:#205d74}
.constraint-row[data-allergen=shellfish]{--allergen-surface:#ffe1d5;--allergen-ink:#823919}
.constraint-row[data-allergen=gluten]{--allergen-surface:#e9e3cd;--allergen-ink:#645a30}
.filter-drawer .constraint-row[data-allergen] .tri-state label.selected span{background:var(--allergen-surface);color:var(--allergen-ink);box-shadow:inset 0 0 0 1px currentColor}
[data-theme=dark] .constraint-row[data-allergen=soy]{--allergen-surface:#493c27;--allergen-ink:#f6d39a}
[data-theme=dark] .constraint-row[data-allergen=wheat],[data-theme=dark] .constraint-row[data-allergen=gluten]{--allergen-surface:#494324;--allergen-ink:#f5e29e}
[data-theme=dark] .constraint-row[data-allergen=milk]{--allergen-surface:#243e55;--allergen-ink:#bee0ff}
[data-theme=dark] .constraint-row[data-allergen=egg]{--allergen-surface:#523728;--allergen-ink:#ffcfb6}
[data-theme=dark] .constraint-row[data-allergen=sesame]{--allergen-surface:#423151;--allergen-ink:#e0c5f9}
[data-theme=dark] .constraint-row[data-allergen=peanuts]{--allergen-surface:#44382d;--allergen-ink:#e9cbb0}
[data-theme=dark] .constraint-row[data-allergen="tree nuts"]{--allergen-surface:#4b3040;--allergen-ink:#f4c5e2}
[data-theme=dark] .constraint-row[data-allergen=fish]{--allergen-surface:#244650;--allergen-ink:#b6e7f4}
[data-theme=dark] .constraint-row[data-allergen=shellfish]{--allergen-surface:#523529;--allergen-ink:#ffcab0}
/* Saved dish locations are separate, source-scoped rows so ratings never bleed across venues. */
.saved-location-intro{max-width:62ch;color:var(--muted);font-size:13px;line-height:1.5}
.saved-food-group{background:var(--surface);border:1px solid var(--border-soft, color-mix(in srgb,var(--text) 10%,transparent));border-radius:18px;padding:14px;margin:10px 0;min-width:0}
.saved-food-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;min-width:0}
.saved-food-heading h2{font-size:18px;line-height:1.3;margin:0 0 5px;overflow-wrap:anywhere}
.saved-food-heading .saved-macro-line{display:flex;flex-wrap:wrap;align-items:center;gap:3px 12px;margin:5px 0 0;color:var(--muted);font-size:12px;line-height:1.4}
.saved-food-heading .saved-macro-line strong{color:var(--text);font-size:13px;font-weight:700}
.saved-food-heading .tags{margin:8px 0 0}
.saved-food-heading .heart{flex:0 0 44px;min-width:44px;min-height:44px;background:transparent;border:0;font-size:22px;color:var(--text)}
.saved-location-list{display:grid;gap:6px;margin-top:10px}
.saved-location-row.food{display:block;min-width:0;padding:9px 10px;border-radius:12px;background:var(--surface-soft);border:0;box-shadow:none;min-height:0}
.saved-location-top{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0}
.saved-location-top>strong{font-size:14px;line-height:1.35;overflow-wrap:anywhere}
.saved-location-badge{flex:none;border-radius:999px;background:var(--surface);padding:4px 8px;color:var(--muted);font-size:11px;line-height:1.25}
.saved-location-badge.preferred{background:var(--accent-soft,var(--surface));color:var(--accent,var(--text));font-weight:700}
.saved-meal-chips{display:flex;flex-wrap:wrap;gap:5px;margin:5px 0 0}
.saved-meal-chip{max-width:100%;padding:4px 7px;border-radius:8px;background:var(--surface);color:var(--muted);font-size:11px;line-height:1.3;overflow-wrap:anywhere}
.saved-meal-chip.listed{color:var(--text);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--text) 13%,transparent)}
.saved-location-rating.food-rating-line{min-height:18px;margin:5px 0 0;font-size:12px}
.saved-catalog-details{margin-top:8px;color:var(--muted);font-size:12px}
.saved-catalog-details summary{min-height:36px;display:flex;align-items:center;cursor:pointer;font-weight:600}
.saved-catalog-details ul{margin:2px 0 4px;padding-left:20px;line-height:1.6}
.saved-no-listing{margin:10px 0 0;padding:10px 12px;font-size:12px}
@media(max-width:540px){.saved-food-group{padding:12px;border-radius:15px}.saved-location-row{padding:8px 9px}.saved-location-top{align-items:center}.saved-location-top>strong{font-size:13px}.saved-location-badge{white-space:nowrap;font-size:10px}.saved-food-heading .saved-macro-line{gap:3px 8px;font-size:11px}.saved-food-heading .saved-macro-line strong{font-size:12px}}

.brand{display:inline-flex;align-items:center;gap:7px}
.brand-mark{display:block;flex:none;width:28px;height:28px;object-fit:contain;border-radius:0}
@media(max-width:600px){.brand-mark{width:24px;height:24px}}

/* One native top-layer filter pane escapes clipped search bodies at every size. */
.filter-drawer .controls[popover],.storefront-tools .filter-drawer .controls[popover],.discover-search-body .filter-drawer .controls[popover]{position:fixed;inset:16px;margin:auto;width:min(540px,calc(100vw - 32px));max-width:calc(100vw - 32px);max-height:min(80dvh,700px);height:fit-content;padding:16px;overflow:auto;overscroll-behavior:contain;border:1px solid var(--line);border-radius:18px;background:var(--surface);color:var(--text);box-shadow:0 0 0 100vmax #0005,0 12px 30px #0004}

.venue-menu-intro{max-width:64ch;margin:0 0 16px;color:var(--muted);font-size:14px;line-height:1.5}
/* Packet rendering preserves the visible card explicitly. Native anchoring
   must not apply a second correction to the replaced menu subtree. */
.venue-page .menu-content{overflow-anchor:none}
