.digital-menu {--menu-ink:#17372e;--menu-border:#dfd4bf;max-width:1100px;padding-block:clamp(1.5rem,4vw,4rem);scroll-margin-top:7rem}
.digital-menu [hidden] {display:none!important}
.menu-cover {display:grid;grid-template-columns:1fr minmax(0,44%);min-height:clamp(132px,23vw,220px);overflow:hidden;border-radius:16px;color:#fff9ee;background:#17372e}
.menu-cover > div {display:grid;align-content:center;padding:clamp(1.25rem,5vw,3rem)}
.menu-cover p {margin:0;color:#e7c78c;font-weight:650}
.menu-cover h2 {font-size:clamp(2.4rem,7vw,4.9rem);line-height:1;margin:.45rem 0 0;color:inherit}
.menu-cover img {height:100%;width:100%;min-height:0;max-height:240px;object-fit:cover}
.menu-toolbar {padding:1rem 0 1.2rem;border-bottom:1px solid var(--menu-border);margin-bottom:1.35rem}
.menu-search {display:grid;gap:.25rem;font-size:.9rem;font-weight:700;color:var(--menu-ink)}
.menu-search input {width:min(100%,34rem);min-height:48px;background:#fffdf7;border:1px solid #9d937e;border-radius:10px;padding:.55rem .85rem;color:var(--menu-ink);font:inherit;font-size:1rem}
.menu-categories {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,9rem),1fr));gap:.45rem;margin-top:.9rem}
.menu-categories button {min-height:46px;border:1px solid #b6a688;border-radius:9px;background:#fffdf7;color:var(--menu-ink);padding:.45rem .55rem;font:600 .88rem/1.25 system-ui;cursor:pointer}
.menu-categories button:hover {background:#eee4d1}
.menu-categories button[aria-pressed="true"] {background:#17372e;color:#fff9ee;border-color:#17372e}
.digital-menu :is(button,input):focus-visible {outline:2px solid #a1712d;outline-offset:2px}
.menu-results {margin:.5rem 0 0;color:#514a3d}
.menu-paper {position:relative;isolation:isolate;perspective:1400px;touch-action:pan-y pinch-zoom;scroll-margin-top:10rem}
.menu-leaf {padding:0 3.25rem 2.75rem}
.menu-paper.is-search .menu-leaf {padding-inline:0;padding-bottom:1.25rem}
.menu-leaf h3 {font-size:clamp(1.85rem,4vw,2.7rem);margin:0 0 .75rem;line-height:1.05;color:var(--menu-ink)}
.menu-leaf h3:not(:first-child) {margin-top:1.65rem}
.category-intro {margin:0 0 1rem;color:#534c3e}
.dish-list {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.6rem;list-style:none;padding:0;margin:0}
.menu-dish {display:flex;flex-direction:column;align-items:stretch;background:#fffdf8;border:1px solid var(--menu-border);border-radius:10px;padding:.85rem .95rem;min-width:0}
.menu-dish > img {display:block;width:100%;aspect-ratio:4/3;height:auto;object-fit:cover;border-radius:6px;margin-bottom:.65rem}
.dish-heading {display:flex;align-items:baseline;justify-content:space-between;gap:.55rem}
.dish-heading h4 {margin:0;font:700 1rem/1.35 system-ui;overflow-wrap:anywhere}
.dish-price {color:#68451f;font-weight:750;white-space:nowrap;font-variant-numeric:tabular-nums}
.dish-qty {font-size:.82rem;color:#645745;margin-top:.2rem}
.menu-dish p {margin:.3rem 0 0;color:#494236;font-size:.9rem;line-height:1.5}
.menu-pagination {position:absolute;z-index:2;inset:0;pointer-events:none}
.menu-pagination button {position:absolute;top:0;width:44px;height:44px;border:1px solid #b6a688;border-radius:50%;background:#fffdf7;color:var(--menu-ink);cursor:pointer;pointer-events:auto}
.menu-pagination button:hover:not(:disabled) {background:#e9d5a9}
.menu-pagination button:disabled {visibility:hidden}
.menu-pagination [data-step="-1"] {left:0}
.menu-pagination [data-step="1"] {right:0}
.menu-pagination button::after {content:'';display:block;width:10px;height:10px;margin:auto;border-top:2px solid currentColor;border-right:2px solid currentColor;transform:rotate(45deg)}
.menu-pagination [data-step="-1"]::after {transform:rotate(-135deg)}
.menu-counter {position:absolute;bottom:0;left:50%;transform:translateX(-50%);padding:.15rem .8rem;border-radius:20px;background:#e9dfca;font-size:.85rem;color:#473a28}
@media(max-width:680px){
  .menu-cover {grid-template-columns:1fr 38%}
  .menu-categories {grid-template-columns:repeat(2,minmax(0,1fr))}
  .dish-list {grid-template-columns:1fr}
  .menu-leaf {padding:0 0 2.6rem}
  .menu-paper:not(.is-search) .menu-leaf > h3:first-child {padding-inline:3.1rem;min-height:44px;display:flex;align-items:center;justify-content:center;text-align:center}
  .menu-leaf h3 {font-size:1.65rem}
}
/* Each side is a single button alongside the entire menu page. */
.menu-paper:not(.is-search) .menu-leaf {padding-inline:3.5rem}
.menu-pagination {bottom:2.25rem}
.menu-pagination button {inset-block:0;width:46px;height:auto;border-radius:10px;background:#e9dfca55;text-align:center}
.menu-pagination button::after,.menu-pagination button::before {content:'';position:absolute;left:50%;width:10px;height:10px;border-top:2px solid currentColor;border-right:2px solid currentColor;transform:translateX(-50%) rotate(45deg)}
.menu-pagination button::after {top:15px}
.menu-pagination button::before {bottom:15px}
.menu-pagination [data-step="-1"]::after,.menu-pagination [data-step="-1"]::before {transform:translateX(-50%) rotate(-135deg)}
.menu-counter {bottom:-2.25rem}
@media(max-width:680px){
  .menu-paper:not(.is-search) .menu-leaf {padding-inline:2.15rem}
  .menu-paper:not(.is-search) .menu-leaf > h3:first-child {padding-inline:0;justify-content:flex-start;text-align:left}
  .menu-pagination button {width:30px}
}
.menu-pagination button {
  display:flex;align-items:flex-start;justify-content:center;
  background:transparent;border:0;border-radius:12px
}
.menu-pagination button:not(:disabled):hover {background:#17372e0d}
.menu-pagination button::before,.menu-pagination button::after {content:none}
.menu-pagination .menu-arrow {
  position:sticky;top:clamp(11rem,48vh,26rem);margin-block:5px;
  display:grid;place-items:center;width:38px;height:38px;flex:none;
  border-radius:12px;background:#17372e;color:#fff9ee;
  box-shadow:0 3px 10px #17372e33;transition:background .16s
}
.menu-pagination button:hover .menu-arrow,
.menu-pagination button:focus-visible .menu-arrow {background:#356251}
.menu-arrow::after {
  content:'';width:9px;height:9px;border-top:2px solid currentColor;
  border-right:2px solid currentColor;transform:translateX(-1px) rotate(45deg)
}
.menu-pagination [data-step="-1"] .menu-arrow::after {transform:translateX(1px) rotate(-135deg)}
@media(max-width:680px){
  .menu-pagination .menu-arrow {width:28px;height:36px;border-radius:9px}
}
.dish-photo {position:relative;margin:0 0 .65rem}
.dish-photo img {display:block;width:100%;aspect-ratio:16/10;object-fit:cover;border-radius:8px}
.dish-photo figcaption {position:absolute;bottom:.45rem;left:.45rem;padding:.2rem .5rem;border-radius:6px;background:#17372eeb;color:#fffaf0;font-size:.72rem}
@media(max-width:680px){
  .digital-menu {width:calc(100% - 1.5rem)}
  .menu-cover {min-height:116px;border-radius:12px}
  .menu-cover > div {padding:.85rem}
  .menu-search input {width:100%;min-height:48px;font-size:16px}
  .menu-categories {gap:.38rem}
  .menu-categories button {min-height:44px;padding:.4rem;font-size:.82rem}
  .menu-paper:not(.is-search) .menu-leaf {padding-inline:2.25rem}
  .menu-pagination button {width:34px}
  .menu-pagination .menu-arrow {width:30px;height:40px;top:clamp(9.5rem,45svh,21rem)}
  .menu-dish {padding:.7rem;gap:.15rem}
  .dish-heading {gap:.4rem}
  .dish-heading h4 {font-size:.94rem}
  .dish-price {font-size:.9rem}
  .dish-photo {margin-bottom:.45rem}
}

.dish-photo-tile[data-tile="0"] {background-position:0% 0%}
.dish-photo-tile[data-tile="1"] {background-position:33.333333333333336% 0%}
.dish-photo-tile[data-tile="2"] {background-position:66.66666666666667% 0%}
.dish-photo-tile[data-tile="3"] {background-position:100% 0%}
.dish-photo-tile[data-tile="4"] {background-position:0% 33.333333333333336%}
.dish-photo-tile[data-tile="5"] {background-position:33.333333333333336% 33.333333333333336%}
.dish-photo-tile[data-tile="6"] {background-position:66.66666666666667% 33.333333333333336%}
.dish-photo-tile[data-tile="7"] {background-position:100% 33.333333333333336%}
.dish-photo-tile[data-tile="8"] {background-position:0% 66.66666666666667%}
.dish-photo-tile[data-tile="9"] {background-position:33.333333333333336% 66.66666666666667%}
.dish-photo-tile[data-tile="10"] {background-position:66.66666666666667% 66.66666666666667%}
.dish-photo-tile[data-tile="11"] {background-position:100% 66.66666666666667%}
.dish-photo-tile[data-tile="12"] {background-position:0% 100%}
.dish-photo-tile[data-tile="13"] {background-position:33.333333333333336% 100%}
.dish-photo-tile[data-tile="14"] {background-position:66.66666666666667% 100%}
.dish-photo-tile[data-tile="15"] {background-position:100% 100%}
.dish-photo-example {display:grid;grid-template-columns:76px 1fr;align-items:end;gap:.6rem;margin:0 0 .65rem}
.dish-photo-tile {display:block;width:100%;aspect-ratio:1;border-radius:8px;background:#e6d9c3 url("assets/pizzeria/menu-photo-examples.png") no-repeat;background-size:400% 400%}
.dish-photo-example figcaption {position:static;justify-self:start;background:#ede5d5;color:#594328;line-height:1.2}
@media(min-width:681px){.dish-photo-example {grid-template-columns:96px 1fr}}

@media (max-width: 700px) {
  body {padding-bottom: env(safe-area-inset-bottom, 0px)}
  nav.mobile-actions {display: none}
}
