/* UPDATE 202 — MOBILE EDITORIAL RHYTHM + CINEMATIC FRAME
   One final phone/tablet layer for the four public customer pages. It aligns
   the shared header, copy insets and red editorial marks in portrait and
   landscape, and removes the last green-tinted header/footer treatments.
   Page-specific photography, content flow and functionality are unchanged. */

:root{
  --u202-cream:#f4ebdb;
  --u202-red:#c7372a;
  --u202-black:#050505;
  --u202-inset:28px;
  --u202-rule:58px;
  --u202-copy-gap:14px;
}

/* Neutral black cinematic bands on every customer header. */
body.customer-site>.customer-header,
body.customer-site.cinematic-home>.customer-header,
body.customer-site.customer-preorder>.customer-header,
body.customer-site.customer-dining-page>.customer-header,
body.customer-site.customer-event-page:not(.dough-invite-mode)>.customer-header{
  background:linear-gradient(180deg,
    rgba(0,0,0,.98) 0%,
    rgba(0,0,0,.86) 44%,
    rgba(0,0,0,.42) 76%,
    rgba(0,0,0,0) 100%)!important;
  background-color:transparent!important;
  color:var(--u202-cream)!important;
  box-shadow:none!important;
  -webkit-backdrop-filter:none!important;
  backdrop-filter:none!important;
}

/* Customer footers use the same neutral photographic finish. Dimensions and
   page-specific grid/flex layouts deliberately remain untouched. */
body.customer-preorder>.customer-footer,
body.customer-dining-page .customer-footer,
body.customer-event-page:not(.dough-invite-mode)>.customer-footer{
  border-color:rgba(244,235,219,.28)!important;
  background:linear-gradient(180deg,rgba(0,0,0,.86),rgba(0,0,0,.98))!important;
  background-color:var(--u202-black)!important;
  color:var(--u202-cream)!important;
}

body.customer-preorder>.customer-footer a,
body.customer-dining-page .customer-footer a,
body.customer-event-page:not(.dough-invite-mode)>.customer-footer a,
body.customer-preorder>.customer-footer .customer-socials a,
body.customer-dining-page .customer-footer .customer-socials a,
body.customer-event-page:not(.dough-invite-mode)>.customer-footer .customer-socials a{
  border-color:rgba(244,235,219,.72)!important;
  background:transparent!important;
  color:var(--u202-cream)!important;
}

body.customer-preorder>.customer-footer svg,
body.customer-dining-page .customer-footer svg,
body.customer-event-page:not(.dough-invite-mode)>.customer-footer svg{
  color:var(--u202-cream)!important;
}

/* Home has no conventional footer: its journey rail is the lower cinematic
   frame, so it receives the corresponding neutral-black gradient. */
body.cinematic-home .cinematic-journeys{
  background:linear-gradient(180deg,rgba(0,0,0,.42),rgba(0,0,0,.97))!important;
}
body.cinematic-home .cinematic-home-backdrop{
  background-color:var(--u202-black)!important;
}

