/* Menu section tabs and the group-menu page.
   Both tabs are one grid of two equal columns. Each tab carries both labels
   in an aria-hidden sizer, so the column is as wide as the longer label
   and the two columns match. Text stays at body size and does not wrap. */

.menu-tabs{
  display:grid;
  grid-template-columns:1fr 1fr;
  width:100%;
  max-width:100%;
  margin:0 0 1rem;
  border:1px solid var(--orange-deep);
  border-radius:999px;
  background:var(--wood-light);
}
@media (min-width:720px){
  .menu-tabs{display:inline-grid;width:max-content}
}
.menu-tabs a{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:.45rem .4rem;
  color:var(--brown-dark);
  font-size:1.0625rem;
  font-weight:700;
  line-height:1.2;
  text-align:center;
  text-decoration:none;
}
.menu-tabs a + a{border-inline-start:1px solid var(--orange-deep)}
.menu-tabs a:first-child{border-start-start-radius:999px;border-end-start-radius:999px}
.menu-tabs a:last-child{border-start-end-radius:999px;border-end-end-radius:999px}
.menu-tabs a[aria-current="page"]{background:var(--brown);color:var(--on-dark)}
/* Phones: the bar uses the screen width, not the inset column, so a long
   label such as French "Menus de groupe" does not scroll the page.
   Type stays at body size from 360px up. */
@media (max-width:719.98px){
  .menu-tabs{
    width:calc(100% + 2rem - 2px);
    max-width:none;
    margin-inline:calc(-1rem + 1px);
  }
  .menu-tabs a{padding-inline:.12rem}
}
/* Below 360px the existing nav is already 0.9rem. */
@media (max-width:359.98px){
  .menu-tabs a{font-size:.9rem;padding-inline:.25rem}
}
.menu-tab-label,.menu-tab-sizer{white-space:nowrap}
.menu-tab-sizer{
  display:block;
  height:0;
  overflow:hidden;
  visibility:hidden;
  pointer-events:none;
}

