/*
  Layout repair layer.
  Keeps the original visual language while making the semantic wrappers
  layout-neutral and correcting sections that could shift or overlap.
*/

/* The semantic MAIN was added after export. It must not introduce a new box
   because the original page sections were direct children of the page root. */
.site-main {
  display: contents;
}

/* Keep the single retained navigation component visually identical and stable. */
.site-header,
.navigation-wrapper {
  display: contents;
}
.navigation-section {
  top: 0;
  z-index: 1000;
}
.navigation-panel {
  width: 100%;
}

/* Homepage hero: prevent content and the absolute directory from colliding
   on short desktop/laptop viewports. */
.hero-entrance-content,
.hero-entrance-footer {
  width: auto;
  max-width: 100%;
}
.hero-entrance-actions > a {
  display: inline-block;
  width: min(100%, 32rem);
}
.hero-entrance-cta {
  box-sizing: border-box;
}

/* Menu page: restore breathing room and coherent card geometry. */
.tlap-local-menu-categories-container-elm,
.tlap-local-menu-list-container-elm,
.tlap-local-allergen-container-elm,
.tlap-local-menu-footer-container-elm {
  width: 100%;
  max-width: 1200px;
  box-sizing: border-box;
}

.tlap-local-menu-categories-container-elm {
  gap: clamp(1.75rem, 3vw, 3.25rem);
}

.tlap-local-menu-categories-grid-elm,
.tlap-local-menu-grid-elm1,
.tlap-local-menu-grid-elm2 {
  gap: clamp(0.9rem, 1.6vw, 1.35rem);
}

.tlap-local-category-content-elm1,
.tlap-local-category-content-elm2,
.tlap-local-category-content-elm3 {
  padding: var(--spacing-lg);
}

.tlap-local-menu-item-upper-elm1,
.tlap-local-menu-item-upper-elm2,
.tlap-local-menu-item-upper-elm3,
.tlap-local-menu-item-upper-elm4 {
  padding: var(--spacing-lg) var(--spacing-xl) 0;
}

.tlap-local-section-title-elm2,
.tlap-local-section-title-elm3 {
  margin-bottom: var(--spacing-xl);
}

#main-courses {
  margin-top: var(--spacing-3xl);
}

.tlap-local-menu-item-card-elm1,
.tlap-local-menu-item-card-elm2,
.tlap-local-menu-item-card-elm3,
.tlap-local-menu-item-card-elm4 {
  min-width: 0;
}

/* Keep dish imagery centered without allowing intrinsic image dimensions to
   distort the cards. */
.tlap-container15,
.tlap-container20,
.tlap-container26,
.tlap-container30 {
  min-height: 152px;
  align-items: center;
}
.tlap-image5,
.tlap-image6,
.tlap-image7,
.tlap-image8 {
  width: 120px;
  height: 120px;
  max-width: 120px;
  flex: 0 0 120px;
}

/* Short-height desktop windows: stack the hero footer in normal flow instead
   of letting it cover the CTA/text. */
@media (min-width: 768px) and (max-height: 680px) {
  .hero-entrance {
    min-height: auto;
    justify-content: flex-start;
    padding-top: clamp(3rem, 8vh, 4.5rem);
    padding-bottom: clamp(2.5rem, 7vh, 4rem);
  }

  .hero-entrance-content {
    margin-bottom: 2.25rem;
  }

  .hero-entrance .hero-subtitle {
    margin-bottom: 1.5rem;
  }

  .hero-entrance-footer {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    margin-top: 0;
  }

  .tlap-local-menu-hero-elm,
  .tlap-local-menu-hero-container-elm {
    min-height: auto;
  }

  .tlap-local-menu-hero-container-elm {
    padding-top: clamp(2.75rem, 8vh, 4rem);
    padding-bottom: clamp(2.75rem, 8vh, 4rem);
  }
}

/* Tablet/mobile: all information in a real single-column flow. */
@media (max-width: 900px) {
  .tlap-local-menu-categories-container-elm {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .tlap-local-menu-categories-grid-elm {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tlap-local-allergen-container-elm {
    grid-template-columns: auto minmax(0, 1fr);
    gap: var(--spacing-xl);
  }

  .tlap-local-resource-grid-elm {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
}

@media (max-width: 767px) {
  .hero-entrance {
    min-height: auto;
    padding: 3.5rem 1rem 2rem;
    justify-content: flex-start;
  }

  .hero-entrance-content {
    max-width: 100%;
  }

  .hero-entrance .hero-subtitle {
    margin-bottom: 1.5rem;
  }

  .hero-entrance-actions > a,
  .hero-entrance-cta {
    width: 100%;
    max-width: 100%;
  }

  .hero-entrance-footer {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    margin-top: 2rem;
  }

  .hero-entrance-directory,
  .tlap-local-menu-hero-directory-elm,
  .tlap-local-menu-categories-grid-elm,
  .tlap-local-menu-grid-elm1,
  .tlap-local-menu-grid-elm2,
  .tlap-local-allergen-container-elm,
  .tlap-local-resource-grid-elm {
    grid-template-columns: 1fr;
  }

  .hero-entrance-directory {
    gap: 1rem;
  }

  .hero-directory-item {
    padding-bottom: 0.85rem;
  }

  .tlap-local-menu-hero-elm,
  .tlap-local-menu-hero-container-elm {
    min-height: auto;
  }

  .tlap-local-menu-hero-container-elm {
    padding: 3rem 1rem;
  }

  .tlap-local-menu-hero-content-elm {
    width: 100%;
    max-width: 100%;
  }

  .tlap-local-btn-elm1 {
    max-width: 100%;
  }

  .tlap-local-menu-hero-directory-elm {
    gap: 0;
  }

  .directory-item {
    padding: 0.85rem 0;
  }

  .tlap-local-menu-categories-elm,
  .tlap-local-menu-list-elm,
  .tlap-local-allergen-info-elm,
  .tlap-local-menu-footer-info-elm {
    padding-top: 2.75rem;
    padding-bottom: 2.75rem;
  }

  .tlap-local-menu-categories-container-elm,
  .tlap-local-menu-list-container-elm,
  .tlap-local-allergen-container-elm,
  .tlap-local-menu-footer-container-elm {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .tlap-local-menu-item-upper-elm1,
  .tlap-local-menu-item-upper-elm2,
  .tlap-local-menu-item-upper-elm3,
  .tlap-local-menu-item-upper-elm4,
  .tlap-local-menu-item-lower-elm1,
  .tlap-local-menu-item-lower-elm2,
  .tlap-local-menu-item-lower-elm3,
  .tlap-local-menu-item-lower-elm4 {
    padding-left: 1.15rem;
    padding-right: 1.15rem;
  }

  #main-courses {
    margin-top: 2.5rem;
  }

  .tlap-local-resource-featured-elm {
    height: auto;
    min-height: 320px;
  }
}

@media (max-width: 479px) {
  .hero-entrance {
    padding-top: 2.5rem;
  }

  .hero-entrance-badge,
  .tlap-local-menu-hero-badge-elm {
    max-width: 100%;
    white-space: normal;
  }

  .tlap-local-category-content-elm1,
  .tlap-local-category-content-elm2,
  .tlap-local-category-content-elm3 {
    padding: 1rem;
  }

  .tlap-image5,
  .tlap-image6,
  .tlap-image7,
  .tlap-image8 {
    width: 108px;
    height: 108px;
    max-width: 108px;
    flex-basis: 108px;
  }
}
