/* ==========================================================================
   Tacontodo — menu page
   Always a white printed-menu card, in both color schemes.
   Tokens and fonts come from ../main.css.
   ========================================================================== */

.menu {
  max-width: 760px;
  margin: 0 auto;
  color: #111518;
  -webkit-font-smoothing: antialiased;
}

.menu__panel {
  padding: 0 26px 34px;
  border-radius: 14px;
  overflow: clip;
  background: #fff;
}


/* Category tabs: sticky under the navigation bar, with a fade where they still scroll */

.menu__categories {
  position: sticky;
  top: var(--nav-height);
  z-index: 5;
  display: flex;
  gap: 2px;
  margin: 0 -26px;
  padding: 0 14px;
  overflow-x: auto;
  border-bottom: 1px solid #E4E6E8;
  background: rgba(255, 255, 255, .97);
  scrollbar-width: none;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.menu__categories::-webkit-scrollbar {
  display: none;
}

.menu__categories a {
  flex: 0 0 auto;
  padding: 18px 14px 15px;
  border-bottom: 3px solid transparent;
  color: #7A838B;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 1.2px;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color .15s, border-color .15s;
}

.menu__categories a:hover {
  color: #111518;
}

.menu__categories a.is-active {
  border-bottom-color: var(--accent);
  color: #111518;
}

.menu__categories.has-more-right {
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 64px), transparent);
  mask-image: linear-gradient(to right, #000 calc(100% - 64px), transparent);
}

.menu__categories.has-more-left {
  -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 64px), transparent);
  mask-image: linear-gradient(to left, #000 calc(100% - 64px), transparent);
}

.menu__categories.has-more-left.has-more-right {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 56px, #000 calc(100% - 64px), transparent);
  mask-image: linear-gradient(to right, transparent, #000 56px, #000 calc(100% - 64px), transparent);
}


/* Categories */

.menu__category {
  padding-top: 26px;
  scroll-margin-top: calc(var(--nav-height) + 54px);
}

/* The flex container makes the heading hug its text */
.menu__category-header {
  display: flex;
}

.menu h2 {
  display: block;
  margin: 0;
  padding: 9px 20px 8px;
  border-radius: 12px;
  background: #111518;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: var(--display-size-card);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* Dark categories attach their heading to the note below it */
.menu__category--dark h2 {
  padding: 12px 20px 5px;
  border-radius: 12px 12px 0 0;
}

.menu__category-note {
  margin: 0;
  padding: 12px 18px;
  border-radius: 0 12px 12px 12px;
  background: #111518;
  color: #fff;
  font-size: 14.5px;
  line-height: 1.4;
}


/* Items */

.menu__items {
  margin: 1px 0 0;
  padding: 0;
  list-style: none;
}

.menu__subheading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 3px 0;
  padding: 2px 14px;
  border-radius: 8px;
  background: #111518;
  color: #fff;
  font-size: var(--text-size-small);
  font-style: italic;
  font-weight: 600;
  line-height: 1.5;
  text-transform: lowercase;
}

.menu__subheading::before,
.menu__subheading::after {
  content: "";
  flex: 0 0 44px;
  width: 44px;
  height: 1px;
  background: rgba(255, 255, 255, .35);
}

.menu__items > .menu__subheading:first-child {
  margin-top: 5px;
}

.menu__item {
  margin: 0 20px;
  border-bottom: 1px solid #E4E6E8;
}

.menu__item-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  color: inherit;
  text-decoration: none;
}

.menu__item-link::after {
  content: '+';
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #111518;
  font-size: 22px;
  font-weight: 600;
  line-height: 26px;
  text-align: center;
}

.menu__item-link:hover h3 {
  color: #C8432F;
}

.menu__items > li:last-child,
.menu__item:has(+ .menu__subheading) {
  border-bottom: 0;
}

.menu__item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  min-width: 0;
}

.menu h3 {
  margin: 0;
  color: #111518;
  font-size: var(--text-size-body);
  font-weight: 600;
  line-height: 1.3;
}

.menu__item-info p {
  margin: 0;
  color: #4A5258;
  font-size: var(--text-size-small);
  line-height: 1.4;
}

.menu__item-price {
  flex: 0 0 auto;
  color: #111518;
  font-family: var(--font-display);
  font-size: var(--display-size-label);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .06em;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 600px) {
  .menu__panel {
    padding: 0 16px 26px;
  }

  .menu__categories {
    margin: 0 -16px;
    padding: 0 4px;
  }
}
