/* El Molcajete identity layer: white canvas, black type, one red. Loaded LAST. Earlier stylesheets were token-migrated (cream/beige/brown/orange -> white/gray/red);
   this file sets the shared tokens and rebuilds the few places whose composition depended on dark or tinted surfaces. Presentation only. */
:root{--mol-red:#d83c1d;--mol-red-deep:#a62614;--mol-red-tint:#fdece9;--mol-black:#111;--mol-ink:#111;--mol-muted:#5b5b5b;--mol-line:#e5e5e5;--mol-soft:#f7f7f7;--mol-white:#fff;
 --mol-action:#d83c1d;--mol-accent:#d83c1d;--mol-canvas:#fff;--cream:#fff;--line:#e5e5e5;--muted:#5b5b5b;--ink:#111;--wine:#a62614;--gold:#d83c1d;
 --wa-ink:#111;--wa-muted:#5b5b5b;--wa-line:#e5e5e5;--wa-card:#fff;--wa-sand:#f7f7f7;--wa-accent:#d83c1d;--soc-line:#e5e5e5;--mol-gutter:clamp(16px,3.4vw,72px);--mol-wide:1560px}
html,body,.mol-brand body{background:#fff!important;color:#111}
.mol-brand body :where(h1,h2,h3,h4){color:#111}

/* ---------- Shared actions ---------- */
.mol-brand body .primary{background:var(--mol-red);color:#fff;border-color:transparent}
.mol-brand body .primary:hover:not(:disabled){background:var(--mol-red-deep);color:#fff}
.mol-brand body .secondary{background:#fff;color:#111;border:1.5px solid #111}
.mol-brand body .secondary:hover:not(:disabled){background:#111;color:#fff}
.mol-brand body :is(a,button,input,select,textarea,summary,[tabindex]):focus-visible{outline:3px solid var(--mol-red);outline-offset:2px}
.mol-brand body .eyebrow{color:var(--mol-red)}
.mol-brand body :is(.primary,.secondary,button,.ac-tile,.fw-tile,.account-order,.member-offer,.product-card){-webkit-tap-highlight-color:transparent}

/* ---------- Surfaces that used to be dark or tinted ---------- */
.mol-brand body .contact-card{background:#fff;color:#111;border:1px solid #e5e5e5;box-shadow:none}
.mol-brand body .contact-card :is(h2,h3,p,address,span,li,strong){color:#111}
.mol-brand body .contact-card .eyebrow{color:var(--mol-red)}
.mol-brand body .contact-card a:not(.contact-call){color:var(--mol-red-deep)}
.mol-brand body .mol-home-gallery{background:#fff;border:1px solid #e5e5e5;box-shadow:none}
.mol-brand body .mol-home-gallery :is(figcaption,button){color:#111}
.mol-brand body #rewards.rewards-section{background:#fff;color:#111;border:1.5px solid #111;box-shadow:none}
.mol-brand body #rewards.rewards-section :is(h2,h3,p,small,span,strong){color:#111}
.mol-brand body #rewards.rewards-section .eyebrow{color:var(--mol-red)}
.mol-brand body .reward-wallet{background:#fff;border:1px solid #e5e5e5;color:#111}
.mol-brand body .hv-slide[style*="--hv-bg:#2b1d14"]{background:#111}
.mol-brand body[data-public-route=home] .hero.mol-hero-v3{background:#fff}
.mol-brand body .hv-stage::before{border-color:var(--mol-red)}
.mol-brand body .hv-controls .hv-btn,.mol-brand body .hv-dots{background:#111c}
.mol-brand body .hv-dot[aria-current=true]::after{background:#fff}

/* ---------- Fluid width (no small inherited boxes) ---------- */
.mol-brand body main{max-width:none;width:100%}
.mol-brand body:is([data-public-route=rewards],[data-public-route=account],[data-public-route=menu],[data-public-route=contact]) main{padding-inline:var(--mol-gutter)}
.mol-brand body:is([data-public-route=rewards],[data-public-route=account],[data-public-route=contact]) main>*{max-width:var(--mol-wide);margin-inline:auto}
.mol-brand body[data-public-route=account] .account-landing.account-app{max-width:var(--mol-wide);width:100%;padding-inline:0}
.mol-brand body .account-card p,.mol-brand body .account-card header p{max-width:72ch}
.mol-brand body .account-fields{grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr))}
.mol-brand body .account-card input{max-width:520px}
.mol-brand body[data-public-route=rewards] #rewardsDashboard{max-width:var(--mol-wide);width:100%}

/* ---------- Footer: white, compact, ours ---------- */
.mol-brand body>footer.mol-footer{background:#fff;color:#111;border-top:3px solid var(--mol-red);padding:22px var(--mol-gutter) calc(var(--mol-bottom-dock-height,90px) + 18px);font-size:14px;line-height:1.55;text-align:left}
.mol-footer a,.mol-footer .mf-link{color:#111;text-decoration:none;font-weight:600}
.mol-footer a:hover,.mol-footer .mf-link:hover{color:var(--mol-red);text-decoration:underline}
.mol-footer :is(a,.mf-link,button):focus-visible{outline:3px solid var(--mol-red);outline-offset:3px;border-radius:6px}
.mol-footer .mf-app{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;margin:0 0 18px;padding:12px 16px;border:1.5px solid #111;border-radius:16px;background:#fff}
.mol-footer .mf-app[hidden]{display:none}
.mol-footer .mf-app-ico{width:38px;height:38px;border-radius:12px;background:var(--mol-red);color:#fff}
.mol-footer .mf-app-copy{flex:1 1 220px}.mol-footer .mf-app-copy strong{color:#111;font-size:15px}.mol-footer .mf-app-copy p{color:#5b5b5b;font-size:13px}
.mol-footer .mf-app-actions .secondary{background:#fff;color:#111;border:1.5px solid #111}
.mol-footer .mf-app-actions button{min-height:42px}
.mol-footer .mf-app-note{flex-basis:100%;border-top:1px solid #e5e5e5;color:#5b5b5b;font-size:12.5px;padding-top:8px}
.mol-footer .mf-grid{display:grid;grid-template-columns:minmax(220px,1.3fr) repeat(3,minmax(140px,1fr));gap:18px clamp(20px,3vw,48px);align-items:start}
.mol-footer .mf-brand img{filter:none;width:150px;margin-bottom:8px}
.mol-footer .mf-brand p{color:#5b5b5b;font-size:13px}.mol-footer .mf-brand strong{color:#111}
.mol-footer h2{color:var(--mol-red);font-size:11px;margin:0 0 6px}
.mol-footer li>:is(a,.mf-link){min-height:34px}
.mol-footer address{color:#111;margin:0 0 4px}
.mol-footer .mf-social{margin-top:10px}
.mol-footer .mf-soc{border:1.5px solid #111;color:#111;background:#fff}
.mol-footer .mf-soc:hover{background:var(--mol-red);border-color:var(--mol-red);color:#fff;text-decoration:none}
.mol-footer .mf-legal{margin-top:16px;padding-top:12px;border-top:1px solid #e5e5e5;color:#5b5b5b;font-size:12px}
@media(max-width:860px){.mol-footer .mf-grid{grid-template-columns:1fr 1fr}.mol-footer .mf-brand{grid-column:1/-1}}
@media(max-width:600px){.mol-brand body>footer.mol-footer{padding:16px 16px calc(var(--mol-bottom-dock-height,90px) + 14px + env(safe-area-inset-bottom))}}

/* ---------- Account: an own header, no gradient ---------- */
.mol-brand body[data-public-route=account] .account-app .account-hero{background:#fff;color:#111;border:0;border-bottom:3px solid #111;border-radius:0;padding:clamp(18px,2.4vw,30px) 0}
.mol-brand body[data-public-route=account] .account-app .account-hero h1{color:#111;font-size:clamp(34px,4.6vw,56px);letter-spacing:-.04em}
.mol-brand body[data-public-route=account] .account-app .account-hero .eyebrow{color:var(--mol-red)}
.mol-brand body[data-public-route=account] .account-app .account-hero p:last-child{color:#5b5b5b}
.mol-brand body[data-public-route=account] .account-avatar{background:#111;color:#fff;box-shadow:none;border-radius:50%}
.mol-brand body[data-public-route=account] .ac-hub{grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr))}
.mol-brand body[data-public-route=account] .ac-tile{border:1.5px solid #111;border-radius:16px;background:#fff}
.mol-brand body[data-public-route=account] .ac-tile>svg{background:var(--mol-red-tint);stroke:var(--mol-red)}
/* Compact account shortcuts: one mobile toolbar, not four full-width cards. Capabilities/handlers stay unchanged. */
@media(max-width:700px){
 .mol-brand body[data-public-route=account] .ac-hub{display:flex;gap:2px;margin:12px 0 16px;padding:4px;border:1px solid #e5e5e5;border-radius:16px;background:#fff}
 .mol-brand body[data-public-route=account] .ac-tile{flex:1 1 0;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-height:64px;padding:8px 2px;border:0;border-radius:10px;background:transparent;box-shadow:none;text-align:center;animation:none}
 .mol-brand body[data-public-route=account] .ac-tile>svg{box-sizing:content-box;width:20px;height:20px;padding:0;border-radius:0;background:transparent}
 .mol-brand body[data-public-route=account] .ac-tile>span{flex:0 1 auto;width:100%}
 .mol-brand body[data-public-route=account] .ac-tile strong{font:650 .75rem/1.3 system-ui,sans-serif;overflow-wrap:anywhere}
 .mol-brand body[data-public-route=account] .ac-tile small,.mol-brand body[data-public-route=account] .ac-tile>b{display:none}
 .mol-brand body[data-public-route=account] .ac-tile.is-quiet strong,.mol-brand body[data-public-route=account] .ac-tile.is-quiet>svg{color:#555;stroke:#555}
}
@media(max-width:359px){
 .mol-brand body[data-public-route=account] .ac-hub{flex-wrap:wrap}
 .mol-brand body[data-public-route=account] .ac-tile{flex:1 1 calc(50% - 2px);min-height:48px;flex-direction:row;gap:7px;padding:8px 6px}
 .mol-brand body[data-public-route=account] .ac-tile>span{width:auto}
}
.mol-brand body[data-public-route=account] .account-tabs{background:#f7f7f7;border:1px solid #e5e5e5}
.mol-brand body[data-public-route=account] .account-tabs [aria-selected=true]{background:#111;color:#fff;box-shadow:none}
.mol-brand body[data-public-route=account] .account-card{border:1px solid #e5e5e5;box-shadow:none;border-radius:20px}
.mol-brand body[data-public-route=account] .account-order{border:1px solid #e5e5e5;box-shadow:none}
.mol-brand body[data-public-route=account] .account-order>header{border-bottom:1px solid #f0f0f0}
.mol-brand body[data-public-route=account] .account-order footer{background:#f7f7f7;border-top:1px solid #e5e5e5}
.mol-brand body .account-order-state{background:#f7f7f7;color:#111;border:1px solid #d9d9d9}
.mol-brand body .account-order-state[data-state=preparing],.mol-brand body .account-order-state[data-state=ordered]{background:var(--mol-red-tint);color:var(--mol-red-deep);border-color:#f2c0b8}
.mol-brand body .account-order-state[data-state=cancelled]{background:#111;color:#fff;border-color:#111}
.mol-brand body .account-order-state[data-state=ready]{background:#e8f5ec;color:#1d5a3a;border-color:#bfe3cb}
.mol-brand body .ao-now{color:#111}.mol-brand body .ao-now>span{background:var(--mol-red)}
.mol-brand body .ao-empty{border:1.5px dashed #111;background:#fff}
.mol-brand body .ao-empty>span{background:var(--mol-red-tint)}
.mol-brand body .ao-error{border:1.5px solid var(--mol-red);background:#fff}
/* One empty state: the line above the list stays silent when the empty card is showing */
#accountOrdersStatus:empty{display:none}

/* ---------- Rewards: wallet band + photo-first offers ---------- */
.mol-brand body[data-public-route=rewards] .loyalty-member,.mol-brand body[data-public-route=rewards] .member-details{background:#fff!important;color:#111!important;border:0}
.mol-brand body[data-public-route=rewards] .loyalty-member{border:1.5px solid #111;border-radius:24px;box-shadow:none}
.mol-brand body[data-public-route=rewards] .loyalty-member :is(strong,h2,h3,span,p,small,li,div,a){color:#111}
.mol-brand body[data-public-route=rewards] .loyalty-member .eyebrow,.mol-brand body[data-public-route=rewards] .member-greeting .eyebrow{color:var(--mol-red)!important}
.mol-brand body[data-public-route=rewards] .member-balance strong{color:#111!important}
.mol-brand body[data-public-route=rewards] .gauge-track{stroke:#e5e5e5!important}
.mol-brand body[data-public-route=rewards] .gauge-fill{stroke:var(--mol-red)!important}
.mol-brand body[data-public-route=rewards] .member-milestones{background:#f7f7f7;border:1px solid #e5e5e5}
.mol-brand body[data-public-route=rewards] .member-milestones .is-reached .milestone-check{background:var(--mol-red);color:#fff;border-color:var(--mol-red)}
.mol-brand body[data-public-route=rewards] .member-milestones li:not(:last-child)::after{background:#d9d9d9}
.mol-brand body[data-public-route=rewards] .member-avatar,.mol-brand body[data-public-route=rewards] .member-greeting>span:first-child{background:#111!important;color:#fff!important}
.mol-brand body[data-public-route=rewards] .loyalty-stats>*{background:#fff;border:1px solid #e5e5e5;border-radius:16px}
.mol-brand body[data-public-route=rewards] .loyalty-stats svg{color:var(--mol-red)}
.mol-brand body[data-public-route=rewards] .loyalty-tabs{background:#f7f7f7;border:1px solid #e5e5e5}
.mol-brand body[data-public-route=rewards] .loyalty-tabs [aria-selected=true]{background:#111;color:#fff;box-shadow:none}
@media(min-width:1100px){
 .mol-brand body[data-public-route=rewards] #rewardsDashboard{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,380px);gap:16px 28px;align-items:start}
 .mol-brand body[data-public-route=rewards] #rewardsDashboard>.loyalty-heading{grid-column:1/-1}
 .mol-brand body[data-public-route=rewards] #rewardsDashboard>.loyalty-member{grid-column:1;grid-row:2}
 .mol-brand body[data-public-route=rewards] #rewardsDashboard>.loyalty-stats{grid-column:2;grid-row:2;display:grid;grid-template-columns:1fr;gap:10px;align-self:stretch}
 .mol-brand body[data-public-route=rewards] #rewardsDashboard>.loyalty-tabs{grid-column:1/-1;grid-row:3;justify-self:start}
 .mol-brand body[data-public-route=rewards] #rewardsDashboard>.loyalty-panel{grid-column:1;grid-row:4/span 2}
 .mol-brand body[data-public-route=rewards] #rewardsDashboard>.member-gifts{grid-column:2;grid-row:4}
 .mol-brand body[data-public-route=rewards] #rewardsDashboard>.loyalty-help{grid-column:2;grid-row:5}
}
.mol-brand body[data-public-route=rewards] .reward-tier-options{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(min(100%,230px),1fr))!important;gap:14px}
.mol-brand body[data-public-route=rewards] .member-offer{display:flex!important;flex-direction:column;align-items:stretch;gap:0;padding:0!important;border:1.5px solid #111;border-radius:18px;overflow:hidden;background:#fff;grid-template-columns:none!important;width:auto!important;transition:transform .18s ease,box-shadow .18s ease}
.mol-brand body[data-public-route=rewards] .member-offer>.member-offer-image{width:100%!important;height:auto!important;aspect-ratio:4/3;border-radius:0;grid-column:auto!important;grid-row:auto!important;background:#f7f7f7}
.mol-brand body[data-public-route=rewards] .member-offer>.member-offer-copy{padding:12px 14px 14px!important;grid-column:auto!important;grid-row:auto!important}
.mol-brand body[data-public-route=rewards] .member-offer.is-locked,.mol-brand body[data-public-route=rewards] .member-offer.is-unavailable,.mol-brand body[data-public-route=rewards] .member-offer.is-paused{border-color:#bdbdbd}
.mol-brand body[data-public-route=rewards] .member-offer.is-locked .member-offer-image img{filter:grayscale(.6)}
.mol-brand body[data-public-route=rewards] .member-offer.is-ready{border-color:var(--mol-red);box-shadow:0 0 0 3px var(--mol-red-tint)}
.mol-brand body[data-public-route=rewards] .reward-availability{border:1px solid currentColor;background:#fff;color:#111}
.mol-brand body[data-public-route=rewards] .reward-availability.is-available{color:var(--mol-red-deep)}
.mol-brand body[data-public-route=rewards] .reward-tier{border:0;background:none;box-shadow:none}
.mol-brand body[data-public-route=rewards] .reward-tier-cost{background:#111;color:#fff}
.mol-brand body[data-public-route=rewards] .reward-tier-cost small{color:#fff}
.mol-brand body[data-public-route=rewards] .member-gifts{border:1.5px solid #111;border-radius:20px;background:#fff;box-shadow:none}
.mol-brand body[data-public-route=rewards] .loyalty-help{background:#f7f7f7;border:1px solid #e5e5e5;border-radius:18px;color:#111}
@media(hover:hover) and (prefers-reduced-motion:no-preference){.mol-brand body[data-public-route=rewards] .member-offer:hover{transform:translateY(-3px);box-shadow:0 14px 26px -18px #000a}}

/* ---------- Motion: opacity/transform only; everything is visible without it ---------- */
@keyframes mol-rise{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
@keyframes mol-fade{from{opacity:0}to{opacity:1}}
@media(prefers-reduced-motion:no-preference){
 /* tab panels and filters fade in when they are shown; card lists never replay on a refresh (the animation is on the panel, not the re-rendered cards) */
 .mol-brand body :is([role=tabpanel],#rewardsOffersPanel,#rewardsActivityPanel):not([hidden]){animation:mol-fade .22s ease both}
 .mol-brand body :is(.primary,.secondary,.ac-tile,.fw-tile,.mol-install-invite button):active{transform:scale(.97)}
 .mol-brand body .gauge-fill{transition:stroke-dashoffset .9s cubic-bezier(.2,.7,.2,1)}
 @supports (animation-timeline:view()){
  .mol-brand body :is(.mol-home-story,.mol-home-gifts,.mol-community-home,.mol-pickup-guide,.mol-follow,.google-reviews,.hours-section,.ac-tile,.reward-tier,.account-card,.loyalty-stats>*){animation:mol-rise linear both;animation-timeline:view();animation-range:entry 0% entry 35%}
 }
 /* dialogs: entry and exit through discrete transitions (falls back to instant where unsupported; never blocks clicks or Escape) */
 .mol-brand body dialog{transition:opacity .2s ease,transform .2s ease,overlay .2s ease allow-discrete,display .2s ease allow-discrete}
 .mol-brand body dialog:not([open]){opacity:0;transform:translateY(16px)}
 .mol-brand body dialog[open]{opacity:1;transform:none}
 @starting-style{.mol-brand body dialog[open]{opacity:0;transform:translateY(16px)}}
 .mol-brand body dialog::backdrop{transition:opacity .2s ease,overlay .2s ease allow-discrete,display .2s ease allow-discrete;background:#0009}
}

/* ---------- Specificity guards for the surfaces rebuilt above, and one type voice ---------- */
.mol-brand body .contact-card,.mol-brand body[data-public-route] .contact-card{background:#fff!important;color:#111!important;border:1.5px solid #111!important}
.mol-brand body .contact-card :is(h2,h3,p,address,span,li,strong,small){color:#111!important}
.mol-brand body .contact-card .contact-call{background:var(--mol-red)!important;color:#fff!important}
.mol-brand body :is(h1,h2,h3,.account-card h2,.account-hero h1){font-family:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;font-weight:820;letter-spacing:-.03em}
.mol-brand body .mol-home-gallery{background:#fff!important}
.mol-brand body .mol-visit-map a{background:#fff;color:#111;border:1.5px solid #111}
.mol-brand body>footer.mol-footer a:not(.mf-soc),.mol-brand body>footer.mol-footer .mf-link{color:#111}
.mol-brand body>footer.mol-footer a:not(.mf-soc):hover,.mol-brand body>footer.mol-footer .mf-link:hover{color:var(--mol-red)}
.mol-footer .mf-app-note{font-size:12px;margin:0}
.mol-footer .mf-app{gap:6px 14px;padding:10px 14px}

/* ---------- Rewards, phones only (<=700px): each points tier is its own horizontal row ----------
   Native overflow + scroll-snap, no script. Tiers stay separate (one row per .reward-tier); the next card peeks in as the cue; the last card can be scrolled fully into view.
   A tier with a single reward stays a normal full-width card. Tablet/desktop keep the grid above. */
@media(max-width:700px){
 .mol-brand body[data-public-route=rewards] :is(#rewardsDashboard,.loyalty-panel,.member-offers,.reward-tier){min-width:0;max-width:100%}
 .mol-brand body[data-public-route=rewards] .reward-tier-options{display:flex!important;grid-template-columns:none!important;flex-wrap:nowrap;gap:12px;overflow-x:auto!important;overflow-y:hidden!important;scroll-snap-type:x proximity;scroll-behavior:smooth;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;padding:4px 2px 14px;margin:0;scroll-padding-inline:2px;scrollbar-width:thin;scrollbar-color:#111 #e5e5e5}
 .mol-brand body[data-public-route=rewards] .reward-tier-options::after{content:"";flex:0 0 2px}
 .mol-brand body[data-public-route=rewards] .reward-tier-options>.member-offer{flex:0 0 min(78%,300px)!important;width:auto!important;max-width:none;scroll-snap-align:start}
 .mol-brand body[data-public-route=rewards] .reward-tier-options:has(>.member-offer:only-child){display:grid!important;grid-template-columns:minmax(0,1fr)!important;overflow:visible!important;padding-bottom:4px;scroll-snap-type:none}
 .mol-brand body[data-public-route=rewards] .reward-tier-options:has(>.member-offer:only-child)::after{display:none}
 .mol-brand body[data-public-route=rewards] .reward-tier-options:has(>.member-offer:only-child)>.member-offer{flex:none!important;width:100%!important}
 .mol-brand body[data-public-route=rewards] .reward-swipe-hint{display:flex!important;justify-content:space-between;align-items:center;gap:8px;margin:0 0 6px;font-size:12.5px;color:#5b5b5b}
 .mol-brand body[data-public-route=rewards] .reward-tier-options:focus-visible{outline:3px solid var(--mol-red);outline-offset:2px;border-radius:12px}
}
@media(max-width:700px) and (prefers-reduced-motion:reduce){.mol-brand body[data-public-route=rewards] .reward-tier-options{scroll-behavior:auto}}
