/* The restaurant's printed menu */
.show-menu { padding-block: clamp(1.9rem, 5vw, 3.8rem) clamp(2.8rem, 6vw, 5.4rem); }
.show-menu-header { display: flex; align-items: end; justify-content: space-between; gap: 1rem 3rem; margin-bottom: clamp(1.3rem, 3vw, 2.3rem); }
.show-menu-header h1 { font-weight: 400; font-size: clamp(2.85rem, 7vw, 6.1rem); }
.show-menu-header p { max-width: 41ch; color: var(--muted); }
.show-menu :is(.book-navigation,.counter-stage,.counter-tray)[hidden] { display: none; }
.menu-sr-only { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }

.bistro-menu-book { max-width: 1080px; }
.book-navigation { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .6rem 1rem; margin-bottom: .75rem; }
.book-chapters { display: flex; align-items: center; flex-wrap: wrap; gap: .35rem; }
.book-navigation button { min-height: 2.65rem; padding: .38rem .67rem; border: 1px solid transparent; border-radius: .22rem; background: transparent; color: var(--ink); font: 750 .88rem/1.28 Manrope,sans-serif; cursor: pointer; }
.book-chapters button { border-color: #69756a; }
.book-navigation button:is(:hover,[aria-pressed="true"]) { border-color: var(--action); }
.book-chapters button[aria-pressed="true"] { background: var(--action); color: var(--action-ink); }

.book-binding { position: relative; perspective: 1150px; touch-action: pan-y pinch-zoom; }
.book-spread { display: grid; grid-template-columns: minmax(0,.83fr) minmax(0,1.17fr); border-radius: .4rem .65rem .65rem .4rem; border: 1px solid #302219; color: #292c22; background: #f3e8d1; box-shadow: 0 4px 0 -1px #c7af87, 0 6px 0 -1px #443229, 0 9px 0 -1px #b59a71, 0 17px 32px #0004; }
.book-spread + .book-spread { margin-top: .95rem; }
.book-binding.is-paged { display: grid; }
.book-binding.is-paged .book-spread { grid-area: 1 / 1; margin: 0; }
.book-spread[inert] { visibility: hidden; }
.is-paged .book-paper { padding-bottom: max(3.7rem, 4.5vw); }
.book-corners { position: absolute; z-index: 3; inset: auto 1px 1px; display: grid; grid-template-columns: auto 1fr auto; align-items: end; pointer-events: none; }
.book-corner { width: 3.15rem; height: 3.15rem; border: 0; border-radius: 0 0 .4rem .4rem; color: #263b31; background: linear-gradient(135deg, transparent 46%, #bfa57c 48%, #e7d4ae 53%, #ead8b6); font: 700 1.65rem/1 Georgia,serif; cursor: pointer; pointer-events: auto; }
.book-corner[data-book-step="-1"] { background: linear-gradient(225deg, transparent 46%, #bfa57c 48%, #e7d4ae 53%, #ead8b6); text-align: left; padding-inline: .55rem 0; }
.book-corner[data-book-step="1"] { text-align: right; padding-inline: 0 .55rem; }
.book-corner span { position: relative; top: .38rem; }
.book-corner:not([aria-disabled="true"]):hover { color: #7a381f; filter: saturate(1.35) brightness(.93); }
.book-corner:focus-visible { outline-color: #533923; outline-offset: -3px; }
.book-corner[aria-disabled="true"] { visibility: hidden; }
.book-page { justify-self: center; padding: .15rem .5rem .45rem; color: #655239; font-size: .8rem; font-variant-numeric: tabular-nums; }
.book-illustration { display: grid; align-content: center; gap: .65rem; padding: clamp(.95rem,3.4vw,2.75rem); background: linear-gradient(90deg,#f0e2c8 83%,#dfcbaa); border-radius: .4rem 0 0 .4rem; }
.book-illustration img { aspect-ratio: .96; border: 1px solid #756950; border-radius: .14rem; object-position: center; }
.book-illustration figcaption { color: #534b38; font: italic 1.04rem/1.36 Georgia,serif; }
.book-paper { min-width: 0; padding: clamp(1.25rem,4.25vw,3.55rem); background: linear-gradient(90deg,#e4d0ad 0,#f7edda 9%,#f7edda 97%,#ede0c8); border-left: 1px solid #ab926e; border-radius: 0 .65rem .65rem 0; }
.book-paper .demo-content-section { display: block; padding: 0; border: 0; }
.book-paper .demo-content-section h2 { margin-bottom: 1rem; color: #344535; font-weight: 400; font-size: clamp(1.95rem,4.2vw,3.5rem); }
.book-paper .demo-list > div { padding-block: .6rem; border-color: #c8b996; }
.book-paper .demo-list dt { flex-wrap: nowrap; }
.book-paper .demo-list-value { color: #403321; white-space: nowrap; }
.book-paper .demo-list dd { color: #584e3e; font-size: .93rem; }
.book-leaf {
  position: absolute; z-index: 2; inset: 1px 1px 1px 41.5%; pointer-events: none;
  border: 1px solid #d1bb91; border-radius: 0 .65rem .65rem 0; transform-origin: left center;
  background: linear-gradient(90deg,#b3986f,#f8ebd2 13%,#f8ebd2 72%,#d0b186);
  overflow: hidden; box-shadow: 8px 5px 25px #37241766;
}
.book-leaf .book-paper { min-height: 100%; border: 0; border-radius: 0; }
.bistro-menu-book > .demo-actions { margin-top: 1.7rem; }

/* Mrvica's counter, three pressable objects, and the sample tray */
.cafe-counter { --counter-ink: #293b2d; --counter-green: #315541; --counter-milk: #fff8e9; }
.cafe-counter .show-menu-header { justify-content: start; }
.counter-layout { display: grid; grid-template: "stage receipt" auto "tray receipt" 1fr / minmax(0,1.13fr) minmax(0,.87fr); gap: clamp(.75rem,2.4vw,1.9rem); align-items: start; }
.counter-layout:not(:has(.counter-stage:not([hidden]))) { display: block; }
.counter-stage {
  grid-area: stage;
  display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .25rem;
  min-height: clamp(16rem,31vw,25rem); padding: clamp(.3rem,1.8vw,1.4rem);
  border: 1px solid #b6ae8f; border-bottom: .65rem solid #63513a; border-radius: .6rem .6rem .35rem .35rem;
  background:
    linear-gradient(180deg,transparent 0 74%,#a57b50 74% 75%,#d3a979 75% 86%,#77593d 86% 87%,#6b543c 87%),
    linear-gradient(90deg,transparent 96%,#beb593 96% 98%,#fff4db 98%) 0 0 / 2.45rem 2.45rem,
    linear-gradient(transparent 94%,#beb593 94% 98%,#faf1dc 98%) 0 0 / 2.45rem 2.45rem,
    #e5d9b9;
  box-shadow: 0 .65rem 1.1rem #48331b16;
}
.counter-stop { min-width: 0; display: grid; grid-template-rows: 1fr auto; place-items: end center; gap: .4rem; padding: .38rem .12rem; border: 1px solid transparent; border-radius: .45rem; background: transparent; color: var(--counter-ink); font: 800 .9rem/1.25 Manrope,sans-serif; cursor: pointer; }
.counter-stop:is(:hover,[aria-pressed="true"]) { background: #fff9e326; border-color: #76674d; }
.counter-stop-label { min-height: 2.5rem; display: grid; place-items: center; padding: .37rem .5rem; background: #fff2d8; border: 1px solid #b69d77; border-radius: .22rem; box-shadow: 0 2px 0 #563d2c6b; }
.counter-stop[aria-pressed="true"] .counter-stop-label { background: var(--counter-green); border-color: var(--counter-green); color: #fff7e7; }
.counter-prop { position: relative; width: min(100%,9.3rem); height: clamp(8rem,17vw,13.4rem); margin-bottom: clamp(.12rem,1.65vw,1.3rem); isolation: isolate; }
.counter-prop::after { content: ""; position: absolute; z-index: -1; width: 88%; height: 8%; bottom: 2%; left: 6%; border-radius: 50%; background: #59402862; filter: blur(3px); }
.counter-prop :is(i,b) { position: absolute; display: block; }
.prop-espresso i {
  inset: 24% 6% 15%; border: 1px solid #2c3930; border-radius: .65rem .65rem .2rem .2rem;
  background: linear-gradient(#e2e6d9 0 4%,#8d9a8b 4% 27%,#263f35 27% 32%,#6c7c6e 32% 86%,#172f27 86% 94%,#a3ad9e 94%);
  box-shadow: inset -.48rem 0 #1d363640, .25rem .3rem #4c513865;
}
.prop-espresso i::before { content: ""; position: absolute; left: 25%; right: 20%; top: 11%; height: 7%; border-radius: 2rem; background: #263b32; box-shadow: inset -.55rem 0 #ecbd7a; }
.prop-espresso i::after { content: ""; position: absolute; left: 35%; right: 32%; top: 33%; height: 11%; background: #22352c; border-radius: 0 0 .18rem .18rem; }
.prop-espresso b { left: 36%; bottom: 27%; width: 30%; height: 22%; border-radius: .12rem .12rem .55rem .55rem; border: 1px solid #ba9e76; background: #f9e6bf; box-shadow: inset -.2rem 0 #caaa7f; }
.prop-espresso b::after { content: ""; position: absolute; left: 94%; top: 13%; width: 32%; height: 53%; border: .13rem solid #f9e6bf; border-radius: 0 .35rem .35rem 0; }
.prop-pastry i { left: 11%; right: 11%; bottom: 14%; height: 11%; background: #4d3926; border: 1px solid #684626; border-radius: 50%; box-shadow: 0 .24rem #89613a; }
.prop-pastry i::after { content: ""; position: absolute; left: 20%; right: 20%; height: 175%; bottom: 45%; border-radius: 55% 55% 20% 30%; background: repeating-linear-gradient(116deg,#c37433 0 15%,#e6a253 17% 29%,#ad5a2b 33% 40%); border-bottom: .15rem solid #6d361d; }
.prop-pastry b { left: 12%; right: 12%; bottom: 19%; height: 49%; border: 1px solid #7a886f; border-radius: 60% 60% 11% 11%; background: radial-gradient(ellipse at 29% 39%,#fffff681 0 5%,transparent 6%), linear-gradient(105deg,#e8f6d966,#b8c7a024 74%,#8d9b6c65); box-shadow: inset .2rem .12rem #f5fae586; }
.prop-pastry b::after { content: ""; position: absolute; width: 16%; height: 13%; top: -11%; left: 42%; background: #727b59; border-radius: 50% 50% .2rem .2rem; }
.prop-cold i { left: 29%; right: 29%; bottom: 12%; height: 68%; clip-path: polygon(0 0,100% 0,88% 100%,12% 100%); border: 1px solid #5b6f55; border-radius: .4rem; background: linear-gradient(90deg,#eff9df78 0 9%,transparent 9% 83%,#66432458 83%),linear-gradient(#f8e7b37d 0 15%,#edb85d 15% 38%,#dc9854 43% 65%,#a65f39 72%); box-shadow: inset 0 -.45rem #f5e7c7bf; }
.prop-cold i::after { content: ""; position: absolute; left: 23%; top: 20%; width: 28%; height: 21%; border: 1px solid #fff9ccd9; background: #ffedbb6b; border-radius: .25rem; rotate: -18deg; box-shadow: .73rem .52rem #f2d9a988; }
.prop-cold b { left: 55%; bottom: 76%; height: 20%; width: 5%; background: #627c4e; rotate: 12deg; border-radius: .18rem; }

.counter-receipt { grid-area: receipt; min-width: 0; padding: clamp(.9rem,2.8vw,2.2rem); border: 1px solid #d3c7aa; border-bottom: 3px dashed #c7b89b; background: var(--counter-milk); box-shadow: 0 .45rem 1.05rem #50361a17; }
.counter-panel + .counter-panel { margin-top: 1rem; }
.counter-panel[hidden] + .counter-panel { margin-top: 0; }
.counter-panel .demo-content-section { display: block; border: 0; padding: 0; }
.counter-panel h2 { margin-bottom: .75rem; color: var(--counter-ink); font-weight: 400; }
.counter-panel .demo-list > div { padding-block: .55rem; }
.counter-panel .demo-list dd { font-size: .91rem; }
.counter-panel .counter-empty { color: var(--muted); }
.counter-panel .demo-list > .counter-item { position: relative; padding-inline-end: 3rem; }
.counter-item dt { gap: .1rem .45rem; }
.counter-item .demo-list-value { white-space: nowrap; }
.counter-item button { position: absolute; top: .43rem; right: 0; width: 2.45rem; height: 2.45rem; padding: 0; border: 1px solid #8a9a78; border-radius: 50%; background: #eef1da; color: var(--counter-green); font: 700 1.45rem/1 Manrope,sans-serif; cursor: pointer; }
.counter-item button:hover { background: var(--counter-green); color: #fff7e7; }
.counter-tray { grid-area: tray; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: start; gap: .65rem 1.2rem; padding: clamp(.9rem,2.5vw,1.45rem); border: 1px solid #b4b196; border-radius: .4rem; background: #efe1c7; }
.tray-intro { grid-column: 1 / -1; }
.tray-intro h2 { font-size: clamp(1.25rem,2.4vw,1.7rem); }
.tray-intro p, .tray-items > p { color: var(--muted); margin-top: .25rem; font-size: .9rem; }
.tray-items ul { display: grid; gap: .3rem; list-style: none; padding: 0; margin: 0; }
.tray-items li { display: flex; gap: .25rem .5rem; align-items: baseline; justify-content: space-between; padding-bottom: .25rem; border-bottom: 1px solid #c9bc9e; font-size: .92rem; }
.counter-tray button { padding: .23rem .15rem; border: 0; background: transparent; color: var(--counter-green); font: 800 .86rem/1.3 Manrope,sans-serif; cursor: pointer; }
.tray-total p { margin-bottom: .3rem; white-space: nowrap; }
.tray-total strong { display: block; font-size: 1.18rem; font-variant-numeric: tabular-nums; }
.tray-total strong span { display: block; }

@media (max-width: 760px) {
  .show-menu-header { align-items: start; flex-direction: column; }
  .counter-layout { grid-template: "stage" "receipt" "tray" / minmax(0,1fr); }
  .counter-tray { grid-template-columns: minmax(0,1fr); }
  .counter-stage { min-height: 14rem; }
  .counter-prop { width: min(90%,8.5rem); }
  .tray-total strong { display: inline; }
}
@media (max-width: 550px) {
  .book-spread { grid-template-columns: minmax(0,1fr); }
  .book-illustration { gap: .45rem; border-radius: .4rem .65rem 0 0; }
  .book-illustration img { aspect-ratio: 2.45; }
  .book-paper { border-left: 0; border-top: 1px solid #ab926e; border-radius: 0 0 .65rem .4rem; }
  .book-leaf { inset-block-start: auto; inset-inline-start: 1px; height: var(--leaf-height); }
  .counter-stage { min-height: 12.5rem; }
  .counter-stop-label { font-size: .8rem; padding-inline: .2rem; }
}
