/* A persistent language choice above the restaurant navigation. */
html {
  --language-strip-height: 56px;
  --header-row-height: 99px;
  scroll-padding-top: calc(var(--language-strip-height) + var(--header-row-height) + 21px);
}

.language-bar {
  background: var(--green-deep);
  color: var(--paper);
}

.language-bar-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  min-height: var(--language-strip-height);
  padding-top: 6px;
  padding-bottom: 6px;
}

.language-label {
  flex-shrink: 0;
  color: #e0e8db;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .025em;
  white-space: nowrap;
}

.language-switch {
  display: inline-flex;
  flex-shrink: 0;
  align-items: stretch;
  gap: 5px;
}

.language-switch button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid #809480;
  border-radius: 3px;
  background: transparent;
  color: var(--paper);
  font-family: var(--body);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  transition: background .16s ease, border-color .16s ease, color .16s ease;
}

.language-switch button:hover {
  border-color: var(--paper);
  background: #31563d;
}

.language-switch button[aria-pressed="true"] {
  border-color: var(--paper);
  background: var(--paper);
  color: var(--green);
  box-shadow: inset 0 -3px 0 var(--yellow);
}

.language-switch button:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
}

/* Anchor navigation and the mobile panel clear both sticky header rows. */
.site-header .mobile-nav {
  top: 100%;
}

.mobile-nav > a > .mobile-nav-label {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}

.special-instructions > .instruction-label {
  display: inline;
  margin: 0;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}

/* Spanish copy can use its natural line breaks without widening the page. */
html[lang="es"] .hero-copy,
html[lang="es"] .about-copy,
html[lang="es"] .visit-copy,
html[lang="es"] .build-copy {
  min-width: 0;
}

html[lang="es"] .hero h1 {
  font-size: clamp(48px, 5.7vw, 77px);
  overflow-wrap: break-word;
}

html[lang="es"] .hero-actions {
  column-gap: 18px;
  row-gap: 14px;
}

html[lang="es"] .hero-actions > a {
  max-width: 100%;
  white-space: normal;
}

html[lang="es"] .menu-group-title h3 {
  min-width: 0;
  overflow-wrap: break-word;
}

@media (max-width: 1100px) {
  html[lang="es"] .hero h1 {
    font-size: clamp(43px, 5.9vw, 64px);
  }
}

@media (max-width: 800px) {
  html {
    --header-row-height: 82px;
  }

  html[lang="es"] .hero h1 {
    font-size: clamp(37px, 5.8vw, 47px);
  }

  html[lang="es"] .desktop-nav {
    gap: 14px;
  }
}

@media (max-width: 640px) {
  html {
    --header-row-height: 77px;
  }

  .language-bar-inner {
    justify-content: center;
    gap: 12px;
  }

  .language-label {
    font-size: 10px;
    letter-spacing: 0;
  }

  .language-switch {
    gap: 4px;
  }

  .language-switch button {
    min-width: 83px;
    padding-inline: 12px;
    font-size: 12px;
  }

  .site-header .mobile-nav {
    max-height: calc(100vh - var(--language-strip-height) - var(--header-row-height) - 1px);
    max-height: calc(100dvh - var(--language-strip-height) - var(--header-row-height) - 1px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  html[lang="es"] .hero h1 {
    font-size: clamp(42px, 11.5vw, 63px);
  }

  html[lang="es"] .category-detail-toolbar {
    flex-wrap: wrap;
  }

  html[lang="es"] .visit-actions .button,
  html[lang="es"] .map-open-link {
    white-space: normal;
  }
}

@media (max-width: 360px) {
  .language-bar-inner {
    gap: 8px;
  }

  .language-label {
    font-size: 9.5px;
  }

  .language-switch button {
    min-width: 80px;
  }

  html[lang="es"] .hero h1 {
    font-size: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .language-switch button {
    transition: none;
  }
}
