/* Category-first menu with locally hosted photo tiles and bilingual labels. */
.category-overview,
.menu-results {
  min-width: 0;
}

.category-overview-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 24px;
  align-items: center;
  margin-bottom: 24px;
}

.category-overview-heading > div {
  grid-column: 1;
  grid-row: 1 / span 2;
}

#category-overview-title {
  grid-column: 1;
  font-family: var(--display);
  font-size: 29px;
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: 1.25;
  color: var(--green);
}

#category-summary {
  grid-column: 1;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

#browse-full-menu {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  min-height: 44px;
  border-top: 0;
  border-left: 0;
  border-right: 0;
  background: transparent;
  font-size: 12px;
  white-space: nowrap;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.category-button {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  width: 100%;
  min-width: 0;
  aspect-ratio: 1.4;
  padding: 0;
  overflow: hidden;
  border: 1px solid #5d493c24;
  border-radius: 11px;
  background: #493322;
  color: #fffdf8;
  text-align: left;
  box-shadow: 0 3px 12px #44331e0a;
  -webkit-tap-highlight-color: transparent;
}

.category-button-image,
.category-button::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.category-button-image {
  z-index: -2;
  display: block;
  object-fit: cover;
  object-position: var(--category-photo-position, 50% 50%);
}

.category-button::after {
  z-index: -1;
  content: '';
  background: linear-gradient(180deg, #1b130900 16%, #1b13091a 38%, #1b130990 67%, #211306ed 100%);
}

.category-button-content {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  min-width: 0;
  padding: 22px;
}

.category-button-copy {
  display: block;
  min-width: 0;
}

.category-button-copy > strong {
  display: block;
  font-family: var(--display);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: 1.13;
  overflow-wrap: normal;
  text-wrap: balance;
  text-shadow: 0 1px 5px #1c10085c;
}

.category-button-arrow {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border: 1px solid #fffdf8b3;
  border-radius: 50%;
  color: inherit;
  background: #fffdf80d;
  transition: background .18s ease, border-color .18s ease;
}

.category-button-arrow .icon {
  width: 21px;
  height: 21px;
}

.category-button:hover .category-button-arrow,
.category-button:focus-visible .category-button-arrow {
  background: #fffdf82b;
  border-color: #fffdf8;
}

.category-button:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 4px;
}

.category-photo-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

#menu-results {
  width: min(100%, 920px);
  margin-inline: auto;
}

/* The page already has scroll-padding for the sticky header. */
#menu-results,
#category-overview-title,
#menu-status,
.menu-group-title h3 {
  scroll-margin-top: 24px;
}

.category-detail-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 25px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.category-back-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid #cbd4c3;
  border-radius: 3px;
  background: var(--paper);
  color: var(--green);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
  transition: background .18s ease, border-color .18s ease;
}

.category-back-button .icon {
  width: 17px;
  height: 17px;
  transform: rotate(180deg);
}

.category-back-button:hover {
  border-color: var(--green);
  background: #edf0e5;
}

.category-detail-toolbar .subtle-button {
  min-height: 44px;
  font-size: 12px;
}

#menu-results .results-heading {
  margin-bottom: 25px;
}

#menu > .wrap > .menu-order-note {
  margin-top: 28px;
}

@media (max-width: 960px) {
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 17px;
  }

  .category-button-content {
    padding: 20px;
  }

  .category-button-copy > strong {
    font-size: 26px;
  }
}

@media (max-width: 640px) {
  .category-overview-heading {
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
    margin-bottom: 20px;
  }

  #category-overview-title {
    font-size: 26px;
  }

  #category-summary {
    font-size: 11px;
  }

  #browse-full-menu {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
    margin-top: 5px;
    font-size: 11px;
  }

  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .category-button {
    aspect-ratio: 1.25;
    min-height: 132px;
    border-radius: 9px;
  }

  .category-button-content {
    padding: 13px 11px;
    gap: 7px;
  }

  .category-button-copy > strong {
    font-size: clamp(17px, 4.6vw, 23px);
    letter-spacing: -.025em;
    line-height: 1.13;
  }

  .category-button-arrow {
    width: 27px;
    height: 27px;
  }

  .category-button-arrow .icon {
    width: 16px;
    height: 16px;
  }

  .category-photo-note {
    font-size: 10px;
  }

  .category-detail-toolbar {
    gap: 13px;
    margin-bottom: 21px;
    padding-bottom: 18px;
  }

  .category-back-button {
    padding: 10px 12px;
    font-size: 11px;
    gap: 8px;
  }

  .category-detail-toolbar .subtle-button {
    font-size: 11px;
  }

  #menu-results,
  #category-overview-title,
  #menu-status,
  .menu-group-title h3 {
    scroll-margin-top: 18px;
  }
}

@media (max-width: 360px) {
  .category-grid {
    gap: 10px;
  }

  .category-button-content {
    padding: 12px 8px;
    gap: 5px;
  }

  .category-button-copy > strong {
    font-size: 16px;
  }

  .category-button-arrow {
    width: 22px;
    height: 22px;
  }

  .category-back-button {
    padding-inline: 10px;
    font-size: 10px;
  }

  .category-detail-toolbar .subtle-button {
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .category-button-arrow,
  .category-back-button {
    transition: none;
  }
}

/* Keep each drink and dish centered in the responsive card crop. */
.category-button[data-category="kids"] { --category-photo-position: 50% 50%; }
.category-button[data-category="sides"] { --category-photo-position: 50% 50%; }
.category-button[data-category="desserts"] { --category-photo-position: 50% 50%; }
.category-button[data-category="non-alcoholic-beverages"] { --category-photo-position: 50% 55%; }
.category-button[data-category="margaritas"] { --category-photo-position: 50% 40%; }
.category-button[data-category="beer"] { --category-photo-position: 50% 20%; }
.category-button[data-category="mixed-drinks"] { --category-photo-position: 50% 50%; }
.category-button[data-category="tequila-shots"] { --category-photo-position: 50% 60%; }
.category-button[data-category="tacos"] { --category-photo-position: 30% 50%; }
