/* Modlocus Menu · guest menu. Ported as is from ModulerMenu menu.css (8 themes).
   Color and font variables live in menu-tokens.css (loaded first).
   The live CSP forbids inline styles: no style="" on the page; the look is picked via <html> attributes (data-theme/palette/mode). */

/* ModulerMenu · public menu
   One markup, three themes: [data-theme="classic|modern|chef"]. Mobile first; sidebar layout from 1024px. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0; background: var(--bg); color: var(--text);
    font: 400 1rem/1.5 var(--font-body); -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Theme variables */
[data-theme="classic"] { --head: var(--font-display); --head-w: 400; --r: 10px; --r-lg: 16px; --head-track: -.01em; }
[data-theme="modern"]  { --head: var(--font-body);    --head-w: 700; --r: 18px; --r-lg: 26px; --head-track: -.03em; }
[data-theme="chef"]    { --head: var(--font-display); --head-w: 400; --r: 14px; --r-lg: 22px; --head-track: 0; }

.app { min-height: 100vh; }
.wrap { width: 100%; max-width: 44rem; margin-inline: auto; padding-inline: 1.1rem; }

/* Top bar */
.top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: max(.9rem, env(safe-area-inset-top)) .4rem; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; min-width: 0; }
.brand-logo { height: 2.2rem; width: auto; max-width: min(11rem, 52vw); object-fit: contain; border-radius: 6px; }
.brand-eyebrow { font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.brand-name { font: var(--head-w) 1.05rem/1.1 var(--head); letter-spacing: var(--head-track); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tools { display: flex; gap: .4rem; }
.icon-btn {
    display: grid; place-items: center; width: 2.4rem; height: 2.4rem; padding: 0;
    border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--muted); cursor: pointer;
    transition: color .2s, border-color .2s, transform .2s var(--ease);
}
.icon-btn:hover { color: var(--text); border-color: var(--accent); }
.icon-btn:active { transform: scale(.94); }
.icon-btn svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ico-sun { display: none; }
[data-mode="dark"] .ico-sun { display: block; }
[data-mode="dark"] .ico-moon { display: none; }

/* Intro */
.intro { padding-block: 1.4rem 1.1rem; }
.intro h1 { margin: 0; font: var(--head-w) clamp(2.3rem, 9vw, 3.4rem)/1 var(--head); letter-spacing: var(--head-track); text-wrap: balance; }
.intro .tagline { margin: .55rem 0 0; color: var(--muted); max-width: 36ch; }
.search { display: flex; align-items: center; gap: .6rem; margin-top: 1.2rem; padding: 0 1rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); transition: border-color .2s, box-shadow .2s; }
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.search svg { width: 1.05rem; height: 1.05rem; flex: none; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; }
.search input { flex: 1; min-width: 0; min-height: 2.9rem; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 16px; outline: none; }
.search input::placeholder { color: var(--muted); opacity: .8; }
.search-clear { border: 0; background: none; color: var(--muted); cursor: pointer; padding: .3rem; font-size: 1.1rem; line-height: 1; }

.tagfilter { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .8rem; }
.tagfilter button {
    padding: .3rem .75rem; border: 1px solid var(--line); border-radius: 999px; background: none;
    font-size: .8rem; font-weight: 500; color: var(--muted); cursor: pointer; transition: all .2s;
}
.tagfilter button[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--bg); }

/* Category strip (mobile: horizontal chips) */
.cats { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); border-block: 1px solid var(--line); }
.cats { margin-inline: -1.1rem; padding-inline: 0; }
.cats-inner { display: flex; gap: .45rem; overflow-x: auto; scrollbar-width: none; padding: .65rem 1.1rem; scroll-padding-inline: 1.1rem; overscroll-behavior-x: contain; }
/* Scrollable strips: soft fade at the edge instead of a half chip (JS adds .fade-l / .fade-r) */
.cats-inner, .cats-tags { --fade: 1.6rem; --fl: 0px; --fr: 0px; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--fl), #000 calc(100% - var(--fr)), transparent 100%); mask-image: linear-gradient(to right, transparent 0, #000 var(--fl), #000 calc(100% - var(--fr)), transparent 100%); }
.cats-inner.fade-l, .cats-tags.fade-l { --fl: var(--fade); }
.cats-inner.fade-r, .cats-tags.fade-r { --fr: var(--fade); }
.cats-inner::-webkit-scrollbar { display: none; }
.cats a {
    flex: none; padding: .45rem .95rem; border: 1px solid var(--line); border-radius: 999px;
    font-size: .88rem; font-weight: 600; text-decoration: none; color: var(--muted); background: var(--surface);
    transition: none; /* fix167: no cross-fade, mid-transition frames made the label unreadable on the gold pill */
}
.cats a .n { margin-left: .3rem; font-weight: 500; opacity: .6; font-size: .8em; }
.cats a.is-current .n { opacity: .85; }
.cats a.is-current, [data-theme] .cats a.is-current { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

/* Sections */
.layout { }
.cat { padding-top: 2rem; scroll-margin-top: 4.2rem; }
.cat-cover { position: relative; height: 9.5rem; border-radius: var(--r-lg); overflow: hidden; background: var(--surface-2); margin-bottom: 1rem; }
.cat-cover img { width: 100%; height: 100%; object-fit: cover; }
.cat-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, hsl(var(--h) 40% 6% / .72), transparent 70%); }
.cat-cover h2 { position: absolute; left: 1rem; bottom: .8rem; z-index: 1; margin: 0; color: #fff; font: var(--head-w) 1.8rem/1.05 var(--head); letter-spacing: var(--head-track); }
.cat-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding-bottom: .6rem; border-bottom: 1px solid var(--line); margin-bottom: .2rem; }
.cat-head h2 { margin: 0; font: var(--head-w) 1.8rem/1.05 var(--head); letter-spacing: var(--head-track); }
.cat-head .count { color: var(--muted); font-size: .82rem; }
.cat.has-cover .cat-head { display: none; }

