/* UPDATE 215 — VISIBLE LOGO/TITLE ALIGNMENT + TRUE RECTANGULAR HOME ACTIONS
   Update 214 aligned outer containers. This layer aligns the rendered master
   logo and the actual large cream H1 on all four public customer pages.
   It also caps the three Home actions at a genuinely low rectangular height. */

:root{
  --u215-cream:#f4ebdb;
  --u215-red:#c7372a;
  --u215-page-gutter:5.4vw;
  --u215-logo-top:12px;
  --u215-logo-width:300px;
  --u215-logo-height:96px;
  --u215-title-top:210px;
  --u215-action-height:92px;
}

/* Position the same image at the same visible coordinates. This removes the
   page-grid and intrinsic image-ratio differences seen in Update 214. */
body.customer-site>.customer-header .customer-logo,
body.customer-site>.customer-header .landing-logo-panel{
  position:absolute!important;
  top:var(--u215-logo-top)!important;
  left:var(--u215-page-gutter)!important;
  right:auto!important;
  bottom:auto!important;
  width:var(--u215-logo-width)!important;
  min-width:var(--u215-logo-width)!important;
  max-width:var(--u215-logo-width)!important;
  height:var(--u215-logo-height)!important;
  min-height:var(--u215-logo-height)!important;
  max-height:var(--u215-logo-height)!important;
  margin:0!important;
  padding:0!important;
  transform:none!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;
  min-width:100%!important;
  max-width:100%!important;
  height:100%!important;
  min-height:100%!important;
  max-height:100%!important;
  margin:0!important;
  padding:0!important;
  object-fit:contain!important;
  object-position:left top!important;
  transform:none!important;
}

@media(min-width:901px){
  /* Home and Pre-Order begin directly with the main title. */
  body.cinematic-home .cinematic-home-copy,
  body.customer-preorder .cinematic-preorder-hero>div{
    top:var(--u215-title-top)!important;
  }

  /* Pizza At Yours has panel padding plus its kicker before H1. */
  body.customer-dining-page .pay-hero-copy{
    top:calc(var(--u215-title-top) - 67px)!important;
  }

  /* Dough & Co. has its launch label before H1. */
  body.customer-event-page:not(.dough-invite-mode) .dough-coming-copy{
    top:calc(var(--u215-title-top) - 45px)!important;
  }

  /* Low horizontal actions: 92 CSS px is below the requested 2.5 cm target
     at the standard 96 px/in CSS reference. */
  body.cinematic-home .cinematic-home-main{
    grid-template-rows:minmax(0,1fr) 132px!important;
  }
  body.cinematic-home .cinematic-journeys{
    height:132px!important;
    min-height:132px!important;
    max-height:132px!important;
    padding:32px 3.2vw 8px!important;
    align-items:center!important;
  }
  body.cinematic-home .cinematic-journeys::before{
    top:9px!important;
  }
  body.cinematic-home .cinematic-journey,
  body.cinematic-home .cinematic-journey:nth-child(2){
    height:var(--u215-action-height)!important;
    min-height:var(--u215-action-height)!important;
    max-height:var(--u215-action-height)!important;
    padding:8px 18px!important;
    align-self:center!important;
  }
  body.cinematic-home .cinematic-journey strong{
    font-size:clamp(21px,1.65vw,27px)!important;
    line-height:1!important;
  }
  body.cinematic-home .cinematic-journey-divider{
    height:2px!important;
    margin:7px 0!important;
  }
  body.cinematic-home .cinematic-journey em{
    font-size:clamp(8px,.62vw,10px)!important;
    line-height:1.25!important;
  }
}

@media(max-width:900px){
  :root{
    --u215-page-gutter:28px;
    --u215-logo-top:12px;
    --u215-logo-width:min(220px,62vw);
    --u215-logo-height:78px;
    --u215-title-top:148px;
    --u215-action-height:82px;
  }

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

  body.customer-dining-page .pay-hero-copy{
    top:calc(var(--u215-title-top) - 46px)!important;
  }

  body.customer-event-page:not(.dough-invite-mode) .dough-coming-copy{
    top:calc(var(--u215-title-top) - 36px)!important;
  }

  body.cinematic-home .cinematic-home-main{
    grid-template-rows:minmax(0,1fr) 118px!important;
  }
  body.cinematic-home .cinematic-journeys{
    height:118px!important;
    min-height:118px!important;
    max-height:118px!important;
    padding:29px clamp(8px,2vw,16px) calc(7px + env(safe-area-inset-bottom))!important;
    align-items:center!important;
  }
  body.cinematic-home .cinematic-journeys::before{
    top:8px!important;
  }
  body.cinematic-home .cinematic-journey,
  body.cinematic-home .cinematic-journey:nth-child(2){
    height:var(--u215-action-height)!important;
    min-height:var(--u215-action-height)!important;
    max-height:var(--u215-action-height)!important;
    padding:7px 8px!important;
    align-self:center!important;
  }
  body.cinematic-home .cinematic-journey strong{
    font-size:clamp(14px,2.8vw,21px)!important;
    line-height:1!important;
  }
  body.cinematic-home .cinematic-journey-divider{
    height:2px!important;
    margin:6px 0!important;
  }
  body.cinematic-home .cinematic-journey em{
    font-size:clamp(7px,1.25vw,9px)!important;
    line-height:1.2!important;
  }
}

@media(max-width:900px) and (orientation:landscape){
  :root{
    --u215-page-gutter:32px;
    --u215-logo-top:6px;
    --u215-logo-width:190px;
    --u215-logo-height:64px;
    --u215-title-top:86px;
    --u215-action-height:68px;
  }

  body.customer-dining-page .pay-hero-copy{
    top:calc(var(--u215-title-top) - 43px)!important;
  }
  body.customer-event-page:not(.dough-invite-mode) .dough-coming-copy{
    top:calc(var(--u215-title-top) - 30px)!important;
  }

  body.cinematic-home .cinematic-home-main{
    grid-template-rows:minmax(0,1fr) 96px!important;
  }
  body.cinematic-home .cinematic-journeys{
    height:96px!important;
    min-height:96px!important;
    max-height:96px!important;
    padding:24px 3vw 4px!important;
  }
  body.cinematic-home .cinematic-journeys::before{
    top:6px!important;
    font-size:8px!important;
  }
  body.cinematic-home .cinematic-journey,
  body.cinematic-home .cinematic-journey:nth-child(2){
    padding:5px 8px!important;
  }
  body.cinematic-home .cinematic-journey strong{
    font-size:clamp(13px,2vw,17px)!important;
  }
  body.cinematic-home .cinematic-journey-divider{
    margin:4px 0!important;
  }
  body.cinematic-home .cinematic-journey em{
    font-size:clamp(6.5px,1vw,8px)!important;
  }
}

@media(max-width:430px) and (orientation:portrait){
  :root{
    --u215-action-height:78px;
  }
  body.cinematic-home .cinematic-home-main{
    grid-template-rows:minmax(0,1fr) 114px!important;
  }
  body.cinematic-home .cinematic-journeys{
    height:114px!important;
    min-height:114px!important;
    max-height:114px!important;
    padding:29px 7px calc(7px + env(safe-area-inset-bottom))!important;
  }
  body.cinematic-home .cinematic-journey,
  body.cinematic-home .cinematic-journey:nth-child(2){
    padding:6px!important;
  }
  body.cinematic-home .cinematic-journey strong{
    font-size:clamp(12px,3.4vw,15px)!important;
  }
  body.cinematic-home .cinematic-journey em{
    font-size:clamp(6.2px,1.65vw,7.5px)!important;
  }
}

