/* PROVAI v0.10.153 — six-theme layout repair (mobile / PWA / small displays).
 * The public header is fixed and already outside <main class="screen">.
 * Earlier versions padded the screen AND offset the card, creating a 64px empty
 * strip and cutting off controls. Keep the screen in its own viewport below header.
 */
body.app-body.pv152-ready {
  overflow: hidden !important;
  overscroll-behavior: none;
}
body.app-body.pv152-ready .screen {
  position: fixed !important;
  inset: var(--pv151-header, 64px) 0 0 0 !important;
  padding: 0 !important;
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}
body.app-body.pv152-ready .screen #card.swipe-card.pv152-card,
body.app-body.pv152-ready .screen #nextCard.next-card.pv152-card {
  box-sizing: border-box !important;
  height: 100% !important;
  max-height: 100% !important;
  min-height: 0 !important;
  margin: 0 auto !important;
  padding: 0 !important;
  overflow: hidden !important;
}
body.app-body.pv152-ready .screen #card.swipe-card.pv152-card {
  position: relative !important;
  top: 0 !important;
}
body.app-body.pv152-ready .screen #nextCard.next-card.pv152-card {
  position: absolute !important;
  top: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  visibility: hidden;
}
/* Cards retain the layout-specific geometry; legacy icon sizes never take over. */
body.app-body.pv152-ready .screen #card.pv152-card .pv152-footer .controls,
body.app-body.pv152-ready .screen #nextCard.pv152-card .pv152-footer .controls {
  position: relative !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: 0 !important;
  transform: none !important;
  translate: none !important;
}
body.app-body.pv152-ready .screen #card.pv152-card .pv152-footer .controls .pv-control-unit,
body.app-body.pv152-ready .screen #nextCard.pv152-card .pv152-footer .controls .pv-control-unit {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  min-width: 0 !important;
  max-width: 100% !important;
  gap: 3px !important;
}
body.app-body.pv152-ready .screen #card.pv152-card .pv152-footer .controls .pv-control-unit > button,
body.app-body.pv152-ready .screen #nextCard.pv152-card .pv152-footer .controls .pv-control-unit > button {
  position: relative !important;
  inset: auto !important;
  display: grid !important;
  place-items: center !important;
  grid-row: auto !important;
  grid-column: auto !important;
  width: clamp(34px,10.3vw,49px) !important;
  height: clamp(34px,10.3vw,49px) !important;
  max-width: min(49px, 100%) !important;
  max-height: 49px !important;
  aspect-ratio: 1 !important;
  flex: none !important;
  margin: 0 !important;
  padding: 0 !important;
  translate: none !important;
  transform: none !important;
  font-size: clamp(20px,5.7vw,25px) !important;
  line-height: 1 !important;
}
body.app-body.pv152-ready .screen #card.pv152-card .pv152-footer .controls .pv-control-caption,
body.app-body.pv152-ready .screen #nextCard.pv152-card .pv152-footer .controls .pv-control-caption {
  min-height: 0 !important;
  max-height: 15px !important;
  overflow: hidden !important;
}
/* Close the mobile menu by tapping the same hamburger. Keep it visible above the
 * overlay and show the menu panel below the fixed header so nothing obscures it. */
body.app-body.public-menu-open header.public-top {
  /* The menu overlay was above the hamburger (overlay z89, header z80),
     swallowing the second click even when JS supported toggling. */
  z-index: 100 !important;
}
body.app-body .public-menu-drawer {
  top: var(--pv151-header, 64px) !important;
}
@media (min-width: 700px) {
 body.app-body.pv152-ready .screen {
   inset: var(--pv151-header,64px) auto 0 50% !important;
   transform: translateX(-50%) !important;
   width: min(100%, 520px) !important;
   max-width: 520px !important;
 }
}
@media (max-height: 610px) {
 body.app-body.pv152-ready .screen .pv152-card .pv152-footer {
   padding-top: 3px !important;
   padding-bottom: max(4px,env(safe-area-inset-bottom)) !important;
   gap: 1px !important;
 }
 body.app-body.pv152-ready .screen .pv152-card .pv152-surprise-row { min-height: 28px !important; }
 body.app-body.pv152-ready .screen .pv152-card .pv152-surprise-row button.surprise:not([hidden]) {
   min-height: 28px !important;
   max-height: 31px !important;
   padding-block: 5px !important;
 }
 body.app-body.pv152-ready .screen #card.pv152-card .pv152-footer .controls .pv-control-unit > button,
 body.app-body.pv152-ready .screen #nextCard.pv152-card .pv152-footer .controls .pv-control-unit > button {
   width: clamp(32px,9vw,38px) !important;
   height: clamp(32px,9vw,38px) !important;
 }
}
/* The 152 typography used layout overrides with weaker specificity than its
 * generic #pvFoodTextStack rule; these modes must have their own positions. */