@media(max-width:900px){
  /* The master logo and menu now occupy the same header geometry everywhere. */
  body.customer-site>.customer-header,
  body.customer-site.cinematic-home>.customer-header,
  body.customer-site.customer-preorder>.customer-header,
  body.customer-site.customer-dining-page>.customer-header,
  body.customer-site.customer-event-page:not(.dough-invite-mode)>.customer-header{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 50px!important;
    align-items:start!important;
    gap:12px!important;
    height:104px!important;
    min-height:104px!important;
    padding:12px var(--u202-inset) 0!important;
  }

  body.customer-site>.customer-header .customer-logo,
  body.customer-site>.customer-header .landing-logo-panel{
    width:min(220px,62vw)!important;
    height:80px!important;
    min-height:0!important;
    margin:0!important;
    padding:0!important;
  }

  body.customer-site>.customer-header .customer-logo img.master-logo,
  body.customer-site>.customer-header .landing-logo-panel img.master-logo{
    display:block!important;
    width:100%!important;
    height:78px!important;
    max-height:78px!important;
    margin:0!important;
    object-fit:contain!important;
    object-position:left top!important;
  }

  body.customer-site>.customer-header .customer-menu-toggle{
    margin:4px 0 0!important;
  }

  /* Shared left/right text datum across the four hero treatments. */
  body.cinematic-home .cinematic-home-copy,
  body.customer-event-page:not(.dough-invite-mode) .dough-coming-copy{
    width:calc(100% - (var(--u202-inset) * 2))!important;
    max-width:none!important;
    margin-right:var(--u202-inset)!important;
    margin-left:var(--u202-inset)!important;
    text-align:left!important;
  }

  body.customer-preorder .cinematic-preorder-hero>div,
  body.customer-dining-page .pay-hero-copy{
    left:var(--u202-inset)!important;
    right:var(--u202-inset)!important;
    width:auto!important;
    max-width:none!important;
    margin-right:0!important;
    margin-left:0!important;
    text-align:left!important;
  }

  body.cinematic-home .cinematic-home-copy h1,
  body.customer-preorder .cinematic-preorder-hero h1,
  body.customer-dining-page .pay-hero-copy h1,
  body.customer-event-page:not(.dough-invite-mode) .dough-coming-copy h1{
    margin:0!important;
    text-align:left!important;
  }

  /* One red dash size and one vertical rhythm for every mobile hero. */
  body.cinematic-home .cinematic-home-copy .cinematic-red-rule,
  body.customer-preorder .preorder-title-accent,
  body.customer-dining-page .pay-red-rule,
  body.customer-event-page:not(.dough-invite-mode) .dough-red-rule{
    display:block!important;
    width:var(--u202-rule)!important;
    min-width:var(--u202-rule)!important;
    max-width:var(--u202-rule)!important;
    height:4px!important;
    margin:var(--u202-copy-gap) 0!important;
    border:0!important;
    border-radius:0!important;
    background:var(--u202-red)!important;
    transform:skewX(-17deg)!important;
  }

  body.cinematic-home .cinematic-home-copy .landing-kicker,
  body.customer-preorder .cinematic-preorder-hero>div>p:last-child,
  body.customer-dining-page .pay-hero-lead,
  body.customer-event-page:not(.dough-invite-mode) .dough-launch-message,
  body.customer-event-page:not(.dough-invite-mode) .dough-launch-signoff{
    margin-top:0!important;
    margin-bottom:0!important;
    text-align:left!important;
  }

  body.customer-dining-page .pay-kicker,
  body.customer-event-page:not(.dough-invite-mode) .dough-launch-date{
    margin:0 0 12px!important;
    text-align:left!important;
  }

  /* Neutralise old green casts at the edges of the mobile photographs. */
  body.cinematic-home .cinematic-home-backdrop,
  body.customer-preorder .cinematic-preorder-hero,
  body.customer-dining-page .pay-screen-one,
  body.customer-event-page:not(.dough-invite-mode) .dough-coming-soon{
    background-color:var(--u202-black)!important;
  }
}

@media(max-width:540px) and (orientation:portrait){
  :root{
    --u202-inset:28px;
    --u202-rule:58px;
    --u202-copy-gap:14px;
  }

  /* Preserve each approved composition while enforcing identical text insets. */
  body.cinematic-home .cinematic-home-copy{
    padding-right:0!important;
    padding-left:0!important;
  }
  body.customer-preorder .cinematic-preorder-hero>div,
  body.customer-dining-page .pay-hero-copy,
  body.customer-event-page:not(.dough-invite-mode) .dough-coming-copy{
    padding-right:0!important;
    padding-left:0!important;
  }
}

@media(max-width:900px) and (orientation:landscape){
  :root{
    --u202-inset:32px;
    --u202-rule:48px;
    --u202-copy-gap:9px;
  }

  body.customer-site>.customer-header,
  body.customer-site.cinematic-home>.customer-header,
  body.customer-site.customer-preorder>.customer-header,
  body.customer-site.customer-dining-page>.customer-header,
  body.customer-site.customer-event-page:not(.dough-invite-mode)>.customer-header{
    grid-template-columns:minmax(0,1fr) 44px!important;
    height:76px!important;
    min-height:76px!important;
    padding:6px var(--u202-inset) 0!important;
  }

  body.customer-site>.customer-header .customer-logo,
  body.customer-site>.customer-header .landing-logo-panel{
    width:190px!important;
    height:66px!important;
  }
  body.customer-site>.customer-header .customer-logo img.master-logo,
  body.customer-site>.customer-header .landing-logo-panel img.master-logo{
    height:64px!important;
    max-height:64px!important;
  }
  body.customer-site>.customer-header .customer-menu-toggle{
    width:44px!important;
    height:44px!important;
    margin:1px 0 0!important;
  }

  body.cinematic-home .cinematic-home-copy,
  body.customer-event-page:not(.dough-invite-mode) .dough-coming-copy{
    width:min(50vw,520px)!important;
    margin-right:0!important;
    margin-left:var(--u202-inset)!important;
  }
  body.customer-preorder .cinematic-preorder-hero>div,
  body.customer-dining-page .pay-hero-copy{
    right:auto!important;
    width:min(50vw,520px)!important;
  }

  body.cinematic-home .cinematic-home-copy .cinematic-red-rule,
  body.customer-preorder .preorder-title-accent,
  body.customer-dining-page .pay-red-rule,
  body.customer-event-page:not(.dough-invite-mode) .dough-red-rule{
    height:3px!important;
  }
}

@media(prefers-reduced-transparency:reduce){
  body.customer-site>.customer-header,
  body.customer-preorder>.customer-footer,
  body.customer-dining-page .customer-footer,
  body.customer-event-page:not(.dough-invite-mode)>.customer-footer{
    background:#050505!important;
  }
}