.gm-intro{margin:.2rem 0 1rem;color:var(--muted)}
.gm-grid{display:grid;gap:1.1rem;grid-template-columns:1fr}
@media (min-width:900px){
  .gm-grid{grid-template-columns:1fr 1fr;align-items:start}
}
.gm-card{
  background:#fff;
  border:1px solid var(--wood);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:1.1rem 1.15rem 1.2rem;
  min-width:0;
}
.gm-card h2{margin:.1rem 0 .35rem;font-size:1.55rem;color:var(--brown-dark)}
.gm-price{margin:0 0 .25rem;font-weight:700;font-size:1.2rem;color:var(--orange-deep)}
.gm-price-value{font-variant-numeric:tabular-nums lining-nums}
.gm-inc{margin:0 0 .7rem;color:var(--muted)}
.gm-card h3{
  margin:1rem 0 .25rem;
  padding-bottom:.2rem;
  border-bottom:1px solid var(--wood);
  font-family:var(--font);
  font-size:.95rem;
  font-weight:700;
  letter-spacing:.04em;
  text-transform:uppercase;
  color:var(--brown);
}
.gm-note,.gm-sub{margin:.15rem 0 .2rem;color:var(--muted);font-size:.95rem}
.gm-sub{font-style:italic}
.gm-card ul{list-style:none;margin:0;padding:0}
.gm-card li{padding:.16rem 0}
.gm-actions{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:1rem}
.gm-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:0 1rem;
  border-radius:999px;
  font-weight:700;
  text-decoration:none;
  text-align:center;
}
.gm-btn-primary{background:var(--orange-deep);color:#fff}
.gm-btn-primary:hover{background:var(--orange-deeper);color:#fff}
.gm-btn-ghost{border:1px solid var(--orange-deep);background:var(--wood-light);color:var(--orange-deeper)}
.gm-terms{
  margin:1.2rem 0 0;
  padding:.85rem 1rem;
  background:var(--wood-light);
  border:1px solid var(--orange-deep);
  border-radius:var(--radius);
}
.gm-terms h2{margin:.1rem 0 .35rem;font-size:1.25rem}
.gm-terms ul{margin:.2rem 0;padding-inline-start:1.2rem}

/* Group page: the booking form is on the page, not in a modal, so it is
   reachable with no JavaScript. The hash on the reserve link scrolls to it. */
.menu-groups .bp-backdrop.bp-static{
  position:static;
  display:block;
  background:transparent;
  padding:0;
  z-index:auto;
}
.menu-groups .bp-backdrop.bp-static .bp-panel{
  width:min(40rem,100%);
  max-height:none;
  margin:1.5rem auto 0;
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}

/* Allergens dialog (menu page): the "Allergens" pill at the end of the allergy note, and the dialog it opens.
   Colours, radii and type are the site's; the dialog follows the bottom-sheet / centred-modal pattern of the booking panel. */
.allergen-open{
  display:inline-flex;align-items:center;justify-content:center;gap:.28rem;
  vertical-align:middle;margin:.35rem 0 0;margin-inline-start:.15rem;
  min-height:44px;padding:0 .8rem;
  border-radius:999px;border:1px solid var(--orange-deep);
  background:var(--wood-light);color:var(--brown-dark);
  font:inherit;font-size:.88rem;font-weight:700;letter-spacing:.01em;
  line-height:1;cursor:pointer;text-decoration:none
}
.allergen-open[hidden]{display:none}
.allergen-open:hover{background:#fff;color:var(--brown-dark)}
.allergen-open-icon{
  display:inline-flex;width:1.05em;height:1.05em;flex:none
}
.allergen-open-icon svg{width:100%;height:100%;display:block}

html.alrg-open,html.alrg-open body{overflow:hidden}

.alrg-backdrop{
  position:fixed;inset:0;z-index:130;background:rgba(20,12,8,.55);
  display:flex;align-items:flex-end;justify-content:center;
  padding:max(.75rem, env(safe-area-inset-top, 0px)) 0 0;
  overflow:hidden
}
.alrg-backdrop[hidden]{display:none!important}
.alrg-dialog{
  background:var(--cream);width:min(860px,100%);min-height:0;
  /* 100vh on mobile Chrome is often the large viewport (URL bar hidden), so 96vh can be
     taller than the visible area and, as a bottom sheet (flex-end), the title slips under
     the chrome. Cap to the backdrop (100%) and leave 3.5rem (56px at 16px root) above the
     sheet — enough for a typical Android Chrome URL bar whether or not svh < vh. */
  max-height:calc(100vh - 3.5rem);
  max-height:min(100%, calc(100dvh - 3.5rem));
  max-height:min(100%, calc(100svh - 3.5rem));
  border-radius:18px 18px 0 0;box-shadow:0 -8px 40px rgba(0,0,0,.35);
  display:flex;flex-direction:column;overflow:hidden;color:var(--ink)
}
.alrg-dialog:focus{outline:none}
@media (min-width:640px){
  .alrg-backdrop{align-items:center;padding:1.5rem}
  .alrg-dialog{border-radius:var(--radius);max-height:min(90vh,900px);max-height:min(90dvh,900px);box-shadow:var(--shadow)}
  .alrg-header{padding:1rem 1.25rem .75rem}
  .alrg-body{padding:.95rem 1.25rem 1.35rem}
  .alrg-intro{margin:0 0 .85rem}
  .alrg-footer{margin:.95rem 0 0;padding:.85rem .95rem}
}

.alrg-header{
  display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;
  padding:.85rem 1.1rem .6rem;border-bottom:1px solid var(--wood);background:#fff;
  flex:none
}
.alrg-heading{min-width:0}
.alrg-header h2{
  margin:0;font-size:1.45rem;color:var(--brown)
}
.alrg-sub{
  margin:.2rem 0 0;font-size:.92rem;font-weight:600;color:var(--orange-deeper);
  letter-spacing:.01em
}
.alrg-close{
  flex:none;min-width:44px;min-height:44px;border:0;border-radius:999px;
  background:var(--wood-light);color:var(--brown-dark);font:inherit;font-size:1.4rem;
  line-height:1;cursor:pointer
}
.alrg-close:hover{background:var(--wood)}
.alrg-close:focus-visible,.alrg-open:focus-visible{
  outline:3px solid var(--orange-deep);outline-offset:2px
}

.alrg-body{
  overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;
  padding:.7rem 1.1rem 1.1rem;min-height:0
}
.alrg-intro{
  margin:0 0 .6rem;font-weight:600;color:var(--brown-dark);line-height:1.4
}
.alrg-grid{
  list-style:none;margin:0;padding:0;
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
  gap:.5rem .3rem;align-items:start
}
@media (min-width:480px){
  .alrg-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:.7rem .4rem}
}
@media (min-width:640px){
  .alrg-grid{grid-template-columns:repeat(7,minmax(0,1fr));gap:.8rem .35rem}
}
.alrg-item{
  margin:0;display:flex;flex-direction:column;align-items:center;gap:.3rem;
  text-align:center;min-width:0
}
.alrg-icon{
  width:3rem;height:3rem;color:#1A120D;flex:none
}
@media (min-width:640px){
  .alrg-icon{width:3.5rem;height:3.5rem}
}
.alrg-icon svg{width:100%;height:100%;display:block}
.alrg-item figcaption{
  font-size:.7rem;line-height:1.2;font-style:italic;font-weight:600;
  color:var(--brown-dark);max-width:100%;text-wrap:balance
}
@media (min-width:640px){
  .alrg-item figcaption{font-size:.7rem}
}
/* Spanish captions are upper case, like the restaurant's printed allergen list. Slanted type is not used for Arabic or CJK. */
html[lang="es"] .alrg-item figcaption{text-transform:uppercase;letter-spacing:.02em;font-size:.66rem}
@media (min-width:640px){html[lang="es"] .alrg-item figcaption{font-size:.64rem}}
html[lang="ar"] .alrg-item figcaption,html[lang="ja"] .alrg-item figcaption,html[lang="ko"] .alrg-item figcaption,html[lang="zh"] .alrg-item figcaption{font-style:normal}

.alrg-footer{
  margin:.7rem 0 0;padding:.7rem .85rem;background:var(--wood-light);
  border:1px solid var(--wood);border-radius:var(--radius);
  color:var(--brown-dark);font-size:.95rem;line-height:1.4
}
.alrg-footer p{margin:0}
.alrg-footer p + p{margin-top:.45rem}
