/* Fourteen - public QR allergen menu (fast, mobile-first, high contrast) */
:root { --vc: #1D2321; --vi: #fff; --ink: #1D2321; --ink-2: #3D4542; --muted: #5A635F; --bg: #F2F5F3; --paper: #FFFFFF; --line: rgba(29,35,33,.13);
  --tomato-ink: #B3361D; --tomato-50: #FDE9E3; --saffron: #F4B740; --saffron-ink: #7A5100; --saffron-50: #FDF2D8; --ok: #22633C; --ok-50: #E6F2E9; --ok-line: #A8D2B4;
  --serif: "DM Serif Display", Georgia, serif; --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --sk-surface: #fff; --sk-text: var(--ink); --sk-line: var(--line); --sk-accent: var(--vc); --sk-radius: 12px;
  --focus: var(--ink); }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; font-size: 17px; }
html.big { font-size: 21px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--ink); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.mh { --focus: var(--vi, #fff); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 10px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
[hidden] { display: none !important; }
.mh { background: var(--vc); color: var(--vi); padding: calc(18px + env(safe-area-inset-top)) 16px 26px; }
.mh-inner { max-width: 760px; margin: 0 auto; display: flex; gap: 14px; align-items: center; }
.mh-logo { width: 56px; height: 56px; border-radius: 14px; object-fit: contain; background: #fff; padding: 4px; flex: none; }
.mh-text { flex: 1; min-width: 0; }
.mh-kicker { margin: 0 0 2px; font: 700 .72rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.mh h1 { margin: 0; font: 400 1.9rem/1.05 var(--serif); letter-spacing: -.01em; overflow-wrap: anywhere; }
.mh-addr { margin: 4px 0 0; font-size: .86rem; opacity: .85; }
.text-size { flex: none; width: 48px; height: 48px; border-radius: 14px; border: 1.5px solid color-mix(in srgb, var(--vi) 45%, transparent); background: transparent; color: var(--vi); font: 700 15px/1 var(--sans); cursor: pointer; }
.text-size b { font-size: 21px; }
.text-size[aria-pressed="true"] { background: var(--vi); color: var(--vc); }
.mwrap { max-width: 760px; margin: -14px auto 0; padding: 0 12px 40px; position: relative; }
.demo-note { background: var(--saffron-50); border: 1px solid #F0D48E; border-radius: 14px; padding: 12px 14px; font-size: .9rem; margin: 0 0 10px; position: relative; z-index: 1; }
.ask { display: flex; gap: 12px; align-items: flex-start; background: var(--paper); border: 2px solid var(--ink); border-radius: 18px; padding: 14px 16px; box-shadow: 0 12px 30px -18px rgba(0,0,0,.4); position: relative; z-index: 1; }
.ask strong { display: block; font-size: 1.02rem; line-height: 1.35; }
.ask > div > span { display: block; font-size: .9rem; color: var(--ink-2); margin-top: 4px; }
.ask-icon { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; }
.ask-icon svg { width: 20px; height: 20px; }
.menu-tabs { display: flex; gap: 6px; overflow-x: auto; margin: 16px 0 0; padding-bottom: 2px; }
.menu-tabs a { flex: none; padding: 9px 14px; border-radius: 999px; background: var(--paper); border: 1.5px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 700; font-size: .9rem; }
.menu-tabs a[aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.avoid { margin: 16px 0 10px; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 14px; box-shadow: 0 10px 24px -20px rgba(0,0,0,.5); }
.avoid fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.avoid legend { font-weight: 800; font-size: .95rem; margin-bottom: 10px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.fchip { position: relative; }
.fchip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.fchip label { display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px 3px 3px; min-height: 40px; border-radius: 999px; border: 1.5px solid rgba(29,35,33,.25); background: #fff; font: 700 .86rem/1.1 var(--sans); cursor: pointer; user-select: none; }
.fchip input:checked + label { background: var(--ink); border-color: var(--ink); color: #fff; }
.fchip input:checked + label .ai { background: #fff; }
.fchip input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 2px; }
.ai { --tint: #eee; display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--tint); box-shadow: inset 0 0 0 1.5px var(--hue, transparent); color: var(--ink); flex: none; }
.ai svg { width: 64%; height: 64%; }
.ai-sm { width: 30px; height: 30px; }
.avoid-row { display: flex; align-items: center; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.switch { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: .9rem; cursor: pointer; position: relative; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .sw { width: 44px; height: 26px; border-radius: 99px; background: rgba(29,35,33,.22); position: relative; transition: background .2s; flex: none; }
.switch .sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .2s; }
.switch input:checked + .sw { background: var(--ink); }
.switch input:checked + .sw::after { transform: translateX(18px); }
.switch input:focus-visible + .sw { outline: 3px solid var(--focus); outline-offset: 2px; }
.link { background: none; border: 0; padding: 4px; font: 700 .9rem var(--sans); color: var(--ink); text-decoration: underline; cursor: pointer; margin-left: auto; }
.btn-update { padding: 10px 16px; border-radius: 999px; border: 0; background: var(--ink); color: #fff; font: 700 .9rem var(--sans); }
.status { margin: 10px 0 0; font-size: .86rem; color: var(--ink-2); min-height: 0; }
.status:empty { display: none; }
.msec { margin-top: 22px; }
.msec h2 { font: 400 1.45rem/1.15 var(--serif); margin: 0 6px 10px; }
.dish { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; margin-bottom: 10px; transition: opacity .25s, border-color .25s; }
.dish-top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.dish h3 { margin: 0; font-size: 1.08rem; line-height: 1.3; }
.price { font-weight: 700; white-space: nowrap; }
.desc { margin: 4px 0 0; color: var(--ink-2); font-size: .92rem; }
.tags { margin: 8px 0 0; display: flex; gap: 6px; }
.diet { font: 700 .75rem/1 var(--sans); padding: 5px 9px; border-radius: 99px; background: var(--ok-50); color: var(--ok); }
.verdict { margin: 10px 0 0; font: 700 .9rem/1.3 var(--sans); padding: 8px 10px; border-radius: 10px; display: none; }
.dish.is-bad { border-color: #F2B5A6; }
.dish.is-bad .verdict { display: block; background: var(--tomato-50); color: var(--tomato-ink); }
.dish.is-bad .verdict::before { content: "\2715  "; }
.dish.is-may { border-color: #F0D48E; }
.dish.is-may .verdict { display: block; background: var(--saffron-50); color: var(--saffron-ink); }
.dish.is-may .verdict::before { content: "!  "; }
.dish.is-ok { border-color: var(--ok-line); }
.dish.is-ok .verdict { display: block; background: var(--ok-50); color: var(--ok); }
/* OK opens with a pip - a tiny plate rimmed in OK green - never a tick (the tick is Lettick's in the group) */
.dish.is-ok .verdict::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 3.5px var(--ok); vertical-align: -1px; margin-right: 8px; }
.dish.is-bad .dish-top, .dish.is-bad .desc { opacity: .75; }
.alg { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 10px; }
.alg-label { width: 100%; font: 800 .7rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }
.achip { --tint: #eee; display: inline-flex; align-items: center; gap: 6px; padding: 2px 11px 2px 2px; border-radius: 999px; background: var(--tint); font: 700 .84rem/1.2 var(--sans); }
.achip .ai { background: rgba(255,255,255,.7); }
.achip-may { background: #fff; box-shadow: inset 0 0 0 1.5px rgba(29,35,33,.35); }
.achip-may .ai { background: var(--tint); }
.alg-none { font: 700 .86rem var(--sans); color: var(--ok); background: var(--ok-50); border-radius: 99px; padding: 5px 11px; }
.alg-unknown { font: 700 .86rem var(--sans); color: var(--saffron-ink); background: var(--saffron-50); border-radius: 10px; padding: 7px 10px; }
/* a dish with no allergen information shows ONE message: the filter verdict when filtering, otherwise this note */
.dish.is-unknown.is-bad .alg { display: none; }
.adapt { margin: 10px 0 0; font-size: .9rem; }
.more { margin-top: 10px; font-size: .9rem; color: var(--ink-2); }
.more summary { cursor: pointer; font-weight: 700; color: var(--ink); }
.more p { margin: 6px 0 0; }
.none-shown { text-align: center; padding: 20px; color: var(--ink-2); }
.empty-menu { background: var(--paper); border-radius: 18px; padding: 20px; margin-top: 16px; text-align: center; }
.mfoot { margin-top: 28px; padding: 18px 6px 0; border-top: 1px solid var(--line); font-size: .86rem; color: var(--ink-2); }
.mfoot .key { display: flex; gap: 8px; margin-bottom: 12px; }
.powered { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: .82rem; padding: 6px 12px 6px 6px; border-radius: 99px; background: var(--paper); border: 1px solid var(--line); }
.powered img { width: 22px; height: 22px; }
.sk-demo-banner { font-size: 12px; }
@media (min-width: 700px) { .mh { padding-top: 28px; padding-bottom: 34px; } .mh h1 { font-size: 2.4rem; } .mwrap { padding: 0 16px 60px; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media print { .avoid, .text-size, .powered, .skip, .sk-demo-banner { display: none !important; } body { background: #fff; } .dish { break-inside: avoid; } }