.items { list-style: none; margin: 0; padding: 0; }
.item[hidden] { display: none; }
.item-btn { display: flex; width: 100%; gap: 1rem; align-items: flex-start; padding: 1rem 0; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; cursor: pointer; }
.item:last-child .item-btn { border-bottom: 0; }
.item-body { flex: 1; min-width: 0; }
.item-line { display: flex; justify-content: space-between; align-items: baseline; gap: .8rem; }
.item-name { font-weight: 600; line-height: 1.3; }
.item-price { flex: none; font: 400 1.12rem var(--font-display); color: var(--accent); white-space: nowrap; }
.item-desc { margin: .25rem 0 0; color: var(--muted); font-size: .88rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item-tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .5rem; }
.chip { padding: .12rem .55rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: .72rem; font-weight: 600; }
.thumb { flex: none; width: 5.4rem; height: 5.4rem; border-radius: var(--r); overflow: hidden; background: var(--surface-2); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-empty { display: grid; place-items: center; width: 100%; height: 100%; background: var(--accent-soft); color: var(--accent); font: 400 1.8rem var(--font-display); }
.empty { padding: 3rem 0; text-align: center; color: var(--muted); }

/* Footer */
.foot { display: grid; gap: .3rem; justify-items: center; text-align: center; padding-block: 2.4rem calc(2.6rem + env(safe-area-inset-bottom)); margin-top: 1.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
.foot p { margin: 0; }
.foot a { color: var(--text); }
.foot .credit { margin-top: 1.1rem; font-size: .74rem; opacity: .6; letter-spacing: .02em; }
.foot .foot-address { display: flex; align-items: flex-start; gap: .4rem; justify-content: center; }
.foot .foot-icon { width: 1rem; height: 1rem; flex: none; margin-top: .12rem; }
.foot .foot-actions { display: flex; gap: .7rem; justify-content: center; margin-top: .5rem; }
.foot .foot-action { display: inline-flex; align-items: center; justify-content: center; width: 2.6rem; height: 2.6rem; border: 1px solid var(--line); border-radius: 50%; color: var(--text); text-decoration: none; }
.foot .foot-action:hover, .foot .foot-action:focus-visible { border-color: currentColor; }
.foot .foot-action .icon { width: 1.15rem; height: 1.15rem; }
.foot .credit a { color: inherit; text-decoration: none; font-weight: 600; }
.foot .credit a:hover { text-decoration: underline; }

/* Product detail sheet (opens from the bottom) */
.sheet { width: min(32rem, 100vw); max-height: 92vh; margin: auto auto 0; padding: 0; border: 0; border-radius: 22px 22px 0 0; background: var(--bg); color: var(--text); overflow: auto; box-shadow: var(--shadow); }
.sheet::backdrop { background: var(--scrim); backdrop-filter: blur(3px); }
.sheet[open] { animation: sheet-in .35s var(--ease); }
@keyframes sheet-in { from { transform: translateY(40px); opacity: 0; } }
.sheet-media { position: relative; aspect-ratio: 4/3; background: var(--surface-2); }
.sheet-media img { width: 100%; height: 100%; object-fit: cover; }
.sheet-close { position: absolute; top: .75rem; right: .75rem; background: color-mix(in srgb, var(--bg) 85%, transparent); }
.sheet-body { padding: 1.2rem 1.3rem 1.8rem; }
.sheet-body h3 { margin: 0; font: var(--head-w) 1.7rem/1.1 var(--head); letter-spacing: var(--head-track); }
.sheet-price { margin: .4rem 0 0; font: 400 1.5rem var(--font-display); color: var(--accent); }
.sheet-desc { margin: .8rem 0 0; color: var(--muted); }
.sheet-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; }

/* Theme: Classic. List rows, serif headings. */
[data-theme="classic"] .item-name { font-size: 1.02rem; }

/* Theme: Modern. Two-column cards. */
[data-theme="modern"] .items { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin-top: .9rem; }
[data-theme="modern"] .item-btn { flex-direction: column; gap: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; height: 100%; box-shadow: var(--shadow); transition: transform .3s var(--ease); }
[data-theme="modern"] .item-btn:active { transform: scale(.985); }
[data-theme="modern"] .item:last-child .item-btn { border-bottom: 1px solid var(--line); }
[data-theme="modern"] .thumb { width: 100%; height: auto; aspect-ratio: 1; border-radius: 0; }
[data-theme="modern"] .item-body { padding: .8rem .9rem 1rem; width: 100%; }
[data-theme="modern"] .item-line { flex-direction: column; gap: .15rem; }
[data-theme="modern"] .item-name { font-size: .95rem; }
[data-theme="modern"] .item-price { font: 700 .98rem var(--font-body); }
[data-theme="modern"] .item-desc { font-size: .8rem; -webkit-line-clamp: 2; }
[data-theme="modern"] .cat-head h2 { font-size: 1.6rem; }
[data-theme="modern"] .cat-head { border-bottom: 0; padding-bottom: 0; }

/* Theme: Dark Chef. Cards with large images. */
[data-theme="chef"] .items { display: grid; gap: 1rem; margin-top: 1rem; }
[data-theme="chef"] .item-btn { position: relative; flex-direction: column; gap: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
[data-theme="chef"] .item:last-child .item-btn { border-bottom: 1px solid var(--line); }
[data-theme="chef"] .thumb { width: 100%; height: auto; aspect-ratio: 16/9; border-radius: 0; }
[data-theme="chef"] .item-body { padding: 1rem 1.1rem 1.2rem; width: 100%; }
[data-theme="chef"] .item-name { font: 400 1.3rem/1.15 var(--font-display); }
[data-theme="chef"] .item-price { font-size: 1.25rem; }
[data-theme="chef"] .item-desc { -webkit-line-clamp: 3; }
[data-theme="chef"] .cat-head h2, [data-theme="chef"] .intro h1 { text-transform: none; }
[data-theme="chef"] .cats a:not(.is-current) { background: transparent; }
[data-theme="chef"] .cats a.is-current { box-shadow: 0 0 0 4px var(--accent-soft); }

/* Wide screen (desktop / landscape tablet) */
@media (min-width: 1024px) {
    .wrap { max-width: 78rem; padding-inline: 2.5rem; }
    .top { padding-block: 1.4rem .6rem; }
    .brand-logo { height: 2.8rem; }
    .brand-name { font-size: 1.25rem; }
    .intro { padding-block: 2.2rem 1.6rem; display: grid; grid-template-columns: 1fr minmax(18rem, 26rem); gap: 1rem 3rem; align-items: end; }
    .intro .tagline { font-size: 1.1rem; }
    .intro-tools { display: block; }
    .search { margin-top: 0; }

    .layout { display: grid; grid-template-columns: 15rem 1fr; gap: 3rem; align-items: start; }
    .cats { position: sticky; top: 1.2rem; z-index: 1; background: none; backdrop-filter: none; border: 0; margin-inline: 0; padding-inline: 0; }
    .cats-inner { flex-direction: column; overflow: visible; gap: .15rem; padding: 0; -webkit-mask-image: none; mask-image: none; }
    .cats a { padding: .6rem .9rem; border: 0; border-radius: var(--r); background: none; font-size: .95rem; display: flex; justify-content: space-between; }
    .cats a:hover { background: var(--surface-2); color: var(--text); }
    .cats a.is-current { background: var(--accent-soft); color: var(--accent); }
    .cats a .n { margin: 0; }
    .cat { padding-top: 0; padding-bottom: 2.4rem; scroll-margin-top: 1rem; }
    .cat-cover { height: 10rem; }
    .cat-head h2, .cat-cover h2 { font-size: 2.1rem; }

    [data-theme="classic"] .items { display: grid; grid-template-columns: 1fr 1fr; column-gap: 2.5rem; }
    [data-theme="modern"] .items { grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
    [data-theme="chef"] .items { grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
    .thumb { width: 6rem; height: 6rem; }
    [data-theme="modern"] .thumb { width: 100%; height: auto; aspect-ratio: 4/3; }
    [data-theme="chef"] .thumb { width: 100%; height: auto; }

    .sheet { margin: auto; border-radius: 22px; width: 36rem; }
}
@media (max-width: 1023px) { .intro-tools { display: block; } }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Tag filter: sticky together with the category strip */
.cats-tags { display: flex; gap: .4rem; overflow-x: auto; scrollbar-width: none; padding: 0 1.1rem .65rem; scroll-padding-inline: 1.1rem; overscroll-behavior-x: contain; align-items: center; }
.cats-tags::-webkit-scrollbar { display: none; }
.cats-tags-label { flex: none; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-right: .2rem; }
.cats-tags button { flex: none; padding: .28rem .7rem; border: 1px solid var(--line); border-radius: 999px; background: none; font: inherit; font-size: .8rem; font-weight: 500; color: var(--muted); cursor: pointer; transition: all .2s; }
.cats-tags button[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--bg); }
@media (min-width: 1024px) {
    .cats-tags { flex-wrap: wrap; overflow: visible; margin-top: 1.4rem; padding: 1.1rem .9rem 0; border-top: 1px solid var(--line); -webkit-mask-image: none; mask-image: none; }
    .cats-tags-label { width: 100%; margin-bottom: .2rem; }
}

/* Language button (multi-language module) */
.lang-switch { display: inline-flex; align-items: center; gap: .1rem; padding: .18rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.lang-switch a { padding: .28rem .6rem; border-radius: 999px; font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-decoration: none; color: var(--muted); }
.lang-switch a:hover { color: var(--text); }
.lang-switch a.is-active { background: var(--accent); color: var(--on-accent); }
.tools { align-items: center; }

/* Back to site (optional: Menu:BackUrl) */
.back-link { display: inline-flex; align-items: center; padding: 0 .9rem; height: 2.4rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted); font-size: .8rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.back-link::before { content: "\2190"; margin-right: .4rem; }
.back-link:hover { color: var(--text); border-color: var(--accent); }

/* More themes: bistro, grid, tiles, editorial, sans.
   Same markup, CSS only. Each theme sets its own --head/--r variables (the menu board uses them too). */
[data-theme="bistro"]    { --head: var(--font-display); --head-w: 400; --r: 6px;  --r-lg: 10px; --head-track: .01em; }
[data-theme="grid"]      { --head: var(--font-body);    --head-w: 700; --r: 12px; --r-lg: 16px; --head-track: -.02em; }
[data-theme="tiles"]     { --head: var(--font-display); --head-w: 400; --r: 14px; --r-lg: 22px; --head-track: 0; }
[data-theme="editorial"] { --head: var(--font-display); --head-w: 400; --r: 2px;  --r-lg: 4px;  --head-track: -.02em; }
[data-theme="sans"]      { --font-body: "Poppins", "Onest", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; --head: var(--font-body); --head-w: 700; --r: 16px; --r-lg: 22px; --head-track: -.02em; }

/* Bistro: no photos, printed menu look (dotted price leader) */
@media (max-width: 1023px) { [data-theme="bistro"] .intro { text-align: center; } [data-theme="bistro"] .intro .tagline { margin-inline: auto; } }
[data-theme="bistro"] .intro h1 { font-size: clamp(2.1rem, 8vw, 3rem); }
[data-theme="bistro"] .intro .tagline { font-style: italic; }
[data-theme="bistro"] .cat { padding-top: 2.2rem; }
/* Categories with covers also become text headings (no photo), with thin lines on both sides */
[data-theme="bistro"] .cat-cover { display: flex; align-items: center; justify-content: center; gap: 1rem; height: auto; margin-bottom: .2rem; border-radius: 0; overflow: visible; background: none; }
[data-theme="bistro"] .cat-cover img { display: none; }
[data-theme="bistro"] .cat-cover h2 { position: static; color: var(--text); }
[data-theme="bistro"] .cat-head { align-items: center; justify-content: center; gap: 1rem; border: 0; padding-bottom: .5rem; }
[data-theme="bistro"] .cat-head::before, [data-theme="bistro"] .cat-head::after,
[data-theme="bistro"] .cat-cover::before, [data-theme="bistro"] .cat-cover::after { content: ""; position: static; inset: auto; flex: 1; height: 1px; background: var(--line); }
[data-theme="bistro"] .cat-head h2, [data-theme="bistro"] .cat-cover h2 { font-size: 1.15rem; letter-spacing: .16em; text-transform: uppercase; text-align: center; }
[data-theme="bistro"] .thumb { display: none; }
[data-theme="bistro"] .item-btn { padding: .8rem 0; border-bottom: 0; }
[data-theme="bistro"] .item-line { gap: .5rem; }
[data-theme="bistro"] .item-name { order: 0; flex: 0 1 auto; font-size: 1.02rem; }
[data-theme="bistro"] .item-line::after { content: ""; order: 1; flex: 1 1 1rem; min-width: 1rem; border-bottom: 2px dotted color-mix(in srgb, var(--muted) 50%, transparent); transform: translateY(-.3em); }
[data-theme="bistro"] .item-price { order: 2; font: 600 1.02rem var(--font-body); color: var(--text); }
[data-theme="bistro"] .item-desc { font-style: italic; font-size: .86rem; max-width: 92%; }
[data-theme="bistro"] .chip { background: none; border: 1px solid var(--line); color: var(--muted); }

/* Grid: compact, dense cards (fast food, dessert shops, long menus) */
[data-theme="grid"] .items { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-top: .8rem; }
[data-theme="grid"] .item-btn { flex-direction: column; gap: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; height: 100%; transition: transform .25s var(--ease), border-color .2s; }
[data-theme="grid"] .item-btn:active { transform: scale(.985); }
[data-theme="grid"] .item:last-child .item-btn { border-bottom: 1px solid var(--line); }
[data-theme="grid"] .thumb { width: 100%; height: auto; aspect-ratio: 4/3; border-radius: 0; }
[data-theme="grid"] .item-body { width: 100%; padding: .55rem .7rem .75rem; }
[data-theme="grid"] .item-line { flex-direction: column; gap: .12rem; }
[data-theme="grid"] .item-name { font-size: .88rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
[data-theme="grid"] .item-price { font: 700 .95rem var(--font-body); }
[data-theme="grid"] .item-desc { font-size: .76rem; -webkit-line-clamp: 1; margin-top: .15rem; }
[data-theme="grid"] .item-tags { display: none; }
[data-theme="grid"] .cat-head { border-bottom: 0; padding-bottom: 0; }
[data-theme="grid"] .cat-head h2, [data-theme="grid"] .cat-cover h2 { font-size: 1.5rem; }
[data-theme="grid"] .cat-cover { height: 7rem; }
@media (min-width: 600px) and (max-width: 1023px) { [data-theme="grid"] .items { grid-template-columns: repeat(3, 1fr); } }

/* Tiles: category cards first, then products */
.cat-tiles { display: none; }
[data-theme="tiles"] .cat-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; padding-top: 1.2rem; }
[data-theme="tiles"] #board.is-filtering .cat-tiles { display: none; }
.cat-tile { position: relative; display: flex; flex-direction: column; justify-content: flex-end; aspect-ratio: 4/3; padding: .85rem .95rem; border-radius: var(--r-lg); overflow: hidden; isolation: isolate; text-decoration: none; color: #fff; background: linear-gradient(135deg, var(--accent-soft), var(--surface-2)); box-shadow: var(--shadow); }
.cat-tile:last-child:nth-child(odd) { grid-column: 1 / -1; aspect-ratio: 2/1; }
.cat-tile img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.cat-tile:hover img { transform: scale(1.04); }
.cat-tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, hsl(var(--h) 40% 6% / .78), transparent 62%); }
.cat-tile-letter { position: absolute; top: .5rem; right: .9rem; z-index: -1; font: 400 4.2rem/1 var(--font-display); color: var(--accent); opacity: .35; }
.cat-tile-name { font: var(--head-w) 1.3rem/1.05 var(--head); letter-spacing: var(--head-track); text-shadow: 0 1px 12px #0006; }
.cat-tile-count { margin-top: .2rem; font-size: .74rem; opacity: .85; }
.cat-tile:not(:has(img)) { color: var(--text); }
.cat-tile:not(:has(img))::after { display: none; }
.cat-tile:not(:has(img)) .cat-tile-name { text-shadow: none; }
[data-theme="tiles"] .cat { padding-top: 2.4rem; }
[data-theme="tiles"] .cat-head h2, [data-theme="tiles"] .cat-cover h2 { font-size: 1.9rem; }

/* Editorial: magazine page; numbered sections, large headings */
[data-theme="editorial"] #board { counter-reset: cat; }
[data-theme="editorial"] .cat { counter-increment: cat; padding-top: 3rem; }
[data-theme="editorial"] .intro h1 { font-size: clamp(2.7rem, 12vw, 4.4rem); line-height: .95; }
[data-theme="editorial"] .intro .tagline { font-size: 1.05rem; font-style: italic; }
[data-theme="editorial"] .cat-cover { height: 11rem; border-radius: 0; margin-bottom: 1.2rem; }
[data-theme="editorial"] .cat-head { display: block; border-bottom: 1px solid var(--text); padding-bottom: .7rem; margin-bottom: .4rem; }
[data-theme="editorial"] .cat-head h2, [data-theme="editorial"] .cat-cover h2 { font-size: clamp(2.1rem, 9vw, 3.1rem); line-height: .95; }
[data-theme="editorial"] .cat-head h2::before, [data-theme="editorial"] .cat-cover h2::before { content: counter(cat, decimal-leading-zero); display: block; margin-bottom: .55rem; font: 600 .7rem/1 var(--font-body); letter-spacing: .22em; color: var(--accent); }
[data-theme="editorial"] .cat-cover h2::before { color: #fff; opacity: .85; }
[data-theme="editorial"] .item-btn { flex-direction: row-reverse; gap: 1.1rem; padding: 1.35rem 0; }
[data-theme="editorial"] .thumb { width: 6.2rem; height: 7.6rem; border-radius: var(--r); }
[data-theme="editorial"] .item-line { flex-direction: column; gap: .3rem; }
[data-theme="editorial"] .item-name { font: 400 1.32rem/1.12 var(--font-display); letter-spacing: -.01em; }
[data-theme="editorial"] .item-price { order: 2; font: 600 .86rem var(--font-body); letter-spacing: .08em; color: var(--accent); }
[data-theme="editorial"] .item-desc { margin-top: .5rem; font-size: .9rem; -webkit-line-clamp: 3; }
[data-theme="editorial"] .chip { padding: 0; background: none; font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
[data-theme="editorial"] .item-tags { gap: .8rem; }
[data-theme="editorial"] .cats a { border-radius: 2px; }

/* Sans ("Vivid", Poppins): app-like rounded cards */
[data-theme="sans"] body { font-size: .94rem; }
[data-theme="sans"] .intro h1 { font-size: clamp(2rem, 8.5vw, 3rem); line-height: 1.05; font-weight: 700; }
[data-theme="sans"] .items { display: grid; gap: .7rem; margin-top: .9rem; }
[data-theme="sans"] .item-btn { align-items: center; gap: .85rem; padding: .7rem; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow); transition: transform .25s var(--ease); }
[data-theme="sans"] .item-btn:active { transform: scale(.985); }
[data-theme="sans"] .item:last-child .item-btn { border-bottom: 1px solid var(--line); }
[data-theme="sans"] .thumb { width: 5.2rem; height: 5.2rem; border-radius: 16px; }
[data-theme="sans"] .thumb-empty, [data-theme="sans"] .sheet-price { font-family: var(--font-body); font-weight: 600; }
[data-theme="sans"] .item-line { align-items: flex-start; gap: .6rem; }
[data-theme="sans"] .item-name { font-size: .95rem; font-weight: 600; }
[data-theme="sans"] .item-price { font: 600 .8rem var(--font-body); padding: .22rem .65rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
[data-theme="sans"] .item-desc { font-size: .8rem; }
[data-theme="sans"] .cat-head { border-bottom: 0; padding-bottom: 0; }
[data-theme="sans"] .cat-head h2 { font-size: 1.4rem; }
[data-theme="sans"] .cat-head h2::after { content: ""; display: inline-block; width: .42rem; height: .42rem; margin-left: .45rem; border-radius: 50%; background: var(--accent); vertical-align: .05em; }
[data-theme="sans"] .cat-cover h2 { font-size: 1.5rem; }
[data-theme="sans"] .cats a { font-weight: 500; }

/* More themes: wide screen */
@media (min-width: 1024px) {
    [data-theme="bistro"] .items { display: grid; grid-template-columns: 1fr 1fr; column-gap: 3.5rem; }
    [data-theme="grid"] .items { grid-template-columns: repeat(4, 1fr); gap: .8rem; }
    [data-theme="tiles"] .cat-tiles { grid-template-columns: repeat(3, 1fr); }
    [data-theme="tiles"] .cat-tile:last-child:nth-child(odd) { grid-column: auto; aspect-ratio: 4/3; }
    [data-theme="tiles"] .items { display: grid; grid-template-columns: 1fr 1fr; column-gap: 2.5rem; }
    [data-theme="editorial"] .items { display: grid; grid-template-columns: 1fr 1fr; column-gap: 3rem; }
    [data-theme="editorial"] .cat-cover { height: 13rem; }
    [data-theme="sans"] .items { grid-template-columns: 1fr 1fr; gap: .9rem; }
}

/* Size / portion options and badges */
.item-badges, .sheet-badges { display: flex; flex-wrap: wrap; gap: .3rem; margin: 0 0 .3rem; }
.sheet-badges { margin: .5rem 0 0; }
/* Badges: lowercase pill with a soft fill. Featured = light accent tint, New = solid accent, Sold out = neutral gray. */
.badge { display: inline-flex; align-items: center; gap: .35em; padding: .2rem .65rem; border-radius: 999px; font: 600 .72rem/1.3 var(--font-body); letter-spacing: .01em; white-space: nowrap; }
.badge.b-new { background: var(--accent); color: var(--on-accent, var(--bg)); }
.badge.b-featured { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }
.badge.b-featured::before { content: "★"; font-size: .85em; line-height: 1; }
.badge.b-soldout { background: color-mix(in srgb, var(--text) 12%, transparent); color: var(--text); }
.item-opts { display: flex; flex-wrap: wrap; gap: .3rem .4rem; margin-top: .45rem; }
.item-opts .opt { display: inline-flex; align-items: baseline; gap: .35rem; padding: .1rem .55rem; border: 1px solid var(--line); border-radius: 999px; font-size: .76rem; color: var(--muted); white-space: nowrap; }
.item-opts .opt-p { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.item.is-soldout .thumb, .item.is-soldout .item-line, .item.is-soldout .item-desc, .item.is-soldout .item-opts, .item.is-soldout .item-tags, .item.is-soldout .item-info { opacity: .5; }
.item.is-soldout .thumb img { filter: grayscale(1); }
.item.is-soldout .item-price, .item.is-soldout .opt-p { text-decoration: line-through; }
.sheet-opts { list-style: none; margin: .9rem 0 0; padding: 0; display: grid; gap: .1rem; }
.sheet-opts li { display: flex; align-items: baseline; gap: .6rem; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.sheet-opts li::after { content: none; }
.sheet-opts span { flex: 1; font-weight: 500; }
.sheet-opts b { font: 400 1.2rem var(--font-display); color: var(--accent); white-space: nowrap; }
[data-theme="sans"] .sheet-opts b { font-family: var(--font-body); font-weight: 600; font-size: 1rem; }
/* Compact grid cards are small: the price range in the title is enough; details open in the sheet on tap */
[data-theme="grid"] .item-opts { display: none; }
[data-theme="modern"] .item-opts .opt, [data-theme="chef"] .item-opts .opt { font-size: .72rem; }
[data-theme="bistro"] .item-opts .opt { border: 0; padding: 0; font-style: italic; }
[data-theme="bistro"] .item-opts .opt:not(:last-child)::after { content: "·"; margin-left: .2rem; color: var(--muted); }
[data-theme="editorial"] .item-opts .opt { border: 0; padding: 0; font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; }
[data-theme="editorial"] .item-opts .opt:not(:last-child)::after { content: "/"; margin-left: .35rem; opacity: .5; }
[data-theme="grid"] .badge { font-size: .64rem; padding: .1rem .5rem; }

/* Allergens, ingredients and nutrition */
/* Card content: tags and info row always at the card bottom, so cards are equal height and lines align */
.items > .item { display: flex; }
.items > .item[hidden] { display: none; }
.items > .item > .item-btn { flex: 1 1 auto; min-width: 0; }
.item-body { display: flex; flex-direction: column; }
.item-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .6rem; margin-top: 0; padding-top: .5rem; min-height: 1.9rem; box-sizing: content-box; }
.item-meta .item-tags { margin-top: 0; }
.item-meta .item-info { margin-top: 0; }
.item-info { display: block; font-size: .76rem; color: var(--muted); line-height: 1.4; }
.item-info .dot { margin: 0 .25em; opacity: .6; }
.item-info b { font-weight: 700; color: var(--text); opacity: .8; }
.item-info .kcal { white-space: nowrap; }
.sheet-info { margin-top: 1rem; display: grid; gap: .85rem; }
.sheet-info[hidden], .sheet-info > [hidden] { display: none; }
.sheet-info h4 { margin: 0 0 .35rem; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.sheet-info p { margin: 0; color: var(--text); font-size: .92rem; }
.allergen-chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.allergen-chips .achip { padding: .15rem .6rem; border-radius: 999px; border: 1px solid var(--accent); color: var(--accent); font-size: .76rem; font-weight: 700; }
.allergen-chips .achip.warn { border-color: var(--line); color: var(--text); background: var(--line); background: color-mix(in srgb, var(--text) 7%, transparent); }
.nutri-table { display: grid; gap: .5rem; }
.nutri-row { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: .5rem; }
.nutri-row div { min-width: 0; padding: .55rem .3rem .5rem; border: 1px solid var(--line); border-radius: 10px; text-align: center; }
.nutri-row b { display: block; font-size: 1.02rem; line-height: 1.2; white-space: nowrap; }
.nutri-row span { display: block; margin-top: .15rem; font-size: .62rem; line-height: 1.2; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; overflow-wrap: anywhere; }
.allergen-note { margin: 1.2rem 0 0; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 12px; font-size: .84rem; color: var(--muted); }

/* Card themes: body height follows content; row themes: as tall as the image */
/* Bordered card themes: badge/kcal row sits at the card bottom; list themes: flows right under the text (no gap in the middle) */
[data-theme="modern"] .item-meta, [data-theme="grid"] .item-meta, [data-theme="chef"] .item-meta { margin-top: auto; }
[data-theme="modern"] .item-body, [data-theme="grid"] .item-body, [data-theme="chef"] .item-body { flex: 1; }

/* Card themes hide size/price options on the card (price range is in the title, details in the sheet) so cards stay equal height */
[data-theme="modern"] .item-opts, [data-theme="grid"] .item-opts, [data-theme="chef"] .item-opts { display: none; }

/* Allergen status line (detail sheet): "Contains no allergens" / "ask for details" */
.al-state { margin: 0; font-size: .86rem; color: var(--muted); }
.al-state[hidden] { display: none; }
.al-state.free { display: inline-block; justify-self: start; padding: .2rem .7rem; border: 1px solid var(--line); border-radius: 999px; color: var(--text); font-weight: 700; font-size: .78rem; }


/* Modlocus Menu additions (not in ModulerMenu) */
/* With mode "auto" <html> has no data-mode: the visitor's device setting applies (same values as the dark block above). */
@media (prefers-color-scheme: dark) {
    html:not([data-mode]) {
        color-scheme: dark;
        --bg: hsl(var(--h) calc(var(--s) * .75) 7.5%);
        --surface: hsl(var(--h) calc(var(--s) * .75) 11.5%);
        --surface-2: hsl(var(--h) calc(var(--s) * .75) 16%);
        --text: hsl(var(--h) 26% 93%);
        --muted: hsl(var(--h) 12% 68%);
        --line: hsl(var(--h) 26% 92% / .14);
        --accent: hsl(var(--ah) calc(var(--as) * 1.1) var(--ad, 66%));
        --accent-soft: hsl(var(--ah) var(--as) var(--ad, 66%) / .14);
        --on-accent: hsl(var(--h) 40% 8%);
        --ok: #86c796;
        --shadow: 0 1px 2px #0006, 0 12px 28px -14px #000a;
        --scrim: hsl(var(--h) 30% 4% / .7);
    }
    html:not([data-mode]) .ico-sun { display: block; }
    html:not([data-mode]) .ico-moon { display: none; }
}
/* Table number from the QR card */
.table-chip { padding: .1rem .6rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: .78rem; font-weight: 700; white-space: nowrap; }

/* Language button and list (4+ languages): globe icon and current language; tapping opens a bottom list */
.lang-button { display: inline-flex; align-items: center; gap: .4rem; height: 2.4rem; padding: 0 .85rem 0 .7rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text); font: inherit; font-size: .74rem; font-weight: 700; letter-spacing: .05em; cursor: pointer; transition: border-color .2s; }
.lang-button svg { width: 1.05rem; height: 1.05rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; color: var(--muted); }
.lang-button:hover { border-color: var(--accent); }
.lang-sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.2rem .3rem 1.4rem; }
.lang-sheet-head h3 { margin: 0; font: var(--head-w) 1.3rem/1.1 var(--head); letter-spacing: var(--head-track); }
.lang-list { list-style: none; margin: 0; padding: .3rem .7rem 1.3rem; display: grid; gap: .1rem; }
.lang-list a { display: flex; align-items: center; gap: .8rem; min-height: 3rem; padding: .5rem .8rem; border-radius: 12px; text-decoration: none; color: var(--text); font-weight: 500; }
.lang-list a:hover { background: var(--surface-2); }
.lang-list .lang-code { margin-left: auto; font-size: .72rem; font-weight: 700; letter-spacing: .06em; color: var(--muted); }
.lang-list .lang-check { width: 1.1rem; height: 1.1rem; flex: none; fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.lang-list a.is-active { font-weight: 700; background: var(--surface-2); }
.lang-list a.is-active .lang-check { opacity: 1; }
@media (min-width: 1024px) { .lang-sheet { width: 24rem; } }


/* Extra option groups (product detail) */
.sheet-groups { margin: 1rem 0 0; display: grid; gap: 1rem; }
.sheet-groups h4 { margin: 0 0 .15rem; font: 600 .78rem var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); display: flex; flex-wrap: wrap; gap: .25rem .6rem; align-items: baseline; }
.sheet-groups .grp-note { font-weight: 400; letter-spacing: 0; text-transform: none; opacity: .85; }
.sheet-groups ul { list-style: none; margin: 0; padding: 0; }
.sheet-groups li { display: flex; align-items: baseline; gap: .6rem; padding: .4rem 0; border-bottom: 1px solid var(--line); }
.sheet-groups li::after { content: none; }
.sheet-groups li span { flex: 1; font-weight: 500; }
.sheet-groups li b { font: 600 .95rem var(--font-body); color: var(--accent); white-space: nowrap; }

/* Phone first screen and detail sheet (shared by all menu templates) */
body:has(dialog.sheet[open]) { overflow: hidden; }
.sheet { overscroll-behavior: contain; }
/* Product image is full width at 4:3: square demo drawings lose only empty background, the whole drawing stays visible; the sheet itself scrolls. */
.sheet-media { aspect-ratio: 4 / 3; width: 100%; height: auto; }
@media (max-width: 599px) {
    .top { padding-block: max(.9rem, env(safe-area-inset-top)) .3rem; }
    .intro { padding-block: .6rem .7rem; }
    .intro h1 { font-size: clamp(1.9rem, 8vw, 2.4rem); }
    .cat-cover { height: 7.5rem; margin-bottom: .6rem; }
    .intro .tagline { margin-top: .3rem; font-size: .92rem; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
}

/* Second logo for dark backgrounds: marked only when the business uploaded one (brand-logo-light/-dark). */
.brand-logo-dark { display: none; }
[data-mode="dark"] .brand-logo-light { display: none; }
[data-mode="dark"] .brand-logo-dark { display: block; }
@media (prefers-color-scheme: dark) {
    html:not([data-mode]) .brand-logo-light { display: none; }
    html:not([data-mode]) .brand-logo-dark { display: block; }
}
/* Hide the scrollbar at phone width (real phones overlay it anyway; it also looks clean in the marketing page phone frame). */
@media (max-width: 599px) { html { scrollbar-width: none; } html::-webkit-scrollbar { display: none; } }
.sheet-close { z-index: 2; }

/* Extra option groups: after the description; groups without prices are side-by-side pills, priced groups are rows; unpriced rows show a faded "Included". */
.sheet-groups { margin-top: 1.1rem; gap: 1.3rem; }
.sheet-groups .chips ul { display: flex; flex-wrap: wrap; gap: .4rem; padding-top: .35rem; }
.sheet-groups .chips li { border: 1px solid var(--line); border-radius: 999px; padding: .3rem .85rem; }
.sheet-groups .chips li span { flex: none; }
.sheet-groups .chips li b { display: none; }
.sheet-groups li b.inc { color: var(--muted); font-weight: 500; font-size: .85rem; }

/* Menu temporarily closed (paused by the owner): centered logo/name, title and a short message */
.paused { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 2rem 0; }
.paused-logo { display: block; width: 4rem; height: 4rem; margin: 0 auto 1.2rem; border-radius: 50%; object-fit: cover;
    box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 12%, transparent), 0 12px 36px color-mix(in srgb, var(--accent) 22%, transparent); }
/* Same look as the menu board notice: spaced capitals with thin accent lines on both sides, then the title and a short line */
.paused-eyebrow { display: flex; align-items: center; justify-content: center; gap: .7rem; margin: 0 0 .9rem; color: var(--muted); font-size: .74rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.paused-eyebrow::before, .paused-eyebrow::after { content: ""; width: 22px; height: 1px; flex: none; background: var(--accent); opacity: .7; }
.paused h1 { margin: 0; max-width: 16ch; font-family: var(--font-display); font-weight: 400; font-size: clamp(1.9rem, 8vw, 2.6rem); line-height: 1.1; color: var(--text); text-wrap: balance; }
.paused p { margin: 0; color: var(--muted); }
.paused h1 + p { margin-top: .8rem; max-width: 30ch; line-height: 1.5; text-wrap: balance; }

/* Branch label: only in a multi-branch business (see BranchLabel), under the business name. */
/* Branch name: small spaced capitals above the title with a thin accent line (same style as the printed menu and QR card). */
.branch-eyebrow { display: flex; align-items: center; gap: .65rem; margin: 0 0 .55rem; color: var(--muted); font-size: .74rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.branch-eyebrow::before { content: ""; width: 22px; height: 1px; flex: none; background: var(--accent); }

/* Extra sold out at this branch: faded, struck-through name, "Sold out" instead of the price */
.sheet-groups li.is-out { opacity: .5; }
.sheet-groups li.is-out > span:first-child { text-decoration: line-through; text-decoration-thickness: 1px; }
.sheet-groups li.is-out b.out { font-weight: 500; font-size: .85em; }

.sheet-groups li.is-out b.out { color: var(--muted); }
.sheet-groups .chips li.is-out b.out { display: inline; margin-left: .35rem; font-size: .8rem; }

/* Open / closed line (under the logo): a calm pill; color from the status */
.open-status { display: inline-flex; align-items: center; gap: .45rem; margin: .75rem 0 0; padding: .35rem .8rem; border-radius: 999px;
    font: 500 .82rem var(--font-body); background: color-mix(in srgb, var(--text, currentColor) 7%, transparent); color: var(--muted); }
.open-status i { width: .45rem; height: .45rem; border-radius: 50%; background: #3f9a66; flex: none; }
.open-status b { font-weight: 600; color: var(--text); }
.open-status.is-closessoon { background: color-mix(in srgb, #d8a12a 16%, transparent); color: #b07d12; }
.open-status.is-closessoon i { background: #d8a12a; }
.open-status.is-closessoon b { color: inherit; }
.open-status.is-closed { background: color-mix(in srgb, #d0644b 14%, transparent); color: #b5513a; }
.open-status.is-closed i { background: #d0644b; }
.open-status.is-closed b { color: inherit; }
[data-mode="dark"] .open-status.is-closessoon { color: #f0c768; }
[data-mode="dark"] .open-status.is-closed { color: #f1a28f; }
/* B: products dimmed while closed, plus a short note */
.closed-note { margin: 0 0 1rem; padding: .7rem .9rem; border-radius: 12px; background: color-mix(in srgb, #d0644b 12%, transparent); color: #b5513a; font: 400 .88rem/1.4 var(--font-body); }
[data-mode="dark"] .closed-note { color: #f1b3a3; }
#board.is-closed-dim .items .item { opacity: .45; }


/* Announcement bar: at the very top in the menu accent color, always ONE line ("..." if it does not fit). The bar is a button:
   tapping opens all announcements in full in #ann-sheet. With several, "+N ›" on the right. × stays fixed on the right. No horizontal scroll. */
.ann-band { position: relative; display: flex; justify-content: center; background: var(--accent); color: var(--on-accent, var(--bg)); }
.ann-band[hidden] { display: none; }
.ann-open { display: flex; align-items: center; gap: .55rem; min-width: 0; max-width: min(100%, 72rem); min-height: 2.5rem; padding: .45rem 3rem .45rem 1rem; border: 0; background: transparent; color: inherit; font: 600 .86rem/1.35 var(--font-body); text-align: left; cursor: pointer; }
.ann-ico { flex: none; width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ann-items { min-width: 0; flex: 0 1 auto; }
.ann-item { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ann-item[hidden] { display: none; }
.ann-item.is-in { animation: ann-in .45s ease; }
@keyframes ann-in { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }
.ann-more { flex: none; display: inline-flex; align-items: center; gap: 1px; font-size: .74rem; font-weight: 700; opacity: .85; }
.ann-more svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ann-open:hover .ann-more { opacity: 1; }
.ann-open:focus-visible { outline: 2px solid currentColor; outline-offset: -4px; border-radius: 6px; }
.ann-close { position: absolute; right: .45rem; top: 50%; transform: translateY(-50%); display: inline-grid; place-items: center; width: 2rem; height: 2rem; padding: 0; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; opacity: .8; }
.ann-close:hover { opacity: 1; background: color-mix(in srgb, currentColor 14%, transparent); }
.ann-close svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
@media (max-width: 640px) { .ann-open { padding-left: .9rem; font-size: .82rem; } }

/* Announcements sheet: same pattern as the menu language sheet. At most about 70% of the screen; the rest scrolls inside, the title stays fixed. */
.ann-sheet { max-height: 70vh; display: none; flex-direction: column; overflow: hidden; }
.ann-sheet[open] { display: flex; }
.ann-sheet-head { flex: none; display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.2rem .3rem 1.4rem; }
.ann-sheet-head h3 { margin: 0; font: var(--head-w) 1.3rem/1.1 var(--head); letter-spacing: var(--head-track); }
.ann-sheet-count { font: 600 .9rem var(--font-body); color: var(--muted); }
.ann-list { list-style: none; margin: 0; padding: .2rem 1.4rem 1.4rem; overflow-y: auto; overscroll-behavior: contain; }
.ann-list li { padding: .85rem 0; border-top: 1px solid var(--line); }
.ann-list li:first-child { border-top: 0; }
.ann-list li[hidden] { display: none; }
.ann-list p { margin: 0; font: 500 .95rem/1.45 var(--font-body); color: var(--text); overflow-wrap: anywhere; }
.ann-list small { display: block; margin-top: .3rem; font-size: .76rem; color: var(--muted); }
@media (min-width: 1024px) { .ann-sheet { width: 26rem; } }
.badge.b-offer { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }
.old-price { margin-right: .4em; font-weight: 400; opacity: .6; text-decoration: line-through; }

/* Offers band: one chip per live campaign at the top of the product column. "See items" filters the menu to what it covers. */
.camp-band { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0 0 1rem; }
.camp-chip { display: flex; align-items: center; gap: .65rem; flex: 1 1 15rem; min-width: 0; padding: .6rem .75rem; border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line)); border-radius: 14px; background: color-mix(in srgb, var(--accent) 8%, transparent); }
.camp-badge { flex: none; font-size: .8rem; }
.camp-text { display: grid; min-width: 0; flex: 1; }
.camp-text b { font: 600 .92rem/1.3 var(--font-body); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.camp-text small { font-size: .74rem; color: var(--muted); }
.camp-see { flex: none; padding: .32rem .8rem; border: 1px solid var(--accent); border-radius: 999px; background: none; color: var(--accent); font: 600 .8rem var(--font-body); cursor: pointer; transition: all .2s; }
.camp-see[aria-pressed="true"] { background: var(--accent); color: var(--bg); }

/* Logo on a dark menu without a separate version: "Light badge" puts the normal logo on a soft light tile. */
/* The badge keeps the same outer height as the plain logo (border-box), so the header does not jump when the mode changes. */
[data-mode="dark"] .brand-logo-badge { background: #f4f1ea; border-radius: 8px; box-shadow: 0 0 0 .2rem #f4f1ea; }
@media (prefers-color-scheme: dark) { html:not([data-mode]) .brand-logo-badge { background: #f4f1ea; border-radius: 8px; box-shadow: 0 0 0 .2rem #f4f1ea; } }

/* fix168: 7+ footer icons - on phones the first 5 stay and a "+N" button opens the full list */
.foot .foot-more { background: none; font: inherit; font-size: .85rem; font-weight: 700; cursor: pointer; display: none; }
.links-list a .icon { width: 1.25rem; height: 1.25rem; flex: none; }
@media (max-width: 520px) {
    .foot .foot-actions--many { gap: .55rem; }
    .foot .foot-actions--many .foot-action:nth-child(n+6):not(.foot-more) { display: none; }
    .foot .foot-actions--many .foot-more { display: inline-flex; }
}
