/* UPDATE 203 — MOBILE TITLE DATUM + DOUGH PHOTOGRAPH RESTORE
   Corrective layer for the four public customer pages. The previous update
   aligned the header frames but did not align the actual H1 start position.
   This file gives every mobile H1 the same visual distance below the shared
   logo while retaining each page's approved type scale and content. */

:root{
  --u203-cream:#f4ebdb;
  --u203-title-top:148px;
}

/* Update 202's edge-colour safeguard must not become an opaque panel over the
   Dough & Co. body photograph. The approved photography remains on the body. */
body.customer-event-page:not(.dough-invite-mode)>.customer-shell,
body.customer-event-page:not(.dough-invite-mode) .dough-coming-soon{
  background-color:transparent!important;
  background-image:none!important;
}

/* The launch label is intentionally plain cream: no red, glow, outline or
   label-attached rule. The shared red rule remains beneath the page title. */
body.customer-event-page:not(.dough-invite-mode) .dough-launch-date{
  color:var(--u203-cream)!important;
  text-shadow:none!important;
  -webkit-text-stroke:0!important;
}
body.customer-event-page:not(.dough-invite-mode) .dough-launch-date::after{
  content:none!important;
  display:none!important;
}

@media(max-width:900px){
  /* H1 datum: 148px from the customer viewport top in portrait/tablet.
     Pages with an eyebrow start their copy block 26–28px earlier so their H1,
     not the eyebrow, lands on the same datum. */
  body.cinematic-home .cinematic-home-copy{
    position:relative!important;
    top:auto!important;
    bottom:auto!important;
    left:auto!important;
    align-self:start!important;
    padding-top:var(--u203-title-top)!important;
    transform:none!important;
  }

  body.customer-preorder .cinematic-preorder-hero>div{
    position:absolute!important;
    top:var(--u203-title-top)!important;
    bottom:auto!important;
    transform:none!important;
  }

  body.customer-dining-page .pay-hero-copy{
    position:absolute!important;
    top:122px!important;
    bottom:auto!important;
    transform:none!important;
  }

  body.customer-event-page:not(.dough-invite-mode) .dough-coming-copy{
    position:absolute!important;
    top:120px!important;
    bottom:auto!important;
    transform:none!important;
  }

  body.customer-event-page:not(.dough-invite-mode){
    background-color:#050505!important;
  }
}

@media(max-width:900px) and (orientation:portrait){
  body.customer-event-page:not(.dough-invite-mode){
    background-image:
      linear-gradient(180deg,rgba(0,0,0,.57) 0%,rgba(0,0,0,.05) 26%,rgba(0,0,0,.14) 52%,rgba(0,0,0,.88) 81%,rgba(0,0,0,.98) 100%),
      url('/assets/dough-co-pizzas-portrait.png')!important;
    background-position:center,center center!important;
    background-size:auto,cover!important;
    background-repeat:no-repeat!important;
  }
}

@media(max-width:900px) and (orientation:landscape){
  :root{--u203-title-top:86px}

  body.cinematic-home .cinematic-home-copy,
  body.customer-preorder .cinematic-preorder-hero>div{
    top:var(--u203-title-top)!important;
  }

  body.cinematic-home .cinematic-home-copy{
    top:auto!important;
    padding-top:var(--u203-title-top)!important;
  }

  body.customer-dining-page .pay-hero-copy{
    top:60px!important;
  }

  body.customer-event-page:not(.dough-invite-mode) .dough-coming-copy{
    top:54px!important;
  }

  body.customer-event-page:not(.dough-invite-mode){
    background-image:
      linear-gradient(90deg,rgba(0,0,0,.94) 0%,rgba(0,0,0,.67) 38%,rgba(0,0,0,.12) 72%),
      linear-gradient(180deg,rgba(0,0,0,.5),rgba(0,0,0,.08) 46%,rgba(0,0,0,.55)),
      url('/assets/dough-co-pizzas-landscape.png')!important;
    background-position:center,center,center 52%!important;
    background-size:auto,auto,cover!important;
    background-repeat:no-repeat!important;
  }
}
