/* Diner-facing menu. Everything is driven by data-* attributes on .dm (from the menu's design) and
   --p-* custom properties (theme + the owner's colour overrides). No JavaScript required. */

* { box-sizing: border-box; }
html, body { margin: 0; }
html { scroll-behavior: smooth; }
body { background: #F4EFE7; }
/* Thin scrollbars everywhere (scrollbar-width isn't inherited, so every scroll area needs it): a neutral thumb for the
   page (it sits outside the themed menu), and inside the menu, sheets included, the theme's muted colour warmed by its accent. */
*, *::before, *::after { scrollbar-width: thin; }
html { scrollbar-color: rgba(128, 118, 108, .45) transparent; }
.dm { scrollbar-color: color-mix(in srgb, color-mix(in srgb, var(--p-accent) 30%, var(--p-muted)) 55%, transparent) transparent; }
a { color: inherit; }

/* ── Themes ─────────────────────────────────────────────────────────── */
.dm {
    --p-bg: #FFFDF9; --p-surface: #FFFFFF; --p-text: #1C1917; --p-muted: #6B6159; --p-accent: #C2410C;
    --p-border: #EFE8DD; --p-chip: #F4EFE7; --p-on-accent: #FFFFFF; --p-open: #23744A;
    /* Used when a light theme follows the guest's dark mode: the light accent is under 4.5:1 on a dark surface. */
    --p-accent-dark: #EE7440; --p-on-accent-dark: #1C1917; --p-danger: #C0392B;
    --p-cover: linear-gradient(135deg, #5C2412, #C2410C 55%, #E0A21B);
}
.dm[data-theme="light"]  { --p-bg: #FFFFFF; --p-surface: #FFFFFF; --p-text: #111827; --p-muted: #686E7A; --p-accent: #DC2626; --p-accent-dark: #F87171; --p-border: #E5E7EB; --p-chip: #F3F4F6; --p-cover: linear-gradient(135deg, #7F1D1D, #DC2626 60%, #F59E0B); }
.dm[data-theme="dark"]   { --p-bg: #141110; --p-surface: #1E1A17; --p-text: #F5EFE6; --p-muted: #B3A89A; --p-accent: #EE7440; --p-border: #2E2723; --p-chip: #2A2420; --p-on-accent: #1C1917; --p-open: #5BBF8A; --p-danger: #F2647F; --p-cover: linear-gradient(135deg, #1C1917, #5C2412 60%, #9A3412); }
.dm[data-theme="ocean"]  { --p-bg: #0C1A2E; --p-surface: #122040; --p-text: #E0F2FE; --p-muted: #93C5FD; --p-accent: #22D3EE; --p-border: #1E3A6A; --p-chip: #1A2E54; --p-on-accent: #0C1A2E; --p-open: #5EEAD4; --p-danger: #F2647F; --p-cover: linear-gradient(135deg, #0C1A2E, #155E75 60%, #22D3EE); }
.dm[data-theme="forest"] { --p-bg: #F3F6F1; --p-surface: #FFFFFF; --p-text: #17251C; --p-muted: #5B6B60; --p-accent: #23744A; --p-accent-dark: #5BBF8A; --p-border: #DCE5DD; --p-chip: #E6EEE7; --p-cover: linear-gradient(135deg, #12301F, #23744A 60%, #A3C78A); }
.dm[data-theme="sunset"] { --p-bg: #FFF8F1; --p-surface: #FFFFFF; --p-text: #2B1B12; --p-muted: #7C5E4B; --p-accent: #C2410C; --p-border: #F5E1D0; --p-chip: #FDEBDC; --p-cover: linear-gradient(135deg, #7C2D12, #EA580C 55%, #FBBF24); }
.dm[data-theme="rose"]   { --p-bg: #FFF7F7; --p-surface: #FFFFFF; --p-text: #2B1A1E; --p-muted: #7A5F65; --p-accent: #BE123C; --p-accent-dark: #FB7185; --p-border: #F5E1E4; --p-chip: #FBEAEC; --p-cover: linear-gradient(135deg, #4A0E1C, #BE123C 60%, #F59BB0); }
.dm[data-theme="nord"]   { --p-bg: #EEF2F6; --p-surface: #FFFFFF; --p-text: #1D2733; --p-muted: #56616F; --p-accent: #36659A; --p-accent-dark: #7FA7D6; --p-border: #DCE3EA; --p-chip: #E3E9F0; --p-cover: linear-gradient(135deg, #1D2733, #3B6EA5 60%, #9CC3E6); }
.dm[data-theme="paper"]  { --p-bg: #F6EFDF; --p-surface: #FBF6EA; --p-text: #2A2118; --p-muted: #75654F; --p-accent: #8A4B1F; --p-accent-dark: #E3A46A; --p-border: #E2D4B7; --p-chip: #EEE3CB; --p-cover: linear-gradient(135deg, #3B2A1A, #8A4B1F 60%, #D9B37A); }
.dm[data-theme="mint"]   { --p-bg: #E8F6F1; --p-surface: #FFFFFF; --p-text: #12312B; --p-muted: #4F6F67; --p-accent: #0F766E; --p-accent-dark: #5EEAD4; --p-border: #CFE8E0; --p-chip: #DDF1EA; --p-cover: linear-gradient(135deg, #0B3B36, #0F766E 55%, #7FD8C3); }

/* Follow the guest's device: light themes switch to a dark surface and a lighter shade of their accent. */
@media (prefers-color-scheme: dark) {
    .dm[data-dark="auto"]:not([data-theme="dark"]):not([data-theme="ocean"]) {
        --p-bg: #141110; --p-surface: #1E1A17; --p-text: #F5EFE6; --p-muted: #B3A89A; --p-border: #2E2723; --p-chip: #2A2420; --p-open: #5BBF8A;
        --p-accent: var(--p-accent-dark); --p-on-accent: var(--p-on-accent-dark); --p-danger: #F2647F;
    }
    body:has(.dm[data-dark="auto"]) { background: #0E0B0A; }
}

/* ── Type, size, spacing, corners ───────────────────────────────────── */
.dm {
    --p-arabic: 'IBM Plex Sans Arabic';
    --p-font-head: 'Fraunces Variable', var(--p-arabic), Georgia, serif;
    --p-font-body: 'Plus Jakarta Sans Variable', var(--p-arabic), system-ui, sans-serif;
    --p-scale: 1; --p-gap: 13px; --p-radius: 12px; --p-chip-radius: 999px; --p-thumb: 84px;
}
.dm[data-font="modern"]      { --p-font-head: 'Plus Jakarta Sans Variable', var(--p-arabic), system-ui, sans-serif; }
.dm[data-font="classic"]     { --p-font-head: 'Playfair Display Variable', var(--p-arabic), Georgia, serif; --p-font-body: 'Lora Variable', var(--p-arabic), Georgia, serif; }
.dm[data-font="elegant"]     { --p-font-head: 'Playfair Display Variable', var(--p-arabic), Georgia, serif; --p-font-body: 'Inter Variable', var(--p-arabic), system-ui, sans-serif; }
.dm[data-font="clean"]       { --p-font-head: 'Inter Variable', var(--p-arabic), system-ui, sans-serif; --p-font-body: 'Inter Variable', var(--p-arabic), system-ui, sans-serif; }
.dm[data-font="handwritten"] { --p-font-head: 'Caveat Variable', var(--p-arabic), cursive; }
.dm:lang(ar), :lang(ar) .dm  { --p-font-head: var(--p-arabic), sans-serif; --p-font-body: var(--p-arabic), sans-serif; }

.dm[data-size="sm"] { --p-scale: .93; }
.dm[data-size="lg"] { --p-scale: 1.1; }
.dm[data-spacing="compact"]  { --p-gap: 9px; }
.dm[data-spacing="spacious"] { --p-gap: 19px; }
.dm[data-corners="sharp"] { --p-radius: 2px; --p-chip-radius: 4px; }
.dm[data-corners="round"] { --p-radius: 20px; }
.dm[data-photo="sm"] { --p-thumb: 64px; }
.dm[data-photo="lg"] { --p-thumb: 112px; }

.dm {
    max-width: 640px; margin: 0 auto; min-height: 100vh;
    background: var(--p-bg); color: var(--p-text);
    font: 400 calc(15px * var(--p-scale)) / 1.5 var(--p-font-body); -webkit-font-smoothing: antialiased;
}
.dm[data-layout="grid"] { max-width: 760px; }
.dm h1, .dm h2, .dm-item b { font-family: var(--p-font-head); }
.dm[data-font="handwritten"] h1, .dm[data-font="handwritten"] h2 { font-weight: 700; letter-spacing: 0; }
.muted { color: var(--p-muted); }

/* One line of a fixed height, so the sticky search bar can sit right under it. */
.dm-preview-bar { position: sticky; top: 0; z-index: 4; box-sizing: border-box; height: 29px; background: #1C1917; color: #FFF8F0; font: 600 12px/17px var(--p-font-body); text-align: center; padding: 6px 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm:has(> .dm-preview-bar) { --dm-top: 29px; }

/* ── Header ─────────────────────────────────────────────────────────── */
.dm-cover { height: 180px; background: var(--p-cover); }
.dm-cover-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dm-head { padding: 16px; display: grid; grid-template-columns: auto 1fr; gap: 0 14px; align-items: center; }
.dm-logo { width: 64px; height: 64px; border-radius: 16px; background: var(--p-surface); display: grid; place-items: center; font-family: var(--p-font-head); font-weight: 700; font-size: 22px; color: var(--p-accent); box-shadow: 0 4px 14px rgba(0,0,0,.14); object-fit: cover; }
.dm[data-logo-shape="circle"] .dm-logo { border-radius: 50%; }
.dm[data-logo-shape="square"] .dm-logo { border-radius: 4px; }
.dm[data-logo="overlap"] .dm-head { grid-template-columns: 1fr; padding-top: 0; }
.dm[data-logo="overlap"] .dm-logo { margin-top: -32px; margin-bottom: 8px; position: relative; }
.dm[data-logo="center"] .dm-head { grid-template-columns: 1fr; justify-items: center; text-align: center; }
.dm[data-logo="center"] .dm-logo { margin-top: -32px; margin-bottom: 8px; position: relative; }
.dm[data-logo="center"] .dm-meta, .dm[data-logo="center"] .dm-actions { justify-content: center; }
.dm-head > .dm-desc, .dm-head > .dm-actions { grid-column: 1 / -1; }
/* Language switcher: native names, the current one filled. Wraps on small screens; plain links, no script. */
.dm-langs { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; padding: 10px 16px; }
.dm-langs a { text-decoration: none; font-size: .78em; font-weight: 600; padding: 4px 10px; border-radius: var(--p-chip-radius); border: 1px solid var(--p-border); background: var(--p-surface); color: var(--p-muted); }
.dm-langs a.on { background: var(--p-text); border-color: var(--p-text); color: var(--p-bg); }
.dm-name { font-size: calc(28px * var(--p-scale)); margin: 0; line-height: 1.15; }
.dm-menu-name { margin: 2px 0 0; font-weight: 600; color: var(--p-muted); }
.dm-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 6px 0 0; font-size: .87em; color: var(--p-muted); }
.dm-open { color: var(--p-open); font-weight: 600; }
.dm-closed { font-weight: 600; }
.dm-desc { margin: 12px 0 0; }
.dm-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.dm-actions a { text-decoration: none; font-size: .87em; font-weight: 600; padding: 7px 14px; border-radius: var(--p-chip-radius); border: 1px solid var(--p-border); background: var(--p-surface); }
.dm-ann { margin: 0 16px 4px; padding: 10px 12px; border-radius: var(--p-radius); background: var(--p-chip); font-size: .87em; }

/* ── Search, tabs, filters ──────────────────────────────────────────── */
/* minmax(0, 1fr): the scrolling section tabs must not widen the bar (and the page) to their full length on a phone. */
.dm-sticky { position: sticky; top: var(--dm-top, 0px); z-index: 3; background: var(--p-bg); border-bottom: 1px solid var(--p-border); padding: 10px 0 8px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.dm-search { margin: 0 16px; display: flex; align-items: center; gap: 8px; background: var(--p-chip); border-radius: var(--p-chip-radius); padding: 0 12px; }
.dm-search svg { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--p-muted); stroke-width: 2; }
.dm-search input { flex: 1; min-width: 0; border: 0; background: none; padding: 9px 0; font: inherit; color: var(--p-text); outline: none; }
.dm-search:focus-within { outline: 2px solid var(--p-accent); }
/* Section tabs scroll; the diet filter menu stays pinned at the row's end. */
.dm-navrow { display: flex; align-items: center; gap: 6px; padding-inline-end: 16px; }
.dm-tabs { flex: 1; min-width: 0; display: flex; gap: 6px; padding-inline-start: 16px; overflow-x: auto; scrollbar-width: none; }
.dm-tabs a { white-space: nowrap; text-decoration: none; border-radius: var(--p-chip-radius); padding: 7px 14px; font-size: .87em; font-weight: 600; background: var(--p-chip); }
.dm-filter { flex: none; margin-inline-start: auto; }
.dm-navrow > .dm-filter:only-child { padding-inline-start: 16px; }
.dm-filter > summary { list-style: none; display: flex; align-items: center; gap: 6px; white-space: nowrap; cursor: pointer; border: 1px solid var(--p-border); border-radius: var(--p-chip-radius); padding: 6px 12px; font-size: .87em; font-weight: 600; color: var(--p-muted); background: var(--p-surface); }
.dm-filter > summary::-webkit-details-marker { display: none; }
.dm-filter > summary svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.dm-filter.on > summary { border-color: var(--p-accent); color: var(--p-accent); }
/* The open list drops under the whole sticky bar (the bar is the positioned box). */
.dm-filters { position: absolute; inset-inline: 16px; top: calc(100% + 6px); display: flex; flex-wrap: wrap; gap: 6px; padding: 12px; border-radius: var(--p-radius); background: var(--p-surface); border: 1px solid var(--p-border); box-shadow: 0 10px 28px rgba(0,0,0,.14); }
.dm-filters a { white-space: nowrap; text-decoration: none; border: 1px solid var(--p-border); border-radius: var(--p-chip-radius); padding: 6px 12px; font-size: .87em; font-weight: 600; color: var(--p-text); }
.dm-filters a.on { border-color: var(--p-accent); background: var(--p-accent); color: var(--p-on-accent); }
.dm a:focus-visible, .dm summary:focus-visible { outline: 3px solid var(--p-accent); outline-offset: 2px; }
.dm-results, .dm-back { margin: 14px 16px 0; font-size: .9em; color: var(--p-muted); }
.dm-back a { font-weight: 600; color: var(--p-accent); text-decoration: none; }

/* ── Section index cards (cards and drill navigation) ───────────────── */
.dm-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 16px 16px 0; }
.dm-card { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--p-radius); overflow: hidden; text-decoration: none; background: var(--p-cover); }
.dm-card img, .dm-card-blank { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dm-card > span:last-child { position: absolute; inset: auto 0 0 0; padding: 22px 12px 10px; background: linear-gradient(transparent, rgba(0,0,0,.72)); color: #fff; display: grid; }
.dm-card b { font-family: var(--p-font-head); font-size: 1.07em; }
.dm-card small { opacity: .85; }

/* ── Sections ───────────────────────────────────────────────────────── */
.dm-sec { padding: 18px 16px 4px; scroll-margin-top: calc(110px + var(--dm-top, 0px)); }
/* A dish opened from "Goes well with" lands below the sticky search and section bar. */
.dm-item { scroll-margin-top: calc(120px + var(--dm-top, 0px)); }
.dm-sec h2 { font-size: calc(21px * var(--p-scale)); margin: 0 0 6px; }
.dm[data-dividers="on"] .dm-sec + .dm-sec { border-top: 6px solid var(--p-chip); margin-top: 10px; }
.dm-sec-desc { margin: -2px 0 6px; font-size: .87em; color: var(--p-muted); }
.dm-acc > summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding-bottom: 6px; border-bottom: 1px solid var(--p-border); }
.dm-acc > summary::-webkit-details-marker { display: none; }
.dm-acc > summary h2 { margin: 0; }
.dm-acc > summary::after { content: "+"; font-size: 1.4em; color: var(--p-muted); }
.dm-acc[open] > summary::after { content: "–"; }
/* Subsections (one level) sit inside their parent under a smaller heading. */
.dm-subsec { padding-top: 14px; scroll-margin-top: calc(110px + var(--dm-top, 0px)); }
.dm-subsec h3 { font-size: calc(16.5px * var(--p-scale)); margin: 0 0 4px; padding-bottom: 4px; border-bottom: 1px dashed var(--p-border); }
.dm-subnav { display: flex; gap: 6px; overflow-x: auto; padding: 4px 0 6px; scrollbar-width: none; }
.dm-subnav a { white-space: nowrap; text-decoration: none; border: 1px solid var(--p-border); border-radius: var(--p-chip-radius); padding: 5px 11px; font-size: .82em; font-weight: 600; color: var(--p-text); }

/* ── Dishes ─────────────────────────────────────────────────────────── */
.dm-item { border-bottom: 1px solid var(--p-border); }
.dm-item summary { list-style: none; display: flex; gap: 12px; padding: var(--p-gap) 0; cursor: pointer; }
.dm-item summary::-webkit-details-marker { display: none; }
.dm-item .tx { flex: 1; min-width: 0; }
.dm-item b { display: block; font-size: 1em; font-weight: 650; }
.dm-item .ds { display: block; font-size: .87em; color: var(--p-muted); }
.dm-item .tg { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 5px; }
.dm-item .tg span { font-size: .73em; font-weight: 700; padding: 1px 8px; border-radius: var(--p-chip-radius); background: var(--p-chip); text-transform: capitalize; }
.dm-item .tg .feat { background: var(--p-accent); color: var(--p-on-accent); text-transform: none; }
/* Sets: the badge, what they save, and their parts under the name. */
.dm-item .tg .set { background: var(--p-text); color: var(--p-bg); text-transform: none; }
.dm-item .tg .offer { background: var(--p-accent); color: var(--p-on-accent); text-transform: none; }
.dm-item .tg .set-save { background: color-mix(in srgb, var(--p-accent) 14%, transparent); color: var(--p-accent); text-transform: none; }
.dm-set-parts { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 3px; font-size: .88em; font-weight: 600; color: var(--p-text); opacity: .85; }
.dm-item .tg.dm-set-tags { margin: 4px 0 2px; }
.dm-item .pr { display: block; margin-top: 6px; font-weight: 700; color: var(--p-accent); white-space: nowrap; font-variant-numeric: tabular-nums; }
/* List: the price sits on the name's line at the end, a column guests can scan; the photo keeps to the top. */
.dm-items[data-dishes="list"] .dm-item summary { align-items: baseline; }
.dm-items[data-dishes="list"] .dm-item .pr { margin: 0; }
.dm-items[data-dishes="list"] .dm-item .ph { align-self: flex-start; }
/* Dishes that open in place get a small chevron after the name. */
.dm-item.opens b::after { content: ""; display: inline-block; width: .38em; height: .38em; margin-inline-start: .5em; vertical-align: .22em; border: solid var(--p-muted); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); transition: transform .15s; }
.dm-item.opens[open] b::after { transform: translateY(.15em) rotate(-135deg); }
/* Dishes that open their own page point forward instead (› or ‹ right to left): the tap goes somewhere else. */
.dm-item.opens.to-page b::after { vertical-align: .12em; transform: rotate(-45deg); }
[dir="rtl"] .dm-item.opens.to-page b::after { transform: rotate(135deg); }
.dm-item .pr s { color: var(--p-muted); font-weight: 500; margin-inline-end: 4px; }
.dm-item .pr small { color: var(--p-muted); font-weight: 600; }
.dm-item .pr small.pp { margin-inline-start: 3px; font-size: .82em; }
/* "For at least 2 people": a small badge under the description. */
.dm-min { display: inline-block; margin-top: 6px; padding: 2px 9px; border-radius: var(--p-chip-radius, 999px); background: var(--p-chip); color: var(--p-text); font-size: .8em; font-weight: 600; }
.dm-item .ph { width: var(--p-thumb); height: var(--p-thumb); border-radius: var(--p-radius); object-fit: cover; flex: none; background: var(--p-chip); }
.dm-item.out summary { opacity: .55; }

/* Compact: one line per dish, name … price */
.dm-items[data-dishes="compact"] .dm-item summary { align-items: baseline; padding: calc(var(--p-gap) * .6) 0; }
.dm-items[data-dishes="compact"] .dm-item .tx { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.dm-items[data-dishes="compact"] .dm-item .pr { margin: 0; }
.dm-items[data-dishes="compact"] .dm-item .tg { margin: 0; }

/* Grid: cards with the photo on top */
.dm-items[data-dishes="grid"] { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding-top: 6px; }
@media (min-width: 720px) { .dm-items[data-dishes="grid"] { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.dm-items[data-dishes="grid"] .dm-item { border: 1px solid var(--p-border); border-radius: var(--p-radius); background: var(--p-surface); overflow: hidden; }
.dm-items[data-dishes="grid"] .dm-item summary { flex-direction: column; gap: 0; padding: 0; }
.dm-items[data-dishes="grid"] .dm-item .ph { width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: 0; }
.dm-items[data-dishes="grid"] .dm-item .tx { padding: 10px 12px 12px; }
/* Cards in a row are equally tall; the text fills the card and the price sits at its foot, so prices line up across the row. */
.dm-items[data-dishes="grid"] .dm-item { display: flex; flex-direction: column; }
.dm-items[data-dishes="grid"] .dm-item > summary { flex: 1; }
.dm-items[data-dishes="grid"] .dm-item .tx { display: flex; flex-direction: column; flex: 1; }
.dm-items[data-dishes="grid"] .dm-item .tx > .pr { margin-top: auto; padding-top: 6px; }
.dm-items[data-dishes="grid"] .dm-more { padding: 0 12px 12px; }

/* Magazine: a big photo above each dish */
/* Poster: the photo fills the card, then a band in the accent colour with the name and price (docs/08-MENU-LAYOUTS.md §4.4).
   Photo size sets how many fit in a row: small 3, medium 2, large 1 on phones; one more on wider screens. */
.dm-items[data-dishes="poster"] { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding-top: 6px; }
.dm[data-photo="sm"] .dm-items[data-dishes="poster"] { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.dm[data-photo="lg"] .dm-items[data-dishes="poster"] { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) {
    .dm-items[data-dishes="poster"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .dm[data-photo="sm"] .dm-items[data-dishes="poster"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .dm[data-photo="lg"] .dm-items[data-dishes="poster"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.dm-items:is([data-dishes="poster"], [data-dishes="carousel"]) .dm-item { display: flex; flex-direction: column; border: 0; border-radius: var(--p-radius); overflow: hidden;
    background: var(--p-accent); color: var(--p-on-accent); box-shadow: 0 4px 14px rgba(0,0,0,.14); }
.dm-items:is([data-dishes="poster"], [data-dishes="carousel"]) .dm-item > summary { flex: 1; flex-direction: column; gap: 0; padding: 0; }
.dm-items:is([data-dishes="poster"], [data-dishes="carousel"]) .dm-item .ph { width: 100%; height: auto; aspect-ratio: 1 / 1; border-radius: 0; }
.dm-items:is([data-dishes="poster"], [data-dishes="carousel"]) .dm-item .tx { display: flex; flex-direction: column; align-items: center; flex: 1; padding: 10px 10px 12px; text-align: center; }
.dm-items:is([data-dishes="poster"], [data-dishes="carousel"]) .dm-item b { font-size: 1.02em; line-height: 1.2; text-wrap: balance; }
.dm-items:is([data-dishes="poster"], [data-dishes="carousel"]) .dm-item .tx > .pr { margin-top: auto; padding-top: 6px; color: inherit; font-weight: 800; }
.dm-items:is([data-dishes="poster"], [data-dishes="carousel"]) .dm-item .pr s, .dm-items:is([data-dishes="poster"], [data-dishes="carousel"]) .dm-item .pr small { color: inherit; opacity: .75; }
.dm-items:is([data-dishes="poster"], [data-dishes="carousel"]) .dm-item .tg { justify-content: center; }
.dm-items:is([data-dishes="poster"], [data-dishes="carousel"]) .dm-item summary .tg .feat { background: var(--p-on-accent); color: var(--p-accent); }
/* Without a photo: a darker square with a cutlery mark where the photo would be, so the row stays even. */
.dm-items:is([data-dishes="poster"], [data-dishes="carousel"]) .dm-item.no-photo > summary::before { content: ""; display: block; aspect-ratio: 1 / 1;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-opacity='.55' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 3v8M6 3v5a2 2 0 0 0 4 0V3M8 11v10M17 3c-1.7 1-3 3.2-3 6v3h3v9'/%3E%3C/svg%3E") center / 34% no-repeat, linear-gradient(160deg, color-mix(in srgb, var(--p-accent) 72%, #000), color-mix(in srgb, var(--p-accent) 45%, #000)); }
/* Details opened in place (no sheet): back on the page's own colours. */
.dm-items:is([data-dishes="poster"], [data-dishes="carousel"]) .dm-more { padding: 12px; background: var(--p-surface); color: var(--p-text); }
.dm-items:is([data-dishes="poster"], [data-dishes="carousel"]) .dm-more .tg span { background: var(--p-chip); }
.dm-items[data-dishes="magazine"] .dm-item summary { flex-direction: column; gap: 10px; padding: calc(var(--p-gap) * 1.4) 0; }
.dm-items[data-dishes="magazine"] .dm-item .ph { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.dm-items[data-dishes="magazine"] .dm-item b { font-size: 1.25em; }

/* Details panel */
.dm-more { padding: 0 0 14px; font-size: .87em; }
.dm-more p { margin: 0 0 10px; }
.dm-more .al { display: inline-flex; flex-wrap: wrap; gap: 5px; margin-inline-start: 6px; }
.dm-more .al span { padding: 2px 8px; border-radius: var(--p-chip-radius); background: #FDEEF0; color: #9F1239; font-weight: 600; }
.dm-gallery { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; margin-bottom: 12px; scrollbar-width: none; }
.dm-gallery img { width: 85%; max-width: 540px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--p-radius); scroll-snap-align: start; flex: none; }
.dm-choices { margin-bottom: 12px; }
.dm-choices ul { list-style: none; margin: 4px 0 0; padding: 0; }
.dm-choices li { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px dashed var(--p-border); }
.dm-choices li.na { color: var(--p-muted); text-decoration: line-through; }
.dm-choices .muted { margin-inline-start: 6px; font-size: .92em; }
.dm-pairs { margin-bottom: 12px; }
.dm-pairs ul { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 6px; }
.dm-pairs li { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: var(--p-radius, 10px); background: var(--p-chip); }
.dm-pair-link { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-weight: 600; min-height: 36px; }
.dm-pair-link span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-pair-link:hover span, .dm-pair-link:focus-visible span { text-decoration: underline; }
.dm-pair-link img { flex: none; width: 40px; height: 40px; border-radius: 8px; object-fit: cover; }
.dm-pairs .pr { flex: none; margin: 0; font-size: .92em; }
/* Inside a card the Add button is not the card's corner button: it sits in the row, and works even if this dish is sold out. */
.dm .dm-pairs .dm-add, .dm .dm-order-suggest .dm-add { position: static; display: block; width: 30px; height: 30px; box-shadow: none; }

.dm-empty { padding: 32px 16px; text-align: center; color: var(--p-muted); }
.dm-foot { padding: 24px 16px 40px; text-align: center; font-size: .8em; color: var(--p-muted); }
.dm-foot p { margin: 0 0 8px; }
.dm-foot .made { display: flex; justify-content: center; gap: 6px; align-items: center; }

/* ── Arabic font choice (used for Arabic text in any menu) ─────────── */
.dm[data-arabic="tajawal"] { --p-arabic: 'Tajawal'; }
.dm[data-arabic="naskh"]   { --p-arabic: 'Noto Naskh Arabic Variable'; }
.dm[data-arabic="kufi"]    { --p-arabic: 'Noto Kufi Arabic Variable'; }

/* ── Header modes ───────────────────────────────────────────────────── */
.dm-visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* Logo only: the logo carries the name, so show it larger and uncropped. */
.dm[data-header="logo"] .dm-logo { width: auto; height: auto; max-width: 220px; max-height: 96px; object-fit: contain; padding: 8px; }
.dm[data-header="logo"][data-logo-shape="circle"] .dm-logo { border-radius: 16px; }
.dm[data-header="name"] .dm-head { grid-template-columns: 1fr; }
.dm[data-header="name"][data-logo="overlap"] .dm-head { padding-top: 16px; }

/* ── Section icons and the plain section index ──────────────────────── */
.dm-ico { margin-inline-end: .35em; font-family: system-ui, 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif; font-weight: normal; }
.dm-index-list { margin: 16px 16px 0; border: 1px solid var(--p-border); border-radius: var(--p-radius); background: var(--p-surface); overflow: hidden; }
.dm-index-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; text-decoration: none; border-bottom: 1px solid var(--p-border); }
.dm-index-row:last-child { border-bottom: 0; }
.dm-index-row b { display: block; font-family: var(--p-font-head); font-size: 1.07em; }
.dm-index-row small { color: var(--p-muted); }
.dm-index-row > span:last-child { font-size: 1.5em; color: var(--p-muted); }

/* ── Bottom sheet for dish details (grid and big-photo layouts) ─────── */
.dm-sheet {
    width: 100%; max-width: 640px; max-height: 88vh; margin: auto auto 0; padding: 0 0 24px;
    border: 0; border-radius: 22px 22px 0 0; background: var(--p-surface); color: var(--p-text);
    font: inherit; box-shadow: 0 -12px 40px rgba(0,0,0,.25); overflow-y: auto;
}
.dm-sheet::backdrop { background: rgba(0,0,0,.45); }
.dm-sheet[open] { animation: dm-sheet-up .22s cubic-bezier(.2,.7,.2,1); }
@keyframes dm-sheet-up { from { transform: translateY(40px); opacity: 0; } }
.dm-sheet-grip { width: 40px; height: 5px; border-radius: 3px; background: var(--p-border); margin: 10px auto 0; }
.dm-sheet > form[method="dialog"] { position: absolute; top: 12px; inset-inline-end: 12px; margin: 0; z-index: 1; }
.dm-sheet-close { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--p-chip); color: var(--p-text); font-size: 15px; cursor: pointer; }
.dm-sheet-photo { display: block; width: calc(100% - 32px); margin: 14px 16px 0; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--p-radius); }
.dm-sheet-text { display: block; padding: 14px 16px 6px; }
.dm-sheet-text h3 { margin: 0 44px 4px 0; font-family: var(--p-font-head); font-size: 1.4em; line-height: 1.2; }
.dm-sheet-text .ds { display: block; color: var(--p-muted); }
.dm-sheet-text .tg { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 8px; }
.dm-sheet-text .tg span { font-size: .73em; font-weight: 700; padding: 1px 8px; border-radius: var(--p-chip-radius); background: var(--p-chip); text-transform: capitalize; }
.dm-sheet-text .tg .feat { background: var(--p-accent); color: var(--p-on-accent); text-transform: none; }
.dm-sheet-text .pr { display: block; margin-top: 8px; font-weight: 700; font-size: 1.1em; color: var(--p-accent); }
.dm-sheet-text .pr s { color: var(--p-muted); font-weight: 500; margin-inline-end: 4px; }
.dm .dm-sheet .dm-more { padding: 6px 16px 0; }
.dm[dir="rtl"] .dm-sheet-text h3 { margin: 0 0 4px 44px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .dm-sheet[open] { animation: none; } }

/* ── WhatsApp ordering (order.js): add buttons, basket bar, choice and basket sheets ── */
.dm-item summary { position: relative; }
.dm-add { flex: none; align-self: center; width: 34px; height: 34px; border-radius: 50%; border: 0; color: var(--p-on-accent); cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,.15);
    /* The plus is drawn, not typed: a "+" glyph sits low in most fonts. Two 2px bars, centred whatever the font. */
    background: linear-gradient(currentColor, currentColor) center / 14px 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 14px no-repeat, var(--p-accent); }
.dm-add:active { transform: scale(.92); }
/* Only the card's own button sits on the photo; the "Goes well with" rows keep theirs in line (in the sheet too). */
.dm-items:is([data-dishes="grid"], [data-dishes="magazine"], [data-dishes="poster"], [data-dishes="carousel"], [data-dishes="cards"], [data-dishes="overlay"]) .dm-item > summary > .dm-add { position: absolute; top: 8px; inset-inline-end: 8px; }
.dm-item.out .dm-add { display: none; }
/* The dish sheet's wide "Add to order" (sheet.js): a labelled button instead of the round plus. */
.dm-sheet .dm-add.dm-sheet-add { display: block; position: static; width: calc(100% - 32px); height: auto; margin: 16px 16px 0; padding: 13px 18px; border-radius: 999px;
    background: var(--p-accent); font: 600 1em var(--p-font-body); box-shadow: none; }
.dm-order-bar { position: fixed; inset-inline: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); max-width: 616px; margin: 0 auto; z-index: 20; display: flex; align-items: center; gap: 10px; padding: 13px 18px; border: 0; border-radius: 999px; background: var(--p-accent); color: var(--p-on-accent); font: 600 1em var(--p-font-body); cursor: pointer; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.dm-order-bar[hidden] { display: none; }
.dm-order-bar span:nth-child(2) { flex: 1; text-align: start; }
.dm-order-count { display: grid; place-items: center; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 13px; background: rgba(255,255,255,.25); font-size: .85em; }
.dm:has(.dm-order-bar:not([hidden])) .dm-foot { padding-bottom: 84px; }
.dm-order-sheet > .dm-sheet-close { position: absolute; top: 12px; inset-inline-end: 12px; z-index: 1; }
.dm-order-form { display: grid; gap: 14px; padding: 14px 16px 4px; }
.dm-order-title { margin: 0 44px 0 0; font-family: var(--p-font-head); font-size: 1.35em; line-height: 1.2; }
[dir=rtl] .dm-order-title { margin: 0 0 0 44px; }
.dm-order-group { border: 0; margin: 0; padding: 0; display: grid; gap: 6px; }
.dm-order-group legend { font-weight: 700; margin-bottom: 6px; }
.dm-order-group legend small { font-weight: 500; color: var(--p-muted); }
.dm-order-group label { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--p-border); border-radius: var(--p-radius); cursor: pointer; }
.dm-order-group label:has(input:checked) { border-color: var(--p-accent); box-shadow: inset 0 0 0 1px var(--p-accent); }
.dm-order-group label.na { opacity: .5; cursor: default; }
.dm-order-group label span:nth-of-type(1) { flex: 1; }
.dm-order-group input { accent-color: var(--p-accent); width: 18px; height: 18px; margin: 0; }
/* Order type: choice cards (icon over label). The chosen one is filled, outlined and ticked, so it reads as a choice, not a tab. */
.dm-order-types { grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 8px; }
.dm-order-types label { position: relative; flex-direction: column; justify-content: center; gap: 4px; min-height: 84px; padding: 12px 8px; text-align: center;
    background: var(--p-surface); transition: border-color .15s, background-color .15s, box-shadow .15s; }
.dm-order-types label:hover { border-color: var(--p-muted); }
.dm-order-types input { position: absolute; opacity: 0; pointer-events: none; }
.dm-order-group.dm-order-types label span:nth-of-type(1) { flex: none; }
.dm-order-type-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--p-chip); color: var(--p-muted); }
.dm-order-type-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dm-order-type-name { font-weight: 600; }
.dm-order-types small { color: var(--p-muted); font-size: .8em; }
.dm-order-types label:has(input:checked) { border-color: var(--p-accent); box-shadow: inset 0 0 0 1px var(--p-accent);
    background: color-mix(in srgb, var(--p-accent) 9%, var(--p-surface)); }
.dm-order-types label:has(input:checked) .dm-order-type-icon { background: var(--p-accent); color: var(--p-on-accent); }
/* The tick: a circle in the accent with a check drawn in on-accent, so it keeps contrast in every theme. */
.dm-order-types label:has(input:checked)::before { content: ""; position: absolute; top: 7px; inset-inline-end: 7px; width: 18px; height: 18px; border-radius: 50%; background: var(--p-accent); }
.dm-order-types label:has(input:checked)::after { content: ""; position: absolute; top: 10px; inset-inline-end: 13px; width: 4px; height: 8px;
    border: solid var(--p-on-accent); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.dm-order-types label:has(input:focus-visible) { outline: 2px solid var(--p-accent); outline-offset: 2px; }
.dm-order-price { color: var(--p-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.dm-order-field { display: grid; gap: 5px; font-size: .92em; font-weight: 600; }
.dm-order-field input, .dm-order-field textarea { font: inherit; font-weight: 400; padding: 10px 12px; border: 1px solid var(--p-muted); border-radius: var(--p-radius); background: var(--p-bg); color: var(--p-text); resize: vertical; }
.dm-order-field input:focus, .dm-order-field textarea:focus { outline: 2px solid var(--p-accent); outline-offset: -1px; }
.dm-order-actions { display: flex; gap: 10px; align-items: center; }
.dm-order-actions .dm-order-primary { flex: 1; }
.dm-order-stepper { display: inline-flex; align-items: center; border: 1px solid var(--p-border); border-radius: 999px; }
.dm-order-stepper button { width: 34px; height: 34px; border: 0; background: none; color: var(--p-text); font-size: 18px; cursor: pointer; }
.dm-order-stepper output { min-width: 22px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.dm-order-primary, .dm-order-secondary { width: 100%; padding: 14px 18px; border-radius: 999px; font: 700 1em var(--p-font-body); cursor: pointer; }
.dm-order-primary { border: 0; background: var(--p-accent); color: var(--p-on-accent); }
.dm-order-primary:disabled { opacity: .5; cursor: not-allowed; }
.dm-order-whatsapp { background: #15803d; color: #fff; }
/* Dine-in orders from guests at the restaurant only: the position check. */
.dm-place { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding: 10px 12px; border-radius: var(--p-radius); background: var(--p-chip, rgba(0,0,0,.05)); font-size: .9em; font-weight: 600; }
.dm-place-ok { color: #15803d; }
.dm-place-denied, .dm-place-far { color: #b42318; }
.dm-place-retry { margin-inline-start: auto; padding: 4px 12px; border: 1px solid currentColor; border-radius: 999px; background: transparent; color: inherit; font: inherit; cursor: pointer; }
/* A kitchen order's status, at the top of the menu while the guest waits. */
.dm-ticket { position: fixed; top: calc(10px + env(safe-area-inset-top)); left: 50%; z-index: 25; transform: translateX(-50%); max-width: calc(100% - 24px); padding: 8px 16px; border-radius: 999px; background: var(--p-text); color: var(--p-bg); font-weight: 700; font-size: .9em; box-shadow: 0 6px 18px rgba(0,0,0,.2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-ticket[data-status="ready"] { background: #15803d; color: #fff; animation: dm-ticket-pulse 1.6s ease-in-out 3; }
.dm-ticket[data-status="cancelled"] { background: #b42318; color: #fff; }
@keyframes dm-ticket-pulse { 50% { transform: translateX(-50%) scale(1.06); } }
/* The order's number, large enough to match against the order board on the wall. */
.dm-ticket-number { font-size: 1.7em; line-height: 1; vertical-align: -0.12em; margin: 0 .08em; font-variant-numeric: tabular-nums; }
.dm-ticket .dm-ticket-number { font-size: 1.6em; }
.dm-order-title .dm-ticket-number { font-size: 1.5em; }
.dm-ticket-status { margin: 0; padding: 10px 12px; border-radius: var(--p-radius); background: var(--p-chip, rgba(0,0,0,.05)); font-weight: 700; text-align: center; }
.dm-order-secondary { border: 1px solid var(--p-border); background: none; color: var(--p-text); }
.dm-order-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.dm-order-lines li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--p-border); }
.dm-order-line-text { flex: 1; min-width: 0; display: grid; }
.dm-order-line-text small { color: var(--p-muted); }
.dm-order-suggest { padding: 4px 0 2px; }
.dm-order-suggest h4 { margin: 0 0 6px; font-size: .92em; color: var(--p-muted); font-weight: 700; }
.dm-order-suggest ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.dm-order-suggest li { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: var(--p-radius, 10px); background: var(--p-chip); }
.dm-order-suggest-name { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-order-totals { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; margin: 0; }
.dm-order-totals dd { margin: 0; text-align: end; font-variant-numeric: tabular-nums; }
.dm-order-totals .total { font-weight: 700; font-size: 1.1em; }
.dm-order-totals .offer { color: var(--p-accent); font-weight: 600; }
.dm-order-muted { margin: 0; color: var(--p-muted); font-size: .92em; }
.dm-order-error { margin: 0; color: var(--p-danger); font-weight: 600; font-size: .92em; }
.dm-order-error:empty { display: none; }
.dm-order-toast { position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 30; transform: translate(-50%, 12px); padding: 10px 16px; border-radius: 999px; background: var(--p-text); color: var(--p-bg); font-size: .9em; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; max-width: calc(100% - 32px); }
.dm-order-toast.on { opacity: 1; transform: translate(-50%, 0); }

/* Call the waiter: a bell at the bottom start, above the order or list bar when one shows. */
.dm-call-button { position: fixed; inset-inline-start: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 19; display: flex; align-items: center; gap: 8px; padding: 11px 16px 11px 13px; border: 1px solid var(--p-border); border-radius: 999px; background: var(--p-card); color: var(--p-text); font: 700 .92em var(--p-font-body); cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.dm-call-button svg { width: 20px; height: 20px; fill: none; stroke: var(--p-accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dm:has(.dm-order-bar:not([hidden])) .dm-call-button { bottom: calc(76px + env(safe-area-inset-bottom)); }
.dm-call-choices { display: grid; gap: 10px; }
.dm-call-field { display: grid; gap: 6px; font-weight: 600; font-size: .92em; }
.dm-call-table { width: 100%; padding: 12px 14px; border: 1px solid var(--p-border); border-radius: var(--p-radius); background: var(--p-bg); color: var(--p-text); font: 700 1.2em var(--p-font-body); text-align: center; }

/* How was your visit: a card at the end of the menu and the rating sheet. */
.dm-rate { margin: 8px 16px 0; padding: 20px 16px; border: 1px solid var(--p-border); border-radius: var(--p-radius); background: var(--p-card); text-align: center; }
.dm-rate-title { margin: 0 0 4px; font: 700 1.1em var(--p-font-head); }
.dm-rate-hint { margin: 0 0 12px; color: var(--p-muted); font-size: .9em; }
.dm-rate .dm-stars { justify-content: center; }
.dm-stars { display: flex; gap: 6px; margin: 4px 0 6px; }
.dm-rate-sheet .dm-stars { justify-content: center; }
.dm-stars button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.dm-stars svg { width: 34px; height: 34px; fill: none; stroke: var(--p-accent); stroke-width: 1.6; stroke-linejoin: round; transition: transform .12s; }
.dm-stars button.on svg { fill: var(--p-accent); }
.dm-stars button:active svg { transform: scale(.88); }
.dm-rate-comment, .dm-rate-contact { width: 100%; padding: 10px 12px; border: 1px solid var(--p-border); border-radius: var(--p-radius); background: var(--p-bg); color: var(--p-text); font: inherit; resize: vertical; }
.dm-rate-google { display: block; margin-top: 4px; text-align: center; text-decoration: none; }
.dm-rate-failed { color: #b42318; }

/* The guest's table, from a table's QR code. */
.dm-table-chip { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--p-accent); color: var(--p-on-accent); font-weight: 700; font-size: .9em; }

/* A private menu's PIN page. */
.dm-pin-page { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.dm-pin { width: 100%; max-width: 360px; display: grid; gap: 12px; justify-items: center; text-align: center; padding: 28px 22px; background: var(--p-card); border: 1px solid var(--p-border); border-radius: calc(var(--p-radius) * 1.5); box-shadow: 0 10px 30px rgba(0,0,0,.08); }
.dm-pin-logo { width: 64px; height: 64px; border-radius: 16px; object-fit: cover; }
.dm-pin-name { margin: 0; color: var(--p-muted); font-weight: 600; }
.dm-pin h1 { margin: 0; font-family: var(--p-font-head); font-size: 1.5em; line-height: 1.2; }
.dm-pin-text { margin: 0; color: var(--p-muted); }
.dm-pin-field { width: 100%; display: grid; gap: 6px; text-align: start; font-weight: 600; font-size: .92em; }
.dm-pin-field input { width: 100%; padding: 12px 14px; border: 1px solid var(--p-border); border-radius: var(--p-radius); background: var(--p-bg); color: var(--p-text); font: 600 1.4em var(--p-font-body); letter-spacing: .3em; text-align: center; }
.dm-pin-field input:focus { outline: 2px solid var(--p-accent); outline-offset: 1px; }
.dm-pin-error { margin: 0; color: #B42318; font-weight: 600; font-size: .92em; }

/* "My list": a heart on each dish, the list sheet, and large type to show the waiter. */
.dm-pick { flex: none; align-self: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--p-border); background: var(--p-card); color: var(--p-accent); font-size: 18px; line-height: 1; cursor: pointer; }
.dm-pick.on { border-color: var(--p-accent); background: var(--p-accent); color: var(--p-on-accent); }
.dm-pick:active { transform: scale(.92); }
.dm-items:is([data-dishes="grid"], [data-dishes="magazine"], [data-dishes="poster"], [data-dishes="carousel"], [data-dishes="cards"], [data-dishes="overlay"]) .dm-item > summary > .dm-pick { position: absolute; top: 8px; inset-inline-end: 8px; }
/* A card without a photo: its corner button (♡ or +) sits beside the text, so long names wrap before reaching it. */
.dm-items:is([data-dishes="grid"], [data-dishes="magazine"], [data-dishes="poster"], [data-dishes="carousel"]) .dm-item > summary:not(:has(> img.ph)):has(> .dm-pick, > .dm-add) > .tx { padding-inline-end: 46px; }
.dm-picks-already { color: var(--p-accent); font-weight: 700; }
.dm-picks-size { justify-self: start; margin-top: 4px; padding: 4px 8px; border: 1px solid var(--p-border); border-radius: 8px; background: var(--p-card); color: var(--p-text); font: inherit; font-size: .9em; }
.dm-picks-price { font-variant-numeric: tabular-nums; white-space: nowrap; }
.dm-picks-clear { justify-self: center; border: 0; background: none; color: var(--p-muted); font: 600 .9em var(--p-font-body); text-decoration: underline; cursor: pointer; padding: 6px; }
.dm-picks-big { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 14px; font: 600 1.6em/1.25 var(--p-font-head); }
.dm-picks-big b { color: var(--p-accent); }
.dm-picks-big small { display: block; font: 500 .6em var(--p-font-body); color: var(--p-muted); }

/* ── Wide screens (laptops and desktops) ──────────────────────────────
   Phones keep the single column above. From 960px the page fills the window in the theme's background: the cover spans
   the top, the restaurant and a section list sit in a sticky column beside the dishes, and dialogs open in the middle.
   From 1240px, with ordering on, the basket is a sticky panel on the other side instead of the bottom bar. */
.dm-toc, .dm-info { display: none; }
@media (min-width: 960px) {
    .dm, .dm[data-layout="grid"] { max-width: none; --dm-wide: 1090px; } /* side 270 + gap 44 + dishes 720 + padding: the cover lines up with the columns */
    .dm-top, .dm-layout { max-width: var(--dm-wide); margin: 0 auto; padding: 0 28px; }
    .dm-langs { padding: 14px 0; }
    .dm-top > .dm-cover:first-child { margin-top: 20px; }
    .dm-cover { height: 240px; border-radius: var(--p-radius); overflow: hidden; }
    .dm-layout { display: grid; grid-template-columns: 270px minmax(0, var(--dm-dishes, 720px)); justify-content: center; gap: 0 44px; align-items: start; }

    /* The side column stays in view; only its section list scrolls when it is long. */
    .dm-side { position: sticky; top: calc(var(--dm-top, 0px) + 12px); display: flex; flex-direction: column; max-height: calc(100vh - var(--dm-top, 0px) - 24px); }
    .dm-side .dm-head { padding: 22px 0 0; }
    /* The logo follows the menu's placement, as on phones: over the cover's edge (overlap, centre) or beside the name.
       It is a little larger here; the "logo only" header keeps its own size. */
    .dm:not([data-header="logo"]) .dm-side .dm-logo { width: 80px; height: 80px; }
    .dm[data-logo="overlap"] .dm-side .dm-head, .dm[data-logo="center"] .dm-side .dm-head { padding-top: 0; }
    .dm[data-logo="overlap"] .dm-side .dm-logo, .dm[data-logo="center"] .dm-side .dm-logo { margin-top: -40px; margin-bottom: 12px; }
    /* An overlapping logo sticks a little lower, so it is never cut off at the top of the window. */
    .dm[data-logo="overlap"] .dm-side, .dm[data-logo="center"] .dm-side { top: calc(var(--dm-top, 0px) + 52px); max-height: calc(100vh - var(--dm-top, 0px) - 64px); }
    .dm-toc { display: grid; align-content: start; gap: 2px; min-height: 0; overflow-y: auto; margin-top: 20px; padding: 16px 0 20px; border-top: 1px solid var(--p-border); }
    .dm-toc h2 { margin: 0 0 8px; padding-inline-start: 12px; font: 700 .72em/1.2 var(--p-font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--p-muted); }
    .dm-toc a { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 8px 12px; border-inline-start: 3px solid transparent;
        border-radius: calc(var(--p-radius) * .6); text-decoration: none; font-weight: 600; font-size: .93em; transition: background-color .15s; }
    .dm-toc a small { color: var(--p-muted); font-weight: 500; font-variant-numeric: tabular-nums; }
    .dm-toc a:hover { background: var(--p-chip); }
    .dm-toc a.on { border-inline-start-color: var(--p-accent); background: color-mix(in srgb, var(--p-accent) 11%, transparent); }
    .dm-toc a.dm-toc-sub { padding-block: 5px; padding-inline-start: 26px; font-weight: 500; font-size: .87em; color: var(--p-muted); }

    /* The dishes column: the section list replaces the tabs; search and filters stay on top. */
    .dm-layout:has(.dm-toc) .dm-tabs { display: none; }
    .dm-col { min-width: 0; padding-top: 10px; }
    .dm-col .dm-sticky { padding-top: 12px; }
    .dm-cards { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
    .dm-sec { scroll-margin-top: calc(80px + var(--dm-top, 0px)); }
    .dm-item { scroll-margin-top: calc(90px + var(--dm-top, 0px)); }

    /* Dialogs (dish details, choices, basket) open in the middle of the screen. */
    .dm-sheet { max-width: 560px; max-height: 86vh; margin: auto; border-radius: 20px; padding-top: 8px; box-shadow: 0 24px 60px rgba(0,0,0,.3); }
    .dm-sheet-grip { display: none; }
    @keyframes dm-sheet-up { from { transform: translateY(12px) scale(.98); opacity: 0; } }
    .dm-order-bar { max-width: 520px; }
}
@media (min-width: 1240px) {
    /* Wider only when the basket panel is showing (ordering on); otherwise the two columns stay centred under the cover. */
    .dm:has(.dm-basket:not([hidden])), .dm:has(.dm-info) { --dm-wide: 1360px; }
    .dm-layout:has(> .dm-info),
    .dm-layout.has-basket:has(> .dm-basket:not([hidden])) { grid-template-columns: 260px minmax(0, 1fr) 340px; gap: 0 36px; }
    .dm-basket:not([hidden]) { display: block; position: sticky; top: calc(var(--dm-top, 0px) + 22px); margin-top: 22px; max-height: calc(100vh - var(--dm-top, 0px) - 44px); overflow-y: auto;
        border: 1px solid var(--p-border); border-radius: var(--p-radius); background: var(--p-surface); box-shadow: 0 6px 24px rgba(0,0,0,.06); }
    .dm-basket .dm-order-form { padding: 18px; }
    .dm-basket .dm-order-title, [dir=rtl] .dm-basket .dm-order-title { margin: 0; }
    .dm-basket .dm-order-types { grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); }
    .dm-basket-empty { display: grid; justify-items: center; gap: 8px; padding: 18px 8px 8px; text-align: center; color: var(--p-muted); }
    .dm-basket-empty svg { width: 40px; height: 40px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; opacity: .7; }
    .dm-basket-empty p { margin: 0; }

    /* Without ordering: opening hours and how to find the restaurant, in the basket's place. */
    .dm-info { display: grid; gap: 0; align-self: start; position: sticky; top: calc(var(--dm-top, 0px) + 22px); margin-top: 22px;
        border: 1px solid var(--p-border); border-radius: var(--p-radius); background: var(--p-surface); box-shadow: 0 6px 24px rgba(0,0,0,.06); }
    /* The card holds the contact buttons here, so the side column does not repeat them. */
    .dm:has(.dm-info) .dm-side .dm-actions { display: none; }
}

/* The info card's insides: in the wide-screen panel beside the dishes, and in the phone's Info sheet (bottom bar). */
:is(.dm-info, .dm-info-sheet) section { padding: 18px; }
:is(.dm-info, .dm-info-sheet) section + section { border-top: 1px solid var(--p-border); }
:is(.dm-info, .dm-info-sheet) h2 { margin: 0 0 10px; font-family: var(--p-font-head); font-size: 1.15em; }
.dm-info-status { margin: -4px 0 10px; font-size: .9em; }
.dm-hours { display: grid; gap: 2px; margin: 0; font-size: .92em; }
.dm-hours > div { display: flex; justify-content: space-between; gap: 12px; padding: 5px 8px; border-radius: calc(var(--p-radius) * .5); }
.dm-hours dt { font-weight: 500; }
.dm-hours dd { margin: 0; text-align: end; font-variant-numeric: tabular-nums; }
.dm-hours .off dd { color: var(--p-muted); }
.dm-hours .today { background: color-mix(in srgb, var(--p-accent) 11%, transparent); font-weight: 700; }
.dm-hours .today dt { font-weight: 700; }
.dm-special-title { margin: 14px 0 6px; font-size: .95em; }
.dm-special dt small { display: block; color: var(--p-muted); font-weight: 400; font-size: .88em; }
.dm-info-address { margin: 0 0 12px; font-size: .92em; }
.dm-info-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.dm-info-actions a { text-decoration: none; font-size: .87em; font-weight: 600; padding: 7px 14px; border-radius: var(--p-chip-radius); border: 1px solid var(--p-border); background: var(--p-bg); }
:is(.dm-info, .dm-info-sheet):not(:has(.dm-info-book)) .dm-info-actions a:first-child { border-color: var(--p-accent); background: var(--p-accent); color: var(--p-on-accent); }
.dm-info-sheet .dm-info-title { margin: 18px 60px 0 18px; font-family: var(--p-font-head); font-size: 1.35em; }
[dir="rtl"] .dm-info-sheet .dm-info-title { margin: 18px 18px 0 60px; }

/* The detailed menu: what a dish contains, beside its name; its ingredients in the details. */
.dm-marks { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.dm-marks .mk { display: inline-block; padding: 1px 7px; border-radius: 999px; font-size: .74em; font-weight: 600; line-height: 1.5; background: var(--p-chip); color: var(--p-text); }
.dm-marks .mk-alc, .dm-marks .mk-pork { background: color-mix(in srgb, var(--p-accent) 14%, var(--p-chip)); }
.dm-marks .mk-al { font-weight: 500; color: var(--p-muted); }
.dm-ingredients { margin: 6px 0; font-size: .92em; }
.dm-ingredients b { font-weight: 700; }

/* A campaign's Details sheet: its conditions, the dishes it is for, and Add to order. */
.dm-promo-more { margin-inline-start: 6px; border: 0; background: rgba(255,255,255,.2) !important; color: #fff !important; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.85); cursor: pointer; }
.dm-promo.no-photo .dm-promo-more { color: var(--p-accent) !important; box-shadow: inset 0 0 0 1.5px var(--p-accent); background: transparent !important; }
.dm-promo-terms { display: grid; gap: 4px 14px; margin: 4px 16px 0; padding: 12px 14px; border-radius: calc(var(--p-radius) * .7); background: var(--p-chip); grid-template-columns: max-content 1fr; }
.dm-promo-terms dt { font-size: .82em; font-weight: 700; color: var(--p-muted); padding-top: 2px; }
.dm-promo-terms dd { margin: 0; font-weight: 600; }
.dm-promo-notnow { margin: 10px 16px 0; font-size: .88em; color: var(--p-muted); }
.dm-promo-dishes-title { margin: 14px 16px 6px; font-size: .82em; font-weight: 700; color: var(--p-muted); }
.dm-promo-dishes { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 16px; padding: 0; list-style: none; }
.dm-promo-dishes li { padding: 5px 11px; border-radius: 999px; border: 1px solid var(--p-border); font-size: .9em; }
.dm-promo-sheet { padding-bottom: 18px; }
.dm-promo-sheet-actions { margin: 16px 16px 0; }
.dm-promo-sheet-actions .dm-promo-btn { display: block; width: 100%; margin: 0; padding: 12px 16px; border: 0; text-align: center; font-size: 1em; background: var(--p-accent); color: var(--p-on-accent, #fff); cursor: pointer; }

/* The guests' Wi-Fi: in the info card (with its join QR), on the welcome screen and in the footer. */
.dm-wifi-row { display: flex; align-items: center; gap: 14px; }
.dm-wifi-row img { flex: 0 0 auto; width: 104px; height: 104px; padding: 6px; border-radius: calc(var(--p-radius) * .6); background: #fff; }
.dm-wifi dl { display: grid; gap: 2px; margin: 0; font-size: .92em; }
.dm-wifi dt { color: var(--p-muted); font-size: .85em; }
.dm-wifi dd { margin: 0 0 6px; font-weight: 700; word-break: break-all; }
.dm-wifi-hint { margin: 10px 0 0; font-size: .82em; color: var(--p-muted); }
.dm-foot-wifi { font-size: .9em; }
.dm-welcome-wifi { margin: 0; font-size: .85em; opacity: .9; }

/* ── The bottom bar (design "BottomBar"): phones only, like an app's tab bar; it stands in for the floating order and
   waiter buttons, which keep working behind it (appbar.js presses them). ── */
.dm-appbar { display: none; }
@media (max-width: 959px) {
    .dm[data-appbar="on"] { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
    .dm[data-appbar="on"] .dm-order-bar, .dm[data-appbar="on"] .dm-call-button { display: none; }
    .dm[data-appbar="on"] .dm-order-toast { bottom: calc(82px + env(safe-area-inset-bottom)); }
    .dm-appbar { position: fixed; inset-inline: 0; bottom: 0; z-index: 21; display: flex; justify-content: center; padding: 4px 6px env(safe-area-inset-bottom);
        background: var(--p-surface); border-top: 1px solid var(--p-border); box-shadow: 0 -6px 20px rgba(0,0,0,.07); }
    .dm-appbar > a, .dm-appbar > button { position: relative; flex: 1 1 0; max-width: 120px; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 3px;
        padding: 8px 2px 7px; border: 0; background: none; color: var(--p-muted); font: 600 11px/1.15 var(--p-font-body); text-decoration: none; cursor: pointer;
        -webkit-tap-highlight-color: transparent; }
    .dm-appbar > [hidden] { display: none; }
    .dm-appbar svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
    .dm-appbar > .on { color: var(--p-accent); }
    .dm-appbar > a:active, .dm-appbar > button:active { transform: scale(.94); }
    .dm-appbar span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .dm-appbar-count { position: absolute; top: 3px; inset-inline-start: calc(50% + 5px); min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box;
        border-radius: 999px; background: var(--p-accent); color: var(--p-on-accent); font: 700 11px/18px var(--p-font-body); text-align: center; }
    .dm-appbar-count[hidden] { display: none; }
    .dm-appbar :focus-visible { outline: 2px solid var(--p-accent); outline-offset: -2px; border-radius: 10px; }
}

/* ── A location's home page (LocationHome): the header, its campaigns, a card per menu, and the hours and contacts. ── */
.dm-home-in { max-width: 680px; margin: 0 auto; padding-bottom: 8px; }
.dm-home .dm-promos { margin-top: 6px; }
.dm-home-about { white-space: pre-line; }
.dm-home-menus { padding: 18px 16px 6px; }
.dm-home-menus h2 { margin: 0 0 12px; font-family: var(--p-font-head); font-size: 1.3em; }
.dm-home-cards { display: grid; gap: 12px; }
@media (min-width: 560px) { .dm-home-cards:has(> :nth-child(2)) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.dm-home-card { position: relative; display: grid; grid-template-rows: auto 1fr; overflow: hidden; border: 1px solid var(--p-border); border-radius: var(--p-radius);
    background: var(--p-card, var(--p-surface)); color: var(--p-text); text-decoration: none; transition: transform .15s, box-shadow .15s; }
.dm-home-card:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0,0,0,.1); }
.dm-home-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.dm-home-card.no-photo::before { content: ""; display: block; aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--p-accent), color-mix(in srgb, var(--p-accent) 55%, #000)); }
.dm-home-card-text { display: grid; gap: 2px; padding: 12px 40px 14px 14px; }
[dir="rtl"] .dm-home-card-text { padding: 12px 14px 14px 40px; }
.dm-home-card-text b { font-family: var(--p-font-head); font-size: 1.12em; line-height: 1.25; }
.dm-home-card-text small { color: var(--p-muted); font-size: .88em; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dm-home-card-go { position: absolute; inset-inline-end: 14px; bottom: 14px; font-size: 1.5em; line-height: 1; color: var(--p-accent); }
[dir="rtl"] .dm-home-card-go { transform: scaleX(-1); }
.dm-home-info { margin: 18px 16px 0; border: 1px solid var(--p-border); border-radius: var(--p-radius); background: var(--p-surface); }
.dm-home-info:not(:has(section)) { display: none; }

/* ── A business's all-branches page (BranchPicker): city chips, "Nearest first", and a card per branch without a picture. ── */
.dm-branch-cities { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.dm-branch-cities a { white-space: nowrap; text-decoration: none; border: 1px solid var(--p-border); border-radius: var(--p-chip-radius); padding: 6px 12px;
    font-size: .87em; font-weight: 600; color: var(--p-text); }
.dm-branch-cities a.on { border-color: var(--p-accent); background: var(--p-accent); color: var(--p-on-accent); }
.dm-branch-near { margin: 0 0 12px; border: 1px solid var(--p-border); border-radius: var(--p-chip-radius); padding: 7px 14px; background: var(--p-surface);
    color: var(--p-text); font: 600 .87em/1.2 var(--p-font-body); cursor: pointer; }
.dm-branch-near::before { content: "◎ "; color: var(--p-accent); }
.dm-branch-near.on { border-color: var(--p-accent); color: var(--p-accent); }
.dm-branch-near:disabled:not(.on) { opacity: .6; cursor: progress; }
.dm-branch-note { margin: -4px 0 12px; color: var(--p-muted); font-size: .87em; }
.dm-branch { grid-template-rows: 1fr; }
.dm-branch-facts { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 4px; font-size: .85em; }
.dm-branch-km { color: var(--p-muted); }
.dm-branch-km[hidden] { display: none; }

/* ── Very large screens: photo layouts get a wider dishes column and one more card per row; text lists keep a readable
   line length. ── */
@media (min-width: 1520px) {
    .dm:is([data-layout="grid"], [data-layout="magazine"], [data-layout="poster"]) { --dm-wide: 1250px; --dm-dishes: 880px; }
    .dm:is([data-layout="grid"], [data-layout="magazine"], [data-layout="poster"]):is(:has(.dm-basket:not([hidden])), :has(.dm-info)) { --dm-wide: 1540px; }
    .dm-items[data-dishes="grid"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .dm-items[data-dishes="poster"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .dm[data-photo="sm"] .dm-items[data-dishes="poster"] { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .dm[data-photo="lg"] .dm-items[data-dishes="poster"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ── The home page on computers: the width of its cover, the restaurant, campaigns and menus on one side and the hours and
   how to find it on the other, staying in view. ── */
@media (min-width: 960px) {
    .dm-home { --dm-wide: 1180px; }
    .dm-home .dm-cover { height: 300px; }
    .dm-home-in { max-width: var(--dm-wide); padding: 0 28px; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 0 40px; align-items: start;
        grid-template-areas: "head info" "promos info" "menus info" "foot foot"; }
    .dm-home-in > .dm-head { grid-area: head; padding-inline: 0; }
    .dm-home-in > .dm-promos { grid-area: promos; margin-inline: 0; }
    .dm-home-in > .dm-home-menus { grid-area: menus; padding-inline: 0; }
    .dm-home-in > .dm-home-info { grid-area: info; position: sticky; top: 20px; margin: 28px 0 0; box-shadow: 0 6px 24px rgba(0,0,0,.06); }
    .dm-home-in > .dm-foot { grid-area: foot; }
    .dm-home-in:not(:has(> .dm-home-info section)) { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "promos" "menus" "foot"; }
    .dm-home-cards, .dm-home-cards:has(> :nth-child(2)) { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
}

/* ── Table booking (BookTable, GuestReservation) ──────────────────────
   "Book a table" leads the menu's contact buttons; the booking pages reuse the order form's fields and buttons. */
.dm-actions a.dm-book-link { border-color: var(--p-accent); background: var(--p-accent); color: var(--p-on-accent); }
.dm-info-book { display: block; margin: 18px 18px 0; padding: 11px 16px; border-radius: 999px; text-align: center; text-decoration: none; font-weight: 700;
    background: var(--p-accent); color: var(--p-on-accent); }
.dm-bookpage { min-height: 100vh; }
.dm-book { max-width: 560px; margin: 0 auto; padding: 16px 16px 48px; display: grid; gap: 16px; }
.dm-book .dm-back { margin: 0; }
.dm-book-head { display: flex; align-items: center; gap: 14px; }
.dm-book-head .dm-logo { width: 48px; height: 48px; border-radius: 12px; font-size: 17px; }
.dm-book-head h1 { margin: 0; font-size: calc(26px * var(--p-scale)); line-height: 1.15; }
.dm-book-kicker { margin: 0 0 2px; font-size: .87em; font-weight: 600; color: var(--p-muted); }
.dm-book-policy { margin: 0; padding: 10px 12px; border-radius: var(--p-radius); background: var(--p-chip); font-size: .9em; }
.dm-book-when { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 10px; align-items: start; }
.dm-book-when input, .dm-book-when select { height: 46px; box-sizing: border-box; }
.dm-book-when .dm-book-show { grid-column: 1 / -1; }
.dm-book-when select { font: inherit; font-weight: 400; padding: 10px 12px; border: 1px solid var(--p-muted); border-radius: var(--p-radius); background: var(--p-bg); color: var(--p-text); }
.dm-book-form { display: grid; gap: 14px; }
.dm-order-field small { font-weight: 400; color: var(--p-muted); }
.dm-book-slots { display: flex; flex-wrap: wrap; gap: 8px; }
.dm-book-slots label { position: relative; padding: 0; border: 0; }
.dm-book-slots input { position: absolute; opacity: 0; pointer-events: none; }
.dm-book-slots span { display: block; min-width: 68px; padding: 9px 12px; border: 1px solid var(--p-muted); border-radius: var(--p-chip-radius); text-align: center;
    font-weight: 600; font-variant-numeric: tabular-nums; cursor: pointer; }
.dm-book-slots input:checked + span { border-color: var(--p-accent); background: var(--p-accent); color: var(--p-on-accent); }
.dm-book-slots input:focus-visible + span { outline: 2px solid var(--p-accent); outline-offset: 2px; }
.dm-book-none { margin: 0; }
.dm-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.dm-book-done { margin: 0; padding: 12px 14px; border-radius: var(--p-radius); background: color-mix(in srgb, var(--p-open) 14%, var(--p-surface)); font-weight: 600; }
.dm-book-card { padding: 16px; border: 1px solid var(--p-border); border-radius: var(--p-radius); background: var(--p-surface); }
.dm-book-card p { margin: 0 0 6px; }
.dm-book-card p:last-child { margin: 0; }
.dm-book-status { font-weight: 700; }
.dm-book-status-confirmed { color: var(--p-open); }
.dm-book-status-cancelled, .dm-book-status-no-show { color: var(--p-muted); }
.dm-book-slots label:has(input:checked) { border: 0; box-shadow: none; }

/* ── Welcome screen (design "Welcome"): over the whole page, once per visit; welcome.js fades it out. ── */
html.dm-welcoming { overflow: hidden; }
.dm-welcome { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; overflow-y: auto;
    padding: max(28px, env(safe-area-inset-top)) 20px max(28px, env(safe-area-inset-bottom));
    background: radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--p-accent) 30%, var(--p-bg)), var(--p-bg) 70%);
    color: var(--p-text); animation: dm-welcome-in .22s ease-out; }
.dm-welcome[hidden] { display: none; }
.dm-welcome.leaving { animation: dm-welcome-out .55s cubic-bezier(.7, 0, .3, 1) forwards; pointer-events: none; }
@keyframes dm-welcome-in { from { opacity: 0; transform: scale(1.01); } to { opacity: 1; transform: none; } }
@keyframes dm-welcome-out { to { transform: translateY(-100%); opacity: .4; } }
/* On the cover photo: darkened so white text stays readable. */
.dm-welcome-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; } /* under the shade (::before) */
.dm-welcome:not(.no-photo) { color: #fff; background: #111; isolation: isolate; }
.dm-welcome:not(.no-photo)::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.72)); }
.dm-welcome-in { width: 100%; max-width: 400px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.dm-welcome-logo { width: 96px; height: 96px; border-radius: 24px; object-fit: cover; background: var(--p-surface); display: grid; place-items: center;
    font: 700 32px/1 var(--p-font-head); color: var(--p-accent); box-shadow: 0 8px 28px rgba(0,0,0,.25); }
.dm[data-logo-shape="circle"] .dm-welcome-logo { border-radius: 50%; }
.dm[data-logo-shape="square"] .dm-welcome-logo { border-radius: 6px; }
.dm-welcome-eyebrow { margin: 6px 0 0; font: 700 .72em/1.2 var(--p-font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--p-accent); }
.dm-welcome:not(.no-photo) .dm-welcome-eyebrow { color: rgba(255,255,255,.85); }
.dm-welcome-name { margin: 0; font-family: var(--p-font-head); font-size: clamp(1.7rem, 7vw, 2.3rem); line-height: 1.15; }
.dm-welcome-open, .dm-welcome-table { margin: 0; font-size: .9em; font-weight: 600; }
.dm-welcome:not(.no-photo) .dm-open, .dm-welcome:not(.no-photo) .dm-closed { color: #fff; }
.dm-welcome-langs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 8px; }
.dm-welcome-langs a { text-decoration: none; padding: 8px 14px; border-radius: var(--p-chip-radius); font-weight: 600; font-size: .9em;
    color: inherit; border: 1px solid color-mix(in srgb, currentColor 35%, transparent); background: color-mix(in srgb, var(--p-surface) 14%, transparent); }
.dm-welcome-langs a.on { background: var(--p-accent); border-color: var(--p-accent); color: var(--p-on-accent); }

/* The control: a round button with its label under it, or a capsule with a knob to slide. */
@property --p { syntax: "<number>"; inherits: true; initial-value: 0; }
.dm-welcome { --w-ink: var(--p-text); }
.dm-welcome:not(.no-photo) { --w-ink: #fff; }
.dm-welcome-go { position: relative; margin-top: 18px; display: flex; flex-direction: column; align-items: center; gap: 10px; color: inherit;
    font: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent;
    touch-action: none; user-select: none; -webkit-user-select: none; }
.dm-welcome-knob { position: relative; z-index: 1; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
    background: var(--p-accent); color: var(--p-on-accent); box-shadow: 0 8px 22px rgba(0,0,0,.28); pointer-events: none; }
.dm-welcome-knob svg { width: 28px; height: 28px; transition: transform .35s cubic-bezier(.22, 1, .36, 1); }
[dir="rtl"] .dm-welcome-knob .dm-arrow { transform: scaleX(-1); }
.dm-welcome[data-style="button"] .dm-welcome-knob { width: 76px; height: 76px; animation: dm-welcome-pulse 1.9s ease-in-out infinite; transition: transform .2s; }
.dm-welcome[data-style="button"] .dm-welcome-go:active .dm-welcome-knob { transform: scale(.92); animation: none; }
.dm-welcome-go-label { font-weight: 700; }
.dm-welcome:focus, .dm-welcome-go:focus { outline: none; }
.dm-welcome-go:focus-visible .dm-welcome-knob { outline: 3px solid var(--w-ink); outline-offset: 3px; }

.dm-welcome[data-style="slide"] .dm-welcome-go, .dm-welcome[data-style="key"] .dm-welcome-go { flex-direction: row; justify-content: flex-start;
    width: min(100%, 320px); height: 74px; padding: 5px; border-radius: 999px; overflow: hidden; cursor: grab;
    background: color-mix(in srgb, var(--w-ink) 10%, transparent);
    box-shadow: inset 0 2px 8px rgba(0,0,0,.18), inset 0 0 0 1px color-mix(in srgb, var(--w-ink) 22%, transparent);
    transition: box-shadow .3s; }
.dm-welcome[data-style="key"] .dm-welcome-go { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); background: color-mix(in srgb, var(--p-surface) 22%, transparent); }
.dm-welcome-go[data-dragging] { cursor: grabbing; }
/* The trail behind the knob, growing with it. */
.dm-welcome-fill { position: absolute; inset-block: 5px; inset-inline-start: 5px; width: calc(64px + (100% - 74px) * var(--p)); border-radius: 999px;
    background: linear-gradient(90deg, color-mix(in srgb, var(--p-accent) 25%, transparent), color-mix(in srgb, var(--p-accent) 70%, transparent)); }
[dir="rtl"] .dm-welcome-fill { background: linear-gradient(270deg, color-mix(in srgb, var(--p-accent) 25%, transparent), color-mix(in srgb, var(--p-accent) 70%, transparent)); }
/* "Slide to open": a light sweeping across, fading out as the knob moves over it. */
.dm-welcome-track-label { flex: 1; min-width: 0; padding-inline: 72px 14px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    font-size: .68em; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; pointer-events: none;
    opacity: calc(1 - var(--p) * 1.8);
    background: linear-gradient(90deg, color-mix(in srgb, var(--w-ink) 50%, transparent) 0 35%, var(--w-ink) 50%, color-mix(in srgb, var(--w-ink) 50%, transparent) 65% 100%);
    background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: dm-welcome-shine 2.6s linear infinite; }
.dm-welcome[data-style="slide"] .dm-welcome-knob, .dm-welcome[data-style="key"] .dm-welcome-knob { position: absolute; inset-inline-start: 5px; top: 5px;
    animation: dm-welcome-nudge 2s ease-in-out infinite; }
[dir="rtl"] .dm-welcome[data-style="slide"] .dm-welcome-knob, [dir="rtl"] .dm-welcome[data-style="key"] .dm-welcome-knob { animation-name: dm-welcome-nudge-rtl; }
/* Grabbed: no hint any more, a deeper shadow; it follows exactly. */
.dm-welcome-go[data-dragging] .dm-welcome-knob, .dm-welcome-go[data-motion] .dm-welcome-knob { animation: none; }
.dm-welcome-go[data-dragging] .dm-welcome-knob { box-shadow: 0 12px 30px rgba(0,0,0,.35); }
/* Let go early: springs back with a bounce. Reached the end (or tapped): glides there and clicks into place. */
.dm-welcome-go[data-motion="back"] .dm-welcome-knob { transition: transform .55s cubic-bezier(.34, 1.56, .64, 1); }
.dm-welcome-go[data-motion="back"] { transition: --p .55s cubic-bezier(.34, 1.56, .64, 1), box-shadow .3s; }
.dm-welcome-go[data-motion="finish"] .dm-welcome-knob { transition: transform .32s cubic-bezier(.22, 1, .36, 1); }
.dm-welcome-go[data-motion="finish"] { transition: --p .32s cubic-bezier(.22, 1, .36, 1), box-shadow .3s; }
.dm-welcome-go[data-done] { box-shadow: inset 0 0 0 2px var(--p-accent), 0 0 0 6px color-mix(in srgb, var(--p-accent) 25%, transparent), 0 0 32px color-mix(in srgb, var(--p-accent) 55%, transparent); }
.dm-welcome-go[data-done] .dm-welcome-knob svg { animation: dm-welcome-click .32s .26s ease-out; }
.dm-welcome[data-style="key"] .dm-welcome-knob svg { animation: dm-welcome-turn 2.4s ease-in-out infinite; }
.dm-welcome[data-style="key"] .dm-welcome-go[data-dragging] .dm-welcome-knob svg { animation: none; }
/* The key turns in the lock. */
.dm-welcome[data-style="key"] .dm-welcome-go[data-done] .dm-welcome-knob svg { animation: none; transform: rotate(90deg); }
@keyframes dm-welcome-pulse { 50% { transform: scale(1.06); } }
@keyframes dm-welcome-nudge { 0%, 70%, 100% { transform: translateX(0); } 35% { transform: translateX(10px); } }
@keyframes dm-welcome-nudge-rtl { 0%, 70%, 100% { transform: translateX(0); } 35% { transform: translateX(-10px); } }
@keyframes dm-welcome-shine { from { background-position: 100% 0; } to { background-position: -150% 0; } }
@keyframes dm-welcome-click { 50% { transform: scale(1.25); } }
@keyframes dm-welcome-turn { 50% { transform: rotate(22deg); } }
.dm-welcome-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 20px; font-size: .85em; }
.dm-welcome-links a { color: inherit; opacity: .85; font-weight: 600; }
@media (prefers-reduced-motion: reduce) {
    .dm-welcome { animation-duration: 1ms; }
    .dm-welcome.leaving { animation: dm-welcome-fade .2s forwards; }
    .dm-welcome-knob, .dm-welcome-knob svg, .dm-welcome-track-label { animation: none !important; }
}
@keyframes dm-welcome-fade { to { opacity: 0; } }

/* ── Campaigns slider (promos.js): a row of slides that scrolls sideways with snapping. ── */
.dm-promos { position: relative; margin: 14px 16px 6px; }
.dm-promo-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none;
    border-radius: var(--p-radius); box-shadow: 0 6px 20px rgba(0,0,0,.12); }
.dm-promo-track::-webkit-scrollbar { display: none; }
.dm-promo { position: relative; flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; min-height: 170px; aspect-ratio: 16 / 8; max-height: 280px;
    display: flex; align-items: flex-end; overflow: hidden; color: #fff; isolation: isolate;
    background: linear-gradient(135deg, var(--p-accent), color-mix(in srgb, var(--p-accent) 55%, #000)); }
.dm-promo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
/* A dark wash at the bottom so the words stay readable on any photo. */
.dm-promo:not(.no-photo)::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.08) 0%, rgba(0,0,0,.5) 42%, rgba(0,0,0,.8) 100%); }
.dm-promo:not(.no-photo) .dm-promo-text { text-shadow: 0 1px 8px rgba(0,0,0,.45); }
.dm-promo-btn { text-shadow: none; }
.dm-promo-text { padding: 16px 18px 18px; max-width: 34em; }
.dm-promo h3 { margin: 0; font-family: var(--p-font-head); font-size: calc(20px * var(--p-scale)); line-height: 1.2; text-wrap: balance; }
.dm-promo p { margin: 4px 0 0; font-size: .9em; line-height: 1.4; opacity: .92; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
/* The countdown: a chip with figures that don't jump as they tick. */
.dm-promo p.dm-promo-countdown { display: inline-block; margin-top: 8px; padding: 3px 10px; border-radius: var(--p-chip-radius); background: rgba(0,0,0,.55); color: #fff; font-weight: 700; font-size: .82em; font-variant-numeric: tabular-nums; opacity: 1; text-shadow: none; }
.dm-promo.no-photo p.dm-promo-countdown { background: var(--p-accent); color: var(--p-on-accent, #fff); }
.dm-promo-countdown[hidden] { display: none !important; }
.dm-promo-btn { display: inline-block; margin-top: 10px; padding: 8px 16px; border-radius: var(--p-chip-radius); background: #fff; color: #111; font-weight: 700; font-size: .85em; text-decoration: none; }
.dm-promo.no-photo .dm-promo-btn { color: var(--p-accent); }
.dm-promo-btn:hover { filter: brightness(.94); }
.dm-promo-add { border: 0; cursor: pointer; font-family: inherit; margin-inline-end: 8px; background: var(--p-accent); color: var(--p-on-accent); }
.dm-promo.no-photo .dm-promo-add { background: #fff; color: var(--p-accent); }
.dm-promo-dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.dm-promo-dots a { width: 8px; height: 8px; border-radius: 999px; background: color-mix(in srgb, var(--p-text) 22%, transparent); transition: width .25s, background-color .25s; }
.dm-promo-dots a.on { width: 22px; background: var(--p-accent); }
.dm-promo-arrow { position: absolute; top: calc(50% - 24px); z-index: 1; width: 36px; height: 36px; border-radius: 50%; border: 0; display: grid; place-items: center;
    background: rgba(255,255,255,.9); color: #111; box-shadow: 0 2px 10px rgba(0,0,0,.2); cursor: pointer; opacity: 0; transition: opacity .2s; }
.dm-promo-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.dm-promo-arrow.prev { inset-inline-start: 10px; }
.dm-promo-arrow.next { inset-inline-end: 10px; }
[dir="rtl"] .dm-promo-arrow svg { transform: scaleX(-1); }
/* Arrows for mouse users, when pointing at the slider (or tabbing to them); fingers swipe. */
@media (hover: hover) and (pointer: fine) { .dm-promos:hover .dm-promo-arrow { opacity: 1; } .dm-promo-track { cursor: grab; } }
.dm-promo-track.dragging { scroll-snap-type: none; cursor: grabbing; user-select: none; }
.dm-promo-arrow:focus-visible { opacity: 1; outline: 3px solid var(--p-accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .dm-promo-track { scroll-behavior: auto; } }

/* ── Asking for a Google review (MenuDesign.ReviewPrompt, review.js): a card at the end of the menu, or a small floating
   button or a popup above the bottom of the screen, clear of the bottom bar and the order bar. ── */
.dm-review-card { margin: 22px 16px 6px; padding: 20px 18px; border: 1px solid var(--p-border); border-radius: var(--p-radius); background: var(--p-surface); text-align: center; }
.dm-review-card h2, .dm-review h2 { margin: 4px 0 4px; font-size: 1.15em; }
.dm-review-card p, .dm-review p { margin: 0 0 14px; color: var(--p-muted); font-size: .93em; }
.dm-review-stars { color: #F5B301; letter-spacing: 2px; font-size: 1.05em; }
.dm-review-go { display: inline-flex; align-items: center; justify-content: center; padding: 10px 18px; border-radius: 999px; background: var(--p-accent); color: var(--p-on-accent);
    font-weight: 700; text-decoration: none; }
.dm-review { --dm-review-bottom: calc(16px + env(safe-area-inset-bottom)); position: fixed; z-index: 22; bottom: var(--dm-review-bottom); opacity: 0; transform: translateY(14px);
    transition: opacity .25s, transform .25s; }
.dm-review.on { opacity: 1; transform: none; }
.dm-review[hidden] { display: none; }
.dm:has(.dm-order-bar:not([hidden])) .dm-review { --dm-review-bottom: calc(84px + env(safe-area-inset-bottom)); }
@media (max-width: 959px) { .dm[data-appbar="on"] .dm-review { --dm-review-bottom: calc(84px + env(safe-area-inset-bottom)); } }
.dm-review[data-review="button"] { inset-inline-start: 14px; display: flex; align-items: center; gap: 2px; border-radius: 999px; background: var(--p-surface);
    box-shadow: 0 8px 24px rgba(0,0,0,.18); border: 1px solid var(--p-border); }
.dm-review-pill { padding: 9px 4px 9px 14px; color: var(--p-text); font-weight: 700; font-size: .9em; text-decoration: none; }
.dm-review-pill span { color: #F5B301; }
.dm-review[data-review="button"] .dm-review-close { width: 34px; height: 34px; }
.dm-review:not([data-review="button"]) { inset-inline: 12px; max-width: 420px; margin: 0 auto; padding: 18px 18px 16px; border-radius: var(--p-radius);
    background: var(--p-surface); border: 1px solid var(--p-border); box-shadow: 0 16px 44px rgba(0,0,0,.25); text-align: center; }
.dm-review-close { position: relative; display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 50%; background: none; color: var(--p-muted);
    font-size: 15px; cursor: pointer; }
.dm-review:not([data-review="button"]) .dm-review-close { position: absolute; top: 6px; inset-inline-end: 6px; }
@media (prefers-reduced-motion: reduce) { .dm-review { transition: none; transform: none; } }

/* ── Campaign styles (MenuDesign.PromoStyle). Ticker: the titles run across a strip in the accent colour, over smaller
   cards side by side. Stories: round pictures that open the slides full screen, with progress bars at the top. ── */
.dm-promo-ticker { overflow: hidden; margin: 0 0 10px; padding: 8px 0; border-radius: var(--p-chip-radius); background: var(--p-accent); color: var(--p-on-accent);
    font-weight: 700; font-size: .86em; white-space: nowrap; }
.dm-promo-ticker-run { display: inline-flex; gap: 36px; width: max-content; padding-inline-start: 36px; animation: dm-ticker var(--dm-ticker-time, 20s) linear infinite; }
.dm-promo-ticker:hover .dm-promo-ticker-run { animation-play-state: paused; }
@keyframes dm-ticker { to { transform: translateX(-50%); } }
[dir="rtl"] .dm-promo-ticker-run { animation-name: dm-ticker-rtl; }
@keyframes dm-ticker-rtl { to { transform: translateX(50%); } }
.dm-promos[data-style="ticker"] .dm-promo-track { gap: 10px; border-radius: 0; box-shadow: none; }
.dm-promos[data-style="ticker"][data-count]:not([data-count="1"]) .dm-promo { flex-basis: 80%; }
.dm-promos[data-style="ticker"] .dm-promo { aspect-ratio: 16 / 9; min-height: 150px; max-height: 210px; border-radius: var(--p-radius); }
.dm-promos[data-style="ticker"] .dm-promo h3 { font-size: calc(17px * var(--p-scale)); }
.dm-promos[data-style="ticker"] .dm-promo-dots, .dm-promos[data-style="ticker"] .dm-promo-arrow { display: none; }
@media (prefers-reduced-motion: reduce) { .dm-promo-ticker { overflow-x: auto; } .dm-promo-ticker-run { animation: none; } }

.dm-stories { display: flex; gap: 14px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: none; }
.dm-stories::-webkit-scrollbar { display: none; }
.dm-story { flex: none; width: 76px; display: grid; justify-items: center; gap: 6px; padding: 0; border: 0; background: none; color: var(--p-text); cursor: pointer; font: inherit; }
.dm-story-ring { width: 70px; height: 70px; padding: 3px; border-radius: 50%; box-sizing: border-box;
    background: conic-gradient(from 210deg, var(--p-accent), #F59E0B, #EC4899, var(--p-accent)); }
.dm-story.seen .dm-story-ring { background: var(--p-border); }
.dm-story-ring > span { display: grid; place-items: center; width: 100%; height: 100%; overflow: hidden; border-radius: 50%; border: 3px solid var(--p-bg); box-sizing: border-box;
    background: linear-gradient(135deg, var(--p-accent), color-mix(in srgb, var(--p-accent) 55%, #000)); color: #fff; font: 800 1.4em/1 var(--p-font-head); }
.dm-story-ring img { width: 100%; height: 100%; object-fit: cover; }
.dm-story b { max-width: 76px; font-size: .74em; font-weight: 600; line-height: 1.25; text-align: center; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dm-story-view { width: 100vw; height: 100dvh; max-width: 480px; max-height: 900px; margin: auto; padding: 0; border: 0; background: #000; color: #fff; overflow: hidden; }
.dm-story-view[open] { display: block; }
.dm-story-view::backdrop { background: rgba(0,0,0,.88); }
.dm-story-view .dm-promo-track { height: 100%; border-radius: 0; box-shadow: none; }
.dm-story-view .dm-promo { aspect-ratio: auto; height: 100%; max-height: none; min-height: 0; }
.dm-story-view .dm-promo-text { padding-bottom: calc(28px + env(safe-area-inset-bottom)); }
.dm-story-view .dm-promo h3 { font-size: calc(24px * var(--p-scale)); }
.dm-story-view .dm-promo p { -webkit-line-clamp: 6; }
.dm-story-view .dm-promo-dots { position: absolute; top: calc(10px + env(safe-area-inset-top)); inset-inline: 12px; z-index: 2; margin: 0; gap: 4px; }
.dm-story-view .dm-promo-dots a { flex: 1; width: auto; height: 3px; border-radius: 2px; background: rgba(255,255,255,.35); }
.dm-story-view .dm-promo-dots a.on { width: auto; background: #fff; }
.dm-story-view .dm-promo-arrow { opacity: 1; background: rgba(255,255,255,.18); color: #fff; box-shadow: none; }
.dm-story-close { position: absolute; top: calc(22px + env(safe-area-inset-top)); inset-inline-end: 10px; z-index: 3; width: 38px; height: 38px; border: 0; border-radius: 50%;
    background: rgba(0,0,0,.35); color: #fff; font-size: 17px; cursor: pointer; }

/* ── The menu's width on tablets and computers (MenuDesign.Width); phones are the same in all. Narrow keeps a single
   reading column beside the section list; wide and full let the dishes column grow and put list dishes in two columns
   and cards in more. (.dm.dm outweighs the basket's and the photo layouts' own widths.) ── */
@media (min-width: 720px) and (max-width: 959px) {
    .dm.dm[data-width="wide"] { max-width: 920px; }
    .dm.dm[data-width="full"] { max-width: none; }
    .dm:is([data-width="wide"], [data-width="full"]) .dm-items[data-dishes="list"] { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
}
@media (min-width: 960px) {
    .dm.dm[data-width="narrow"] { --dm-wide: 940px; --dm-dishes: 580px; }
    .dm.dm[data-width="wide"] { --dm-wide: 1440px; --dm-dishes: 1060px; }
    .dm.dm[data-width="full"] { --dm-wide: none; --dm-dishes: 1fr; }
    .dm[data-width="full"] .dm-layout { padding-inline: 36px; }
    .dm:is([data-width="wide"], [data-width="full"]) .dm-items[data-dishes="list"] { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
    .dm:is([data-width="wide"], [data-width="full"]) .dm-items[data-dishes="magazine"] { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
    .dm[data-width="narrow"] .dm-items[data-dishes="grid"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1240px) {
    .dm.dm[data-width="narrow"]:is(:has(.dm-basket:not([hidden])), :has(.dm-info)) { --dm-wide: 1220px; }
    .dm[data-width="full"] .dm-items[data-dishes="grid"] { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
    .dm[data-width="full"] .dm-items[data-dishes="list"] { grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); }
}

/* ── The bottom bar as a floating capsule (MenuDesign.BottomBarStyle): rounded, off the edges, the current tab in a pill. ── */
@media (max-width: 959px) {
    .dm[data-appbar-style="capsule"] { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
    .dm[data-appbar-style="capsule"] .dm-appbar { inset-inline: 14px; bottom: calc(12px + env(safe-area-inset-bottom)); max-width: 470px; margin: 0 auto; padding: 5px 6px;
        border: 1px solid var(--p-border); border-radius: 999px; box-shadow: 0 12px 32px rgba(0,0,0,.2); }
    .dm[data-appbar-style="capsule"] .dm-appbar > a, .dm[data-appbar-style="capsule"] .dm-appbar > button { padding: 7px 2px 6px; border-radius: 999px; }
    .dm[data-appbar-style="capsule"] .dm-appbar > .on { background: color-mix(in srgb, var(--p-accent) 13%, transparent); }
    .dm[data-appbar-style="capsule"] .dm-order-toast { bottom: calc(96px + env(safe-area-inset-bottom)); }
    .dm[data-appbar-style="capsule"] .dm-review { --dm-review-bottom: calc(92px + env(safe-area-inset-bottom)); }
}

/* ── Carousel: poster cards in a row that scrolls sideways, a little of the next card showing so guests know to swipe. ── */
.dm-items[data-dishes="carousel"] { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none;
    margin-inline: -16px; padding: 6px 16px 10px; scroll-padding-inline: 16px; }
.dm-items[data-dishes="carousel"]::-webkit-scrollbar { display: none; }
.dm-items[data-dishes="carousel"] > .dm-item { flex: 0 0 min(58%, 230px); scroll-snap-align: start; }
.dm[data-photo="sm"] .dm-items[data-dishes="carousel"] > .dm-item { flex-basis: min(42%, 170px); }
.dm[data-photo="lg"] .dm-items[data-dishes="carousel"] > .dm-item { flex-basis: min(72%, 290px); }
@media (min-width: 960px) { .dm-items[data-dishes="carousel"] { margin-inline: 0; padding-inline: 0; scroll-padding-inline: 0; } }

/* ── "Popular": the featured dishes in a row that scrolls sideways at the top of the menu (MenuDesign.ShowPopular). ── */
.dm-popular { margin: 16px 0 4px; }
.dm-popular h2 { margin: 0 16px 10px; font-size: 1.15em; }
.dm-popular-row { display: flex; gap: 10px; overflow-x: auto; padding: 0 16px 6px; scroll-snap-type: x proximity; scrollbar-width: none; }
.dm-popular-row::-webkit-scrollbar { display: none; }
.dm-popular-card { flex: 0 0 136px; display: flex; flex-direction: column; gap: 3px; scroll-snap-align: start; color: var(--p-text); text-decoration: none; }
.dm-popular-card img, .dm-popular-card.no-photo::before { width: 136px; height: 136px; border-radius: var(--p-radius); object-fit: cover; background: var(--p-chip); }
.dm-popular-card.no-photo::before { content: "★"; display: grid; place-items: center; color: var(--p-on-accent); font-size: 34px;
    background: linear-gradient(135deg, var(--p-accent), color-mix(in srgb, var(--p-accent) 55%, #000)); }
.dm-popular-card b { margin-top: 4px; font-size: .9em; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dm-popular-card .pr { color: var(--p-accent); font-weight: 700; font-size: .88em; }
@media (min-width: 960px) { .dm-popular h2, .dm-popular-row { margin-inline: 0; padding-inline: 0; } }

/* ── Paper (the "Printed" look): a printed menu's manners. Dotted lines from each name to its price, small capitals and an
   ornament over each section, no rules between dishes. The dots take the place of the "opens" arrow. ── */
.dm[data-theme="paper"] .dm-sec h2 { text-align: center; font-variant: small-caps; letter-spacing: .08em; font-weight: 600; }
.dm[data-theme="paper"] .dm-sec h2::before { content: "❦"; display: block; margin-bottom: 2px; color: var(--p-accent); font-size: .8em; letter-spacing: 0; }
.dm[data-theme="paper"] .dm-name { font-variant: small-caps; letter-spacing: .05em; }
.dm[data-theme="paper"] .dm-item { border-bottom: 0; }
.dm[data-theme="paper"] .dm-items:is([data-dishes="list"], [data-dishes="compact"]) .dm-item b { display: flex; align-items: baseline; gap: 8px; }
.dm[data-theme="paper"] .dm-items:is([data-dishes="list"], [data-dishes="compact"]) .dm-item b::after,
.dm[data-theme="paper"] .dm-items:is([data-dishes="list"], [data-dishes="compact"]) .dm-item.opens b::after {
    content: ""; display: block; flex: 1 1 24px; min-width: 24px; width: auto; height: 0; margin: 0; border: 0;
    border-bottom: 2px dotted color-mix(in srgb, var(--p-muted) 60%, transparent); transform: none; }
.dm[data-theme="paper"] .dm-items:is([data-dishes="list"], [data-dishes="compact"]) .dm-item .pr { color: var(--p-text); }
.dm[data-theme="paper"] .dm-item .ds { font-style: italic; }

/* ── Mint (the "Airy" look): a soft gradient behind the page and frosted-glass cards over it. ── */
.dm[data-theme="mint"] { background: linear-gradient(165deg, #E3F6EF 0%, #D3EFE8 40%, #F2FBF7 100%) fixed; }
body:has(.dm[data-theme="mint"]) { background: #E3F6EF; }
.dm[data-theme="mint"] :is(.dm-items:is([data-dishes="grid"], [data-dishes="magazine"]) .dm-item, .dm-review-card, .dm-promo-ticker) {
    background: rgba(255, 255, 255, .58); border: 1px solid rgba(255, 255, 255, .75); box-shadow: 0 10px 28px rgba(15, 82, 72, .09);
    -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); }
.dm[data-theme="mint"] .dm-items[data-dishes="list"] .dm-item { border-bottom-color: rgba(15, 82, 72, .1); }
.dm[data-theme="mint"] .dm-appbar { background: rgba(255, 255, 255, .72); -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%); }
.dm[data-theme="mint"] .dm-promo-ticker { color: var(--p-accent); }
@media (prefers-color-scheme: dark) {
    .dm[data-dark="auto"][data-theme="mint"] { background: var(--p-bg); }
    .dm[data-dark="auto"][data-theme="mint"] :is(.dm-items:is([data-dishes="grid"], [data-dishes="magazine"]) .dm-item, .dm-review-card, .dm-promo-ticker, .dm-appbar) { background: var(--p-surface); border-color: var(--p-border); }
}

/* ── A dish's own page (DishPage, /m/{slug}/d/{dish}): its photos, name and price, details, and a bar at the bottom to
   share it or see it on the menu. ── */
.dm.dm-dish { max-width: 720px; padding-bottom: calc(86px + env(safe-area-inset-bottom)); }
.dm-dish-top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--p-bg);
    border-bottom: 1px solid var(--p-border); }
.dm-dish-back { min-width: 0; overflow: hidden; color: var(--p-text); font-weight: 700; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.dm-dish-back span { color: var(--p-accent); }
[dir="rtl"] .dm-dish-back span { display: inline-block; transform: scaleX(-1); }
.dm-dish-place { margin-inline-start: auto; min-width: 0; overflow: hidden; color: var(--p-muted); font-size: .85em; text-overflow: ellipsis; white-space: nowrap; }
.dm-dish-photos { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.dm-dish-photos::-webkit-scrollbar { display: none; }
.dm-dish-photos img { flex: 0 0 100%; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; scroll-snap-align: start; }
.dm-dish-photos.no-photo { aspect-ratio: 16 / 7; background: linear-gradient(160deg, color-mix(in srgb, var(--p-accent) 72%, #000), color-mix(in srgb, var(--p-accent) 45%, #000)); }
.dm-dish-body { padding: 18px 16px 24px; }
.dm-dish-section { margin: 0 0 4px; color: var(--p-accent); font-size: .8em; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.dm-dish-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.dm-dish-head h1 { margin: 0; font-size: calc(26px * var(--p-scale)); line-height: 1.2; text-wrap: balance; }
.dm-dish-head .pr { color: var(--p-accent); font-size: 1.25em; font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
.dm-dish-head .pr s { margin-inline-end: 4px; color: var(--p-muted); font-size: .72em; font-weight: 500; }
.dm-dish-head .pr small { color: var(--p-muted); font-size: .6em; font-weight: 600; }
.dm-dish-out { margin: 6px 0 0; color: var(--p-danger); font-weight: 700; }
.dm-dish .tg { display: flex; flex-wrap: wrap; gap: 4px; margin: 10px 0 0; }
.dm-dish .tg span { padding: 1px 8px; border-radius: var(--p-chip-radius); background: var(--p-chip); font-size: .78em; font-weight: 700; }
.dm-dish .tg .feat, .dm-dish .tg .offer { background: var(--p-accent); color: var(--p-on-accent); }
.dm-dish-desc { margin: 14px 0; font-size: 1.02em; line-height: 1.55; }
.dm-dish .dm-choices { margin: 16px 0; }
.dm-dish-allergens { margin: 14px 0; }
.dm-dish-allergens .al { display: inline-flex; flex-wrap: wrap; gap: 5px; margin-inline-start: 6px; }
.dm-dish-allergens .al span { padding: 2px 8px; border-radius: var(--p-chip-radius); background: #FDEEF0; color: #9F1239; font-size: .9em; font-weight: 600; }
.dm-dish-pairs { margin-top: 26px; }
.dm-dish-pairs h2 { margin: 0 0 10px; font-size: 1.1em; }
.dm-dish-pairs .dm-popular-row { margin-inline: -16px; }
.dm-dish-bar { position: fixed; inset-inline: 0; bottom: 0; z-index: 10; display: flex; gap: 10px; max-width: 720px; margin: 0 auto; box-sizing: border-box;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--p-surface); border-top: 1px solid var(--p-border); box-shadow: 0 -6px 20px rgba(0,0,0,.07); }
.dm-dish-share { flex: none; padding: 12px 18px; border: 1px solid var(--p-border); border-radius: 999px; background: none; color: var(--p-text); font: 700 .95em var(--p-font-body); cursor: pointer; }
.dm-dish-go { flex: 1; display: grid; place-items: center; padding: 12px 18px; border-radius: 999px; background: var(--p-accent); color: var(--p-on-accent); font-weight: 800; text-decoration: none; }
.dm-dish-link { margin: 12px 0 0; }
.dm-dish-link a { color: var(--p-accent); font-weight: 700; }

/* ── Airy (mint), polished: the gradient scrolls with the page (a fixed background left lighter boxes behind cards in some
   browsers), the search bar is glass over it, and big-photo cards keep their text off the card's edges. ── */
.dm[data-theme="mint"] { background-attachment: scroll; }
.dm[data-theme="mint"] .dm-sticky { background: color-mix(in srgb, var(--p-bg) 70%, transparent); border-bottom-color: rgba(15, 82, 72, .1);
    -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); }
.dm[data-theme="mint"] .dm-items[data-dishes="magazine"] .dm-item { margin-bottom: 14px; border-radius: var(--p-radius); overflow: hidden; }
.dm[data-theme="mint"] .dm-items[data-dishes="magazine"] .dm-item summary { position: relative; padding: 0 0 14px; }
.dm[data-theme="mint"] .dm-items[data-dishes="magazine"] .dm-item summary:not(:has(> img.ph)) { padding-top: 14px; }
.dm[data-theme="mint"] .dm-items[data-dishes="magazine"] .dm-item .ph { border-radius: 0; }
.dm[data-theme="mint"] .dm-items[data-dishes="magazine"] .dm-item .tx { padding: 0 16px; }
.dm[data-theme="mint"] .dm-items[data-dishes="magazine"] .dm-more { padding: 0 16px 14px; }

/* ── Posters and swipe rows: a long name wraps inside the card instead of being cut at its edges; smaller in narrow cards. ── */
.dm-items:is([data-dishes="poster"], [data-dishes="carousel"]) .dm-item .tx > * { max-width: 100%; }
/* The name is sized to the card (container units), so whole words fit narrow cards; a word that still can't is broken. */
.dm-items:is([data-dishes="poster"], [data-dishes="carousel"]) .dm-item { container-type: inline-size; }
.dm-items:is([data-dishes="poster"], [data-dishes="carousel"]) .dm-item b { font-size: min(1.02em, 10.5cqi); overflow-wrap: anywhere; hyphens: auto; }
/* Posters keep the picture area even without a photo, so the heart and "+" never sit over the name: no extra room for them. */
.dm-items:is([data-dishes="poster"], [data-dishes="carousel"]) .dm-item > summary:not(:has(> img.ph)):has(> .dm-pick, > .dm-add) > .tx { padding-inline-end: 10px; }

/* ── Arrows on rows that scroll sideways, for a mouse (rows.js): at the row's ends, only while there is more that way. ── */
.dm-row-wrap { position: relative; }
.dm-row-arrow { position: absolute; top: calc(50% - 20px); z-index: 2; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%;
    background: var(--p-surface); color: var(--p-text); box-shadow: 0 4px 14px rgba(0,0,0,.2); cursor: pointer; }
.dm-row-arrow[hidden] { display: none; }
.dm-row-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.dm-row-arrow.prev { inset-inline-start: -6px; }
.dm-row-arrow.next { inset-inline-end: -6px; }
[dir="rtl"] .dm-row-arrow svg { transform: scaleX(-1); }
.dm-row-wrap .dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
@media (hover: hover) and (pointer: fine) { .dm-row-wrap > :is(.dm-items, .dm-popular-row) { cursor: grab; } }

/* ── A dish's photos, big (photos.js): full screen on black, swipe or arrows, a count at the bottom. ── */
.dm-lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(0,0,0,.94); color: #fff; overflow: hidden; }
.dm-lightbox[open] { display: block; }
.dm-lightbox::backdrop { background: rgba(0,0,0,.6); }
.dm-lightbox-track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior: contain; }
.dm-lightbox-track::-webkit-scrollbar { display: none; }
.dm-lightbox-track img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: contain; scroll-snap-align: center; }
.dm-lightbox-close { position: absolute; top: calc(12px + env(safe-area-inset-top)); inset-inline-end: 12px; width: 42px; height: 42px; border: 0; border-radius: 50%;
    background: rgba(255,255,255,.16); color: #fff; font-size: 18px; cursor: pointer; }
.dm-lightbox-arrow { position: absolute; top: calc(50% - 22px); width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%;
    background: rgba(255,255,255,.16); color: #fff; cursor: pointer; }
.dm-lightbox-arrow[hidden] { display: none; }
.dm-lightbox-arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.dm-lightbox-arrow.prev { inset-inline-start: 12px; }
.dm-lightbox-arrow.next { inset-inline-end: 12px; }
[dir="rtl"] .dm-lightbox-arrow svg { transform: scaleX(-1); }
.dm-lightbox-count { position: absolute; bottom: calc(16px + env(safe-area-inset-bottom)); inset-inline: 0; margin: 0; text-align: center; font-size: .9em; opacity: .8; }
.dm-gallery img, .dm-sheet-photo, .dm-dish-photos img, .dm-items[data-dishes="list"] .dm-item[data-photos] .ph { cursor: zoom-in; }
/* Three posters side by side leave a phone too little room for a dish's name: two, even with small photos. */
@media (max-width: 519px) { .dm[data-photo="sm"] .dm-items[data-dishes="poster"] { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }

/* ── Wi-Fi near the top (MenuDesign.WifiDisplay = card): the join QR beside the network, the password and a Copy button. ── */
.dm-wifi-card { display: flex; align-items: center; gap: 14px; margin: 14px 16px 4px; padding: 12px 14px; border: 1px solid var(--p-border); border-radius: var(--p-radius);
    background: var(--p-surface); }
.dm-wifi-card img { flex: none; width: 76px; height: 76px; padding: 4px; border-radius: calc(var(--p-radius) * .5); background: #fff; }
.dm-wifi-card h2 { margin: 0 0 4px; font-size: 1em; overflow-wrap: anywhere; }
.dm-wifi-card p { margin: 0; font-size: .9em; overflow-wrap: anywhere; }
.dm-wifi-card .dm-wifi-hint { margin-top: 4px; }
.dm-wifi-copy { margin-inline-start: 6px; padding: 3px 10px; border: 1px solid var(--p-border); border-radius: 999px; background: var(--p-chip); color: var(--p-text);
    font: 600 .85em var(--p-font-body); cursor: pointer; }
@media (min-width: 960px) { .dm-wifi-card { margin-inline: 0; } }

/* ── The restaurant's info as a card at the end (MenuDesign.InfoDisplay = end). On computers, where the same info is already
   beside the menu, it stays out. ── */
.dm-info-end { margin: 22px 16px 6px; border: 1px solid var(--p-border); border-radius: var(--p-radius); background: var(--p-surface); }
.dm-info-end:not(:has(section)) { display: none; }
@media (min-width: 960px) { .dm-info-end.beside { display: none; } .dm-info-end { margin-inline: 0; } }

/* ── Dish cards (ItemLayout = cards): each dish in its own rounded card, the photo at the start, as tall as the card.
   Photo size sets the photo's width. One card per row on phones, two on wider screens. ── */
.dm-items[data-dishes="cards"] { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding-top: 6px; --p-card-photo: 118px; }
.dm[data-photo="sm"] .dm-items[data-dishes="cards"] { --p-card-photo: 92px; }
.dm[data-photo="lg"] .dm-items[data-dishes="cards"] { --p-card-photo: 150px; }
@media (min-width: 720px) { .dm-items[data-dishes="cards"] { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
.dm[data-width="narrow"] .dm-items[data-dishes="cards"] { grid-template-columns: minmax(0, 1fr); }
.dm-items[data-dishes="cards"] .dm-item { border: 1px solid var(--p-border); border-radius: var(--p-radius); background: var(--p-surface); overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,.05); }
.dm-items[data-dishes="cards"] .dm-item > summary { gap: 0; padding: 0; align-items: stretch; }
.dm-items[data-dishes="cards"] .dm-item > summary:has(> img.ph) { display: grid; grid-template-columns: var(--p-card-photo) minmax(0, 1fr); min-height: calc(var(--p-card-photo) * .95); }
/* The photo takes the card's height, whatever the text's length (height 0 keeps it from setting the height itself). */
.dm-items[data-dishes="cards"] .dm-item .ph { width: 100%; height: 0; min-height: 100%; border-radius: 0; }
.dm-items[data-dishes="cards"] .dm-item .tx { display: flex; flex-direction: column; padding: 12px 14px; }
.dm-items[data-dishes="cards"] .dm-item .ds { margin-top: 2px; }
.dm-items[data-dishes="cards"] .dm-item .tx > .pr { margin-top: auto; padding-top: 8px; }
.dm-items[data-dishes="cards"] .dm-item > summary:has(> .dm-pick, > .dm-add) > .tx { padding-inline-end: 50px; }
.dm-items[data-dishes="cards"] .dm-more { padding: 0 14px 14px; }

/* ── Text over the photo (ItemLayout = overlay): the name and a line of description on the photo over a dark fade, the price
   in a pill. Photo size: small two side by side, medium and large one per row on phones (large taller). ── */
.dm-items[data-dishes="overlay"] { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding-top: 6px; }
.dm[data-photo="sm"] .dm-items[data-dishes="overlay"] { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 720px) {
    .dm-items[data-dishes="overlay"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dm[data-photo="sm"] .dm-items[data-dishes="overlay"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.dm[data-width="narrow"] .dm-items[data-dishes="overlay"] { grid-template-columns: minmax(0, 1fr); }
.dm[data-width="narrow"][data-photo="sm"] .dm-items[data-dishes="overlay"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dm-items[data-dishes="overlay"] .dm-item { border: 0; border-radius: var(--p-radius); overflow: hidden; background: #1c1b1a; box-shadow: 0 4px 14px rgba(0,0,0,.16); }
.dm-items[data-dishes="overlay"] .dm-item > summary { display: block; padding: 0; color: #fff; }
.dm-items[data-dishes="overlay"] .dm-item .ph { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; border-radius: 0; }
.dm[data-photo="sm"] .dm-items[data-dishes="overlay"] .dm-item .ph { aspect-ratio: 1 / 1; }
.dm[data-photo="lg"] .dm-items[data-dishes="overlay"] .dm-item .ph { aspect-ratio: 4 / 3; }
.dm-items[data-dishes="overlay"] .dm-item.no-photo > summary::before { content: ""; display: block; aspect-ratio: 16 / 10;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-opacity='.4' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 3v8M6 3v5a2 2 0 0 0 4 0V3M8 11v10M17 3c-1.7 1-3 3.2-3 6v3h3v9'/%3E%3C/svg%3E") 50% 30% / 22% no-repeat, linear-gradient(160deg, color-mix(in srgb, var(--p-accent) 70%, #000), color-mix(in srgb, var(--p-accent) 38%, #000)); }
.dm[data-photo="sm"] .dm-items[data-dishes="overlay"] .dm-item.no-photo > summary::before { aspect-ratio: 1 / 1; }
.dm[data-photo="lg"] .dm-items[data-dishes="overlay"] .dm-item.no-photo > summary::before { aspect-ratio: 4 / 3; }
.dm-items[data-dishes="overlay"] .dm-item .tx { position: absolute; inset: auto 0 0; display: flex; flex-direction: column; align-items: flex-start; padding: 48px 14px 13px;
    background: linear-gradient(to top, rgba(0,0,0,.84), rgba(0,0,0,.55) 55%, transparent); }
.dm-items[data-dishes="overlay"] .dm-item .tx > * { max-width: 100%; }
.dm-items[data-dishes="overlay"] .dm-item b { font-size: 1.14em; line-height: 1.2; text-shadow: 0 1px 3px rgba(0,0,0,.4); overflow-wrap: anywhere; }
.dm[data-photo="sm"] .dm-items[data-dishes="overlay"] .dm-item b { font-size: 1em; }
.dm-items[data-dishes="overlay"] .dm-item .ds { color: rgba(255,255,255,.86); margin-top: 2px; }
.dm[data-photo="sm"] .dm-items[data-dishes="overlay"] .dm-item .ds { display: none; }
.dm-items[data-dishes="overlay"] .dm-item .tx > .pr { margin-top: 8px; padding: 4px 12px; border-radius: 999px; background: var(--p-accent); color: var(--p-on-accent); }
.dm-items[data-dishes="overlay"] .dm-item .pr s, .dm-items[data-dishes="overlay"] .dm-item .pr small { color: inherit; opacity: .8; }
.dm-items[data-dishes="overlay"] .dm-item .dm-min { background: rgba(255,255,255,.2); color: #fff; }
.dm-items[data-dishes="overlay"] .dm-item .mk { background: rgba(255,255,255,.2); color: #fff; }
.dm-items[data-dishes="overlay"] .dm-more { padding: 12px 14px 14px; background: var(--p-surface); color: var(--p-text); }

/* ── Section tabs: "All" first, and the section being read highlighted (toc.js). ── */
.dm-tabs a { color: var(--p-text); transition: background-color .15s, color .15s; }
.dm-tabs a.on { background: var(--p-accent); color: var(--p-on-accent); }

/* ── Round section buttons (SectionNav = circles): a sideways row under the header, Search first. ── */
.dm-circles { display: flex; gap: 6px; padding: 14px 16px 6px; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; scroll-padding-inline: 16px; }
.dm-circles::-webkit-scrollbar { display: none; }
.dm-circle { flex: none; width: 78px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; color: var(--p-text); }
.dm-circle-pic { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; background: var(--p-chip);
    box-shadow: 0 0 0 2px var(--p-bg), 0 0 0 3.5px transparent; transition: box-shadow .15s; }
.dm-circle-pic img { width: 100%; height: 100%; object-fit: cover; }
.dm-circle-ico { font-size: 28px; line-height: 1; }
.dm-circle-letter { font: 700 1.5em var(--p-font-head, inherit); color: var(--p-accent); background: color-mix(in srgb, var(--p-accent) 13%, var(--p-surface)); }
.dm-circle-search .dm-circle-pic { background: var(--p-accent); color: var(--p-on-accent); }
.dm-circle-search svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.dm-circle-name { width: 100%; font-size: .78em; font-weight: 600; line-height: 1.2; text-align: center; overflow-wrap: anywhere;
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.dm-circle.on .dm-circle-pic { box-shadow: 0 0 0 2px var(--p-bg), 0 0 0 3.5px var(--p-accent); }
.dm-circle.on .dm-circle-name { color: var(--p-accent); }
@media (hover: hover) { .dm-circle:hover .dm-circle-pic { box-shadow: 0 0 0 2px var(--p-bg), 0 0 0 3.5px color-mix(in srgb, var(--p-accent) 45%, transparent); } }
@media (min-width: 960px) { .dm-circles { padding-inline: 0; scroll-padding-inline: 0; } }
/* The search bar folds away behind the round Search button until it is opened (:target works without the script). */
.dm-search.folded:not(:target, :focus-within, .on) { display: none; }
.dm-sticky:has(> .dm-search.folded:not(:target, :focus-within, .on)):not(:has(> .dm-navrow)) { display: none; }

/* ── Text alignment (Fonts and text). Headings centred: the header stacks like the centred logo, section headings centre. ── */
.dm[data-heading-align="center"] .dm-head { grid-template-columns: 1fr; justify-items: center; text-align: center; }
.dm[data-heading-align="center"] :is(.dm-meta, .dm-actions) { justify-content: center; }
.dm[data-heading-align="center"] :is(section.dm-sec > h2, section.dm-sec > .dm-sec-desc, .dm-subsec > h3, .dm-subsec > .dm-sec-desc, .dm-subnav) { text-align: center; }
.dm[data-heading-align="center"] .dm-subnav { justify-content: safe center; }
.dm[data-heading-align="center"] .dm-acc > summary { justify-content: center; position: relative; }
.dm[data-heading-align="center"] .dm-acc > summary > .muted { display: none; }
.dm[data-heading-align="center"] .dm-acc > summary::after { position: absolute; inset-inline-end: 0; }
.dm[data-heading-align="center"] .dm-acc > .dm-sec-desc { text-align: center; }
/* Text on dish cards; the list and compact layouts keep their name … price lines. */
.dm[data-card-align="center"] .dm-items:is([data-dishes="grid"], [data-dishes="magazine"], [data-dishes="poster"], [data-dishes="carousel"], [data-dishes="cards"], [data-dishes="overlay"]) .dm-item .tx { text-align: center; align-items: center; }
.dm[data-card-align="center"] .dm-items:is([data-dishes="grid"], [data-dishes="magazine"], [data-dishes="poster"], [data-dishes="carousel"], [data-dishes="cards"], [data-dishes="overlay"]) .dm-item .tx :is(.tg, .dm-marks) { justify-content: center; }
.dm[data-card-align="start"] .dm-items:is([data-dishes="grid"], [data-dishes="magazine"], [data-dishes="poster"], [data-dishes="carousel"], [data-dishes="cards"], [data-dishes="overlay"]) .dm-item .tx { text-align: start; align-items: flex-start; }
.dm[data-card-align="start"] .dm-items:is([data-dishes="grid"], [data-dishes="magazine"], [data-dishes="poster"], [data-dishes="carousel"], [data-dishes="cards"], [data-dishes="overlay"]) .dm-item .tx :is(.tg, .dm-marks) { justify-content: flex-start; }

/* ── "Made with MenuCraft": a quiet centred pill; "Made with" muted, the name as a wordmark, the accent on hover. ── */
.dm-foot .made:has(> .dm-made) { margin: 18px 0 12px; }
.dm-made { display: inline-flex; align-items: center; gap: 7px; padding-block: 6px; padding-inline: 10px 14px; border: 1px solid var(--p-border, rgba(0,0,0,.12)); border-radius: 999px;
    background: color-mix(in srgb, var(--p-surface, #fff) 70%, transparent); color: var(--p-text, #1c1917); text-decoration: none; font-size: 1.04em; line-height: 1.2;
    transition: border-color .2s, color .2s, box-shadow .2s; }
.dm-made img { flex: none; width: 15px; height: 15px; }
.dm-made-with { color: var(--p-muted, #78716c); font-weight: 500; }
.dm-made strong { font-weight: 750; letter-spacing: -.01em; }
.dm-made:hover, .dm-made:focus-visible { border-color: var(--p-accent, #c2410c); color: var(--p-accent, #c2410c); box-shadow: 0 2px 10px color-mix(in srgb, var(--p-accent, #c2410c) 14%, transparent); }

/* ── Long descriptions on cards: a few lines, the rest in the dish's sheet (which shows it all). Only where the card opens
   the sheet: with "Always shown" details the card is the only place the description is. ── */
.dm-items[data-sheet="on"]:is([data-dishes="grid"], [data-dishes="cards"], [data-dishes="overlay"]) .dm-item .tx .ds { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; -webkit-line-clamp: 3; }
.dm-items[data-sheet="on"]:is([data-dishes="cards"], [data-dishes="overlay"]) .dm-item .tx .ds { -webkit-line-clamp: 2; }
/* Over the photo the line clamp must not bring the description back on small photos. */
.dm[data-photo="sm"] .dm-items[data-dishes="overlay"] .dm-item .tx .ds { display: none; }

/* Arrows on the round section buttons (level with the circles) and on the section tabs (smaller, inside the bar). */
.dm-row-wrap:has(> .dm-circles) .dm-row-arrow { top: 26px; } /* until rows.js levels it with the circles */
.dm-row-wrap:has(> .dm-circles) .dm-row-arrow.prev { inset-inline-start: 2px; }
.dm-row-wrap:has(> .dm-circles) .dm-row-arrow.next { inset-inline-end: 2px; }
@media (min-width: 960px) { .dm-row-wrap:has(> .dm-circles) .dm-row-arrow.prev { inset-inline-start: -14px; } .dm-row-wrap:has(> .dm-circles) .dm-row-arrow.next { inset-inline-end: -14px; } }
.dm-navrow > .dm-row-wrap { flex: 1; min-width: 0; }
.dm-row-wrap:has(> .dm-tabs) .dm-row-arrow { top: calc(50% - 15px); width: 30px; height: 30px; }
.dm-row-wrap:has(> .dm-tabs) .dm-row-arrow svg { width: 14px; height: 14px; }
.dm-row-wrap:has(> .dm-tabs) .dm-row-arrow.prev { inset-inline-start: 6px; }
.dm-row-wrap:has(> .dm-tabs) .dm-row-arrow.next { inset-inline-end: 0; }

/* ── List on phones: the + (or ♡) sits on the photo's corner instead of a column of its own, so the name and description keep
   their room; large photos are a little smaller on narrow phones; a name longer than its line wraps rather than running
   into the price. ── */
.dm-items[data-dishes="list"] .dm-item > summary:has(> img.ph) > :is(.dm-add, .dm-pick) { position: absolute; inset-inline-end: -6px;
    top: calc(var(--p-gap) + var(--p-thumb) - 26px); width: 32px; height: 32px; }
.dm-items[data-dishes="list"] .dm-item > summary:has(> img.ph) > .dm-pick { background-color: var(--p-surface); box-shadow: 0 2px 6px rgba(0,0,0,.12); }
.dm-items[data-dishes="list"] .dm-item .tx b { overflow-wrap: anywhere; }
@media (max-width: 419px) { .dm[data-photo="lg"] { --p-thumb: 96px; } .dm[data-photo="md"] { --p-thumb: 76px; } }

/* ── The "Popular" strip. Up to three dishes share the width inside the page's sides, nothing to scroll. More scroll like the
   section buttons: the row runs to the screen's edge (the cut card shows there is more) and each card stops 16px in. ── */
.dm-popular .dm-popular-row { scroll-padding-inline: 16px; scroll-snap-type: x mandatory; }
.dm-popular .dm-popular-card { align-items: stretch; }
.dm-popular .dm-popular-row:not(:has(> :nth-child(4))) { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; }
.dm-popular .dm-popular-row:not(:has(> :nth-child(4))) .dm-popular-card img, .dm-popular .dm-popular-row:not(:has(> :nth-child(4))) .dm-popular-card.no-photo::before { width: 100%; height: auto; aspect-ratio: 1 / 1; }
@media (min-width: 960px) { .dm-popular .dm-popular-row { scroll-padding-inline: 0; } }.dm-popular-card b { overflow-wrap: anywhere; }
/* Cards in the row are equally tall and every price sits at the foot, so prices line up across the row. */
.dm-popular .dm-popular-row { align-items: stretch; }
.dm-popular .dm-popular-card .pr { margin-top: auto; padding-top: 2px; }
.dm-popular .dm-popular-card:is(:hover, :focus-visible) span { text-decoration: none; }