body.app-body.pv152-ready .screen #card.pv152-card #pvFoodTextStack.food-info,
body.app-body.pv152-ready .screen #nextCard.pv152-card .pv-food-text-stack.food-info {
  max-height: none !important;
}
/* Cinema: title/description belong at the top, shop and service information
 * remain immediately above the action dock, not over the middle of the photo. */
body.app-body.pv152-ready.pv152-mode-cinema .screen #card.pv152-cinema #pvFoodTextStack.food-info,
body.app-body.pv152-ready.pv152-mode-cinema .screen #nextCard.pv152-cinema .food-info {
  position: absolute !important;
  inset: 0 0 104px 0 !important;
  display: flex !important;
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
  width: 100% !important;
  padding: 17px 16px 4px !important;
  align-self: auto !important;
  justify-content: flex-start !important;
  gap: 5px !important;
  pointer-events: none !important;
  background: linear-gradient(180deg, #000b 0%, transparent 33%, transparent 64%, #0009 100%) !important;
}
body.app-body.pv152-ready.pv152-mode-cinema .screen .pv152-cinema .food-info #restName {
  margin-top: auto !important;
  font-weight: 800 !important;
  color: #fff !important;
  order: 3 !important;
}
body.app-body.pv152-ready.pv152-mode-cinema .screen .pv152-cinema .food-info .pv-rating-inline {
  order: 4 !important;
  align-self: flex-start !important;
  margin-top: 0 !important;
}
body.app-body.pv152-ready.pv152-mode-cinema .screen .pv152-cinema .food-info .pv152-area { order: 5 !important; }
body.app-body.pv152-ready.pv152-mode-cinema .screen .pv152-cinema .food-info .pv152-services { order: 6 !important; }
/* Editorial: a half-width copy column cannot inherit the generic max-height. */
body.app-body.pv152-ready.pv152-mode-editorial .screen #card.pv152-editorial #pvFoodTextStack.food-info,
body.app-body.pv152-ready.pv152-mode-editorial .screen #nextCard.pv152-editorial .food-info {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: auto !important;
  bottom: auto !important;
  display: flex !important;
  height: calc(100% - 108px) !important;
  max-height: none !important;
  min-height: 0 !important;
  width: 48% !important;
  max-width: 48% !important;
  padding: 20px 1px 14px 14px !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  gap: clamp(4px,1vh,9px) !important;
  overflow: visible !important;
  background: transparent !important;
}
body.app-body.pv152-ready.pv152-mode-editorial .screen .pv152-editorial .food-info #foodName {
  font: 850 clamp(23px,7.3vw,37px)/.99 Georgia,'Times New Roman',serif !important;
  letter-spacing: -.055em !important;
  max-width: 100% !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}
body.app-body.pv152-ready.pv152-mode-editorial .screen .pv152-editorial .food-info .pv152-services {
  left: 12px !important;
  bottom: 4px !important;
  max-width: none !important;
  width: calc(200% - 12px) !important;
  flex-wrap: nowrap !important;
}
body.app-body.pv152-ready.pv152-mode-editorial .screen .pv152-editorial .food-info #foodDesc {
  font-size: 10.5px !important;
  line-height: 1.35 !important;
  overflow-wrap: anywhere !important;
}
/* Avoid hiding a long dish name or service status underneath dock controls. */
@media (max-height: 630px) {
 body.app-body.pv152-ready.pv152-mode-cinema .screen #card.pv152-cinema #pvFoodTextStack.food-info,
 body.app-body.pv152-ready.pv152-mode-cinema .screen #nextCard.pv152-cinema .food-info {
   inset: 0 0 89px 0 !important;
   padding-top: 9px !important;
   gap: 3px !important;
 }
 body.app-body.pv152-ready.pv152-mode-editorial .screen .pv152-editorial .food-info {
   gap: 3px !important;
 }
}

/* Re-enable review and evaluation links after detaching old text-layout classes. */
body.app-body.pv152-ready .screen .pv152-card .food-info a {
  pointer-events: auto !important;
  cursor: pointer !important;
}
