/* /order "paper" skin: visual only. Loads after the page's own <style> and after /paper.css.
   Same markup + same scripts as /order; nothing here changes behaviour.
   Brief: flat matte paper sheets, layered cast shadows (one light, from the left), torn-edge headers, signpost flags for labels,
   dish rows as paper cut-outs. Calm: no 3D, boil, parallax or pop on buttons, inputs, cart or prices. Motion only on decorative bits.
   Colours: theme.css tokens only (green, gold, paper, ink; chili as tiny accents). */

/* Tokens. Colours come from theme.css (light, dark, or System): nothing is pinned here.
   Only the paper-specific bits live here: the table colour and the shadows. Every shadow follows the one light:
   right and down, a hard contact edge plus a soft cast. */
:root{
  /* text now also sits on the kraft table and on tinted flags, so the light greys go a step darker (>= 4.5:1 on every ground, measured) */
  --muted:#58625D; --muted-strong:#555F5A;
  --kraft:#E6DABD;   /* the table one step deeper than paper.css, so white cards lift (1.39:1) and butter flags separate. Not darker: muted text would fail */
  /* colour pass (Dec 2026): named roles so light and dark can differ. Light keeps the bottle-green buttons */
  --action:#0F4A30; --on-action:#FAF6EE; --on-action-icon:var(--gold-light); --action-press:#0B3A25;
  --flag-bg:#F3DFA6; --flag-ink:#1F2A24;               /* butter label flags, ink 12:1 */
  --cat-a:#0F4A30; --on-cat-a:#FAF6EE; --cat-a-sub:#C9D6CD; --cat-a-point:var(--gold-light);
  --cat-b:#EBCF86; --cat-c:#DCE6D4;                    /* honey, sage: ink text on both */
  --cat-ink:#1F2A24; --cat-sub:#3C463F;
  --open-dot:#0F4A30;
  --chip-on-shadow:inset 0 -3px 0 var(--gold);
  --shadow-1:2px 3px 0 rgba(31,42,36,.14),6px 8px 14px rgba(31,42,36,.12);
  --shadow-2:2px 3px 0 rgba(31,42,36,.18),12px 16px 26px rgba(31,42,36,.22);
  --shadow-green:2px 3px 0 rgba(15,74,48,.3),8px 10px 16px rgba(15,74,48,.25);
  --paper-cut:polygon(0 3px,3px 0,calc(100% - 5px) 0,100% 4px,100% calc(100% - 3px),calc(100% - 4px) 100%,5px 100%,0 calc(100% - 5px));
  --cast-s:drop-shadow(2px 3px 0 rgba(31,42,36,.16));
}
/* Night paper: a deep bottle-green table, pine sheets, jade cards, honey buttons. Same layout. Values are repeated in BOTH dark blocks. */
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]){
    /* three clearly separate green layers: bottle table < pine strip/sheets < jade cards (card vs table 1.75:1, was 1.13) */
    --kraft:#12281E; --paper:#1B3D2D; --surface:#245240; --paper-2:#2F6048;
    --muted:#C3D0C6; --muted-strong:#C3D0C6;            /* 5.6:1 on card, 7.5 on strip, 4.6 on paper-2 */
    --green-tint:#2F6048; --gold-tint:#3F5A35;
    --hairline:rgba(231,203,126,.28); --hairline-strong:rgba(231,203,126,.55); --leader:rgba(250,246,238,.38);
    --action:#E7CB7E; --on-action:#1F2A24; --on-action-icon:#1F2A24; --action-press:#D4B565;   /* honey buttons, ink label 9.4:1 */
    --flag-bg:#E7CB7E; --flag-ink:#1F2A24;
    --cat-a:#E7CB7E; --on-cat-a:#1F2A24; --cat-a-sub:#3C463F; --cat-a-point:var(--chili);
    --cat-b:#BFE0C8; --cat-c:#EFE6D0;
    --open-dot:#8FD9A8;                                  /* mint, 7.2:1 on the strip */
    --chip-on-shadow:none;
    /* shadows: deep green-black, never pure black */
    --shadow-1:2px 3px 0 rgba(4,14,9,.55),6px 8px 14px rgba(4,14,9,.3);
    --shadow-2:2px 3px 0 rgba(4,14,9,.55),12px 16px 26px rgba(4,14,9,.4);
    --shadow-green:2px 3px 0 rgba(4,14,9,.5),8px 10px 16px rgba(4,14,9,.3);
    --cast-1:drop-shadow(2px 3px 0 rgba(4,14,9,.55)) drop-shadow(6px 7px 10px rgba(4,14,9,.3));
    --cast-2:drop-shadow(2px 3px 0 rgba(4,14,9,.55)) drop-shadow(14px 18px 22px rgba(4,14,9,.4));
    --cast-s:drop-shadow(2px 3px 0 rgba(4,14,9,.5));
  }
}
:root[data-theme="dark"]{
  /* three clearly separate green layers: bottle table < pine strip/sheets < jade cards (card vs table 1.75:1, was 1.13) */
  --kraft:#12281E; --paper:#1B3D2D; --surface:#245240; --paper-2:#2F6048;
  --muted:#C3D0C6; --muted-strong:#C3D0C6;            /* 5.6:1 on card, 7.5 on strip, 4.6 on paper-2 */
  --green-tint:#2F6048; --gold-tint:#3F5A35;
  --hairline:rgba(231,203,126,.28); --hairline-strong:rgba(231,203,126,.55); --leader:rgba(250,246,238,.38);
  --action:#E7CB7E; --on-action:#1F2A24; --on-action-icon:#1F2A24; --action-press:#D4B565;   /* honey buttons, ink label 9.4:1 */
  --flag-bg:#E7CB7E; --flag-ink:#1F2A24;
  --cat-a:#E7CB7E; --on-cat-a:#1F2A24; --cat-a-sub:#3C463F; --cat-a-point:var(--chili);
  --cat-b:#BFE0C8; --cat-c:#EFE6D0;
  --open-dot:#8FD9A8;                                  /* mint, 7.2:1 on the strip */
  --chip-on-shadow:none;
  /* shadows: deep green-black, never pure black */
  --shadow-1:2px 3px 0 rgba(4,14,9,.55),6px 8px 14px rgba(4,14,9,.3);
  --shadow-2:2px 3px 0 rgba(4,14,9,.55),12px 16px 26px rgba(4,14,9,.4);
  --shadow-green:2px 3px 0 rgba(4,14,9,.5),8px 10px 16px rgba(4,14,9,.3);
  --cast-1:drop-shadow(2px 3px 0 rgba(4,14,9,.55)) drop-shadow(6px 7px 10px rgba(4,14,9,.3));
  --cast-2:drop-shadow(2px 3px 0 rgba(4,14,9,.55)) drop-shadow(14px 18px 22px rgba(4,14,9,.4));
  --cast-s:drop-shadow(2px 3px 0 rgba(4,14,9,.5));
}

/* ---------- the table ---------- */
html{background:var(--kraft)}
body{background:var(--kraft);color:var(--ink)}
body::before{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;background:var(--fibre);opacity:.05;mix-blend-mode:multiply}
/* ---------- menu bar: a paper strip; its torn lower edge lies over the category strip ---------- */
.mhead{background:transparent;border-bottom:0;filter:var(--cast-1);isolation:isolate;padding-bottom:10px}
.mhead::before{content:"";position:absolute;inset:0;z-index:-2;background:var(--paper);
  -webkit-mask:linear-gradient(#000,#000) top/100% calc(100% - 11px) no-repeat,var(--torn-b) bottom/100% 12px no-repeat;
  mask:linear-gradient(#000,#000) top/100% calc(100% - 11px) no-repeat,var(--torn-b) bottom/100% 12px no-repeat}
.mhead::after{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:var(--fibre);opacity:.07;mix-blend-mode:multiply;
  -webkit-mask:linear-gradient(#000,#000) top/100% calc(100% - 11px) no-repeat,var(--torn-b) bottom/100% 12px no-repeat;
  mask:linear-gradient(#000,#000) top/100% calc(100% - 11px) no-repeat,var(--torn-b) bottom/100% 12px no-repeat}
.mhead .sbar{background:transparent}
.lead .badge{border-radius:6px}
/* the Pickup/Delivery underline is a control: it does not slide. It is drawn on the selected tab itself, so it can never be left
   behind (the old sliding bar went stale after a language switch and pushed the page 34px wide in Chinese) */
.utabs .bar{display:none}
.utabs button[aria-selected="true"]::after{content:"";position:absolute;left:8px;right:8px;bottom:0;height:3px;border-radius:3px 3px 0 0;background:var(--selected)}
.sbox input{border-radius:6px;background:var(--surface)}
.status.mstatus{color:var(--ink)}

/* phones: the category chips are a second, deeper-toned strip tucked under the menu bar */
.rail{background:var(--paper-2);border-bottom:0;filter:var(--cast-1);
  top:calc(var(--mhead,105px) - 10px);margin-top:-10px;padding:20px var(--gutter) 12px}
.chip{border-radius:4px;border:1px solid var(--hairline-strong);background:var(--surface);filter:var(--cast-s);transition:none}
.chip[aria-current="true"]{background:var(--gold-tint);border-color:var(--gold);box-shadow:inset 0 -3px 0 var(--gold)}
.allcats{border-radius:0 4px 4px 0;box-shadow:6px 0 0 var(--paper-2),12px 0 10px -4px var(--paper-2);transition:none}

/* ---------- section titles + category headers: paper signposts ---------- */
.section .h2{color:var(--ink);font-weight:600;letter-spacing:.02em}
.catnote{color:var(--ink)}
.secnote{background:var(--paper);color:var(--ink);box-shadow:var(--shadow-1);border-radius:3px}
.cat{content-visibility:visible;margin-top:22px}   /* paint containment would clip the cast shadows */
.cat > header{display:flex;flex-wrap:wrap;justify-content:flex-start;align-items:center;gap:10px;padding:0 0 14px;border-bottom:0;filter:var(--cast-1)}
.cat h3{position:relative;isolation:isolate;min-width:0;max-width:100%;margin:0;padding:8px 34px 8px 32px;color:var(--ink);background:var(--paper);
  clip-path:polygon(0 0,100% 0,calc(100% - 14px) 50%,100% 100%,0 100%)}
.cat h3::before{content:"";position:absolute;left:13px;top:50%;width:9px;height:11px;margin-top:-5.5px;background:var(--chili);clip-path:polygon(0 0,100% 50%,0 100%)}
.cat h3::after{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:var(--fibre);opacity:.07;mix-blend-mode:multiply}
.cat h3 small{color:var(--muted-strong)}
.cat > header .flag{background:var(--gold-tint);box-shadow:inset 0 0 0 1px var(--gold);border-radius:3px;filter:none}
.extras{background:var(--paper);box-shadow:var(--shadow-1);border-radius:3px;margin-top:6px}
.extras li{background:var(--surface);border-radius:3px;box-shadow:inset 0 0 0 1px var(--hairline)}

/* ---------- dish rows: white paper cut-outs on the table, cast shadow on the wrapper ---------- */
.items{padding:2px 0 0}
.it.dish{isolation:isolate;align-items:stretch;min-height:0;padding:14px 14px 14px 16px;margin:0 0 14px;border-bottom:0;filter:var(--cast-1)}
.it::before,.it::after{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;clip-path:var(--paper-cut)}
.it::before{background:var(--surface)}
.it::after{background:var(--fibre);opacity:.06;mix-blend-mode:multiply}
.it:has(.pic img) .dish-open{padding-left:78px}
.dish .pic:has(img){left:14px;border-radius:3px}
.it.is-sold::before{background:var(--paper-2)}
.dish-open{border-radius:3px}
.js .it.reveal,.js .it.reveal.wait{opacity:1;transform:none;transition:none}   /* rows never fade or slide in */
.sold{border-radius:3px}
@media (min-width:900px){
  .items{column-gap:28px}
}

/* ---------- never animate controls: no scale on press, no sliding fills, no fly-to-cart ---------- */
.add i,.btn,.chipbtn,.cg,.step button,button,.seg label span,.allcats,.utabs button{transition:none}
button:active:not(:disabled),.btn:active,.chipbtn:active,.cg:active,.add:active i,.tab:active .ic{transform:none}
label.row::before{transition:none}
label.row:has(input:checked)::before{transition:none}
.freebar > i > i{transition:none}
.flyer{display:none!important}
.roll .was{display:none}
.roll .now{animation:none}
.cartpill,.cartpill *{animation:none!important;transition:none!important}

/* ---------- sheets (basket, dish, pay): a sheet of paper laid over the table ---------- */
/* decorative motion only: the sheet fades in and out, it does not slide or pop.
   app.js closes a sheet when the animation named "sheetOut" ends, so the closing animation keeps that name (here it is a fade). */
@keyframes sheetIn{from{opacity:0}to{opacity:1}}
@keyframes sheetOut{to{opacity:0}}
dialog.sheet[open]{animation:sheetIn var(--dur-fast) linear both}
dialog.sheet.closing{animation:sheetOut var(--dur-fast) linear both}
@media (min-width:900px){
  dialog.sheet[open]{animation:sheetIn var(--dur-fast) linear both}
  dialog.sheet.closing{animation:sheetOut var(--dur-fast) linear both}
}
dialog.sheet{border-radius:0;background:var(--paper);
  -webkit-mask:linear-gradient(#000,#000) bottom/100% calc(100% - 11px) no-repeat,var(--torn-t) top/100% 12px no-repeat;
  mask:linear-gradient(#000,#000) bottom/100% calc(100% - 11px) no-repeat,var(--torn-t) top/100% 12px no-repeat}
.sheet-in{padding-top:8px}
@media (min-width:900px){
  dialog.sheet{border-radius:3px;-webkit-mask:none;mask:none;box-shadow:none;filter:var(--cast-2)}
  .sheet-in{padding-top:0}
}
.sh-head{border-bottom:1px dashed var(--hairline-strong)}
.x{border-radius:50%;box-shadow:var(--shadow-1)}
.sh-foot{background:var(--surface);border-top:1px dashed var(--hairline-strong)}
.sh-hero{background:var(--paper-2)}
.sh-price{border-radius:3px;box-shadow:var(--shadow-1)}

/* step labels in the sheets: small paper signposts with a notched end and a chili point */
.sh-body legend,.where legend{position:relative;display:inline-block;width:auto;max-width:100%;margin-bottom:10px;padding:5px 24px 5px 24px;background:var(--gold-tint);color:var(--ink);
  clip-path:polygon(0 0,100% 0,calc(100% - 9px) 50%,100% 100%,0 100%)}
.sh-body legend::before,.where legend::before{content:"";position:absolute;left:9px;top:50%;width:7px;height:9px;margin-top:-4.5px;background:var(--chili);clip-path:polygon(0 0,100% 50%,0 100%)}
.where legend{float:none}
.opts > legend{width:auto}

/* choices, steppers, inputs: flat paper, no motion */
label.row{border-radius:4px;box-shadow:none;filter:var(--cast-s)}
.opts label.row{box-shadow:inset 0 0 0 1px var(--hairline-strong)}
.opts label.row:has(input:checked){box-shadow:none}
.seg label span{border-radius:4px}
.seg input:checked + span{box-shadow:inset 0 0 0 2px var(--accent-ink)}
.step{border-radius:6px;box-shadow:inset 0 0 0 1px var(--hairline-strong)}
.step button{border-radius:5px}
.who input,.where textarea,textarea,.sbox input{border-radius:4px}
.tline,.afterhours,.toofar,.free{border-radius:3px}
.notice{border-radius:3px}

/* buttons: solid green, clear labels */
.btn{border-radius:8px}
.btn-main{box-shadow:var(--shadow-green)}
.btn-main:disabled{box-shadow:none}
.btn-sec,.btn-line2,.chipbtn{border-radius:8px}

/* the receipt: torn top edge (flat paper, no scallop gradient), cast shadow on the wrapper */
.lines{border-radius:0 0 3px 3px;box-shadow:none;filter:var(--cast-1);background:var(--surface)}
.lines::before{height:12px;top:-11px;background:var(--surface);
  -webkit-mask:var(--torn-t) center/100% 12px no-repeat;mask:var(--torn-t) center/100% 12px no-repeat}
.tot{border-top:2px dashed var(--ink)}

/* the basket pill: one solid green label, no pop */
.cartpill{border-radius:8px;box-shadow:none;filter:var(--cast-1)}
.cartpill .n{border-radius:4px}

/* the address label in the basket + the other labels: signpost flags (same as step labels) */
.fld{position:relative;align-self:flex-start;max-width:100%;margin-bottom:2px;padding:5px 26px 5px 24px;background:var(--gold-tint);color:var(--ink);
  clip-path:polygon(0 0,100% 0,calc(100% - 9px) 50%,100% 100%,0 100%)}
.fld::before{content:"";position:absolute;left:9px;top:50%;width:7px;height:9px;margin-top:-4.5px;background:var(--chili);clip-path:polygon(0 0,100% 50%,0 100%)}
.fld small{margin-top:2px}
.where.bad{border-radius:3px}

/* dish sheet: the picture end is a torn strip laid over the sheet; the price is a paper tag with a chili edge */
.sh-hero{-webkit-mask:linear-gradient(#000,#000) top/100% calc(100% - 11px) no-repeat,var(--torn-b) bottom/100% 12px no-repeat;
  mask:linear-gradient(#000,#000) top/100% calc(100% - 11px) no-repeat,var(--torn-b) bottom/100% 12px no-repeat}
.sh-hero:not(:has(img))::before{content:"";position:absolute;inset:0;pointer-events:none;background:var(--fibre);opacity:.07;mix-blend-mode:multiply}
.sh-price{box-shadow:inset 4px 0 0 var(--chili),var(--shadow-1);padding-left:20px}
.sh-head .alt{color:var(--muted-strong)}

/* KHQR pay screen: the bank's own card (white, red head: it must scan) lies on the sheet; a paper strip carries the countdown */
.khqr{border-radius:4px;box-shadow:none;filter:var(--cast-2)}
.khqr-top::after{display:none}
.paywait{border-radius:3px;box-shadow:inset 4px 0 0 var(--gold),var(--shadow-1)}
.steps i{border-radius:4px}
.clock .left{transition:none}

/* paid ticket + sent screen: a paper ticket with a torn lower edge and punched side notches */
.sent:not(.pill){border-radius:0;box-shadow:none;filter:var(--cast-1);margin-bottom:12px;padding-bottom:26px}
.sent:not(.pill)::after{content:"";position:absolute;left:0;right:0;bottom:-11px;height:12px;background:var(--surface);
  -webkit-mask:var(--torn-b) center/100% 12px no-repeat;mask:var(--torn-b) center/100% 12px no-repeat}
.sent .ring{stroke:var(--accent-ink)}
.sent .bowl .bw{fill:var(--green)}
.sent .bowl .rim,.sent .bowl .ft{stroke:var(--accent-ink)}
.sent .num,.sent .msg,.sent .btn{animation:none}      /* number, message and button are always there */
.sent .msg::before,.sent .msg::after{background:var(--paper)}
.sent .tsent span{border-radius:3px}

/* table-QR stub: a green ticket stub, torn off at a perforation, with the table number on a gold coin */
[data-table] .tstub{border-radius:3px;box-shadow:var(--shadow-green)}
.tstub .coin{filter:var(--cast-s)}
.tstub .tt{align-self:stretch;justify-content:center;padding-left:14px;border-left:2px dashed var(--on-green-muted)}
.tstub::before,.tstub::after{background:var(--paper)}

/* views: Orders, Account, Appearance. Paper strip on top with a torn lower edge, cards are paper cut-outs, labels are flags */
.view:not(#view-menu) > .sbar{background:transparent;filter:var(--cast-1);isolation:isolate}
.view:not(#view-menu) > .sbar::before{content:"";position:absolute;left:0;right:0;top:0;bottom:-11px;z-index:-1;background:var(--paper);
  -webkit-mask:var(--torn-b) bottom/100% 12px no-repeat,linear-gradient(#000,#000) top/100% calc(100% - 11px) no-repeat;
  mask:var(--torn-b) bottom/100% 12px no-repeat,linear-gradient(#000,#000) top/100% calc(100% - 11px) no-repeat}
.view:not(#view-menu) > .sbar{margin-bottom:12px}
.vwrap > .label{position:relative;display:inline-block;margin:24px 0 10px 0;padding:5px 24px;background:var(--gold-tint);color:var(--ink);
  clip-path:polygon(0 0,100% 0,calc(100% - 9px) 50%,100% 100%,0 100%)}
.vwrap > .label::before{content:"";position:absolute;left:9px;top:50%;width:7px;height:9px;margin-top:-4.5px;background:var(--chili);clip-path:polygon(0 0,100% 50%,0 100%)}
.ocard,.txcard,.tile,.edit,.box{border-radius:3px}
.ocard,.txcard,.tile,.edit,.box{background-image:none}
.segc{border-radius:4px;box-shadow:inset 0 0 0 1px var(--hairline)}
.segc button{border-radius:3px;transition:none}
.segc button[aria-selected="true"]{box-shadow:var(--shadow-1)}
.pill{border-radius:0;padding:0 18px 0 10px;clip-path:polygon(0 0,100% 0,calc(100% - 7px) 50%,100% 100%,0 100%)}
.th,.th img,.tx .ico{border-radius:3px}
.tx .ico{border-radius:50%}
.ava{filter:var(--cast-s)}
.tile,.btn-green,.btn-plain,.reorder{transition:none}
.tile:active,.btn-green:active{transform:none}
.btn-green{border-radius:8px}
.edit input,.edit textarea{border-radius:4px}
.reorder{border-radius:4px}
.pv{border-radius:6px;transition:none}
.radio,.radio .ic{transition:none}
.radio .ic{transform:none}
.langlist button{transition:none}
.toast{border-radius:3px}
@media (min-width:900px){ .pv{border-radius:8px} }

/* desktop: the category rail is a column of paper tags on the table (no strip behind it) */
@media (min-width:900px){
  .rail{background:transparent;filter:none;margin-top:0;padding:20px 8px 12px 0;top:calc(var(--topnav-h) + var(--mhead,92px) + 8px)}
  .chip{border-left:1px solid var(--hairline-strong)}
  .chip[aria-current="true"]{border-left:1px solid var(--gold);padding-left:14px;box-shadow:inset 0 -3px 0 var(--gold)}
}

/* ================= colour pass (Dec 2026, Fable brief): colour only, same layout, no new motion ================= */
/* 2. every filled button: bottle green with cream in light, honey with ink at night (green on the night grounds was 1.3:1) */
.add i,.step button[data-q="1"],.step button[data-lq="1"],.btn-main:not(:disabled),.btn-main2,.cartpill,.tline .tnum,.steps li.done i,.btn-green,.sent .tsent span{
  background:var(--action);color:var(--on-action)}
.btn-main:not(:disabled) .tick-num,.cartpill b{color:var(--on-action)}
.btn-main:not(:disabled) svg,.btn-green .ic,.tline .tnum,.steps li.done i,.sent .tsent span{color:var(--on-action-icon)}
.btn-main:active:not(:disabled),.btn-main2:active,.btn-green:active,.add:active i{background:var(--action-press)}
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]) .add .cnt,:root:not([data-theme="light"]) .cartpill .n{background:#FAF6EE;box-shadow:0 0 0 2px var(--surface)}
}
:root[data-theme="dark"] .add .cnt,:root[data-theme="dark"] .cartpill .n{background:#FAF6EE;box-shadow:0 0 0 2px var(--surface)}

/* 3. "Open now" dot: green in light, mint at night. Closed (ring) and Closing soon (chili) keep their own rules below */
.status i,.status:not(.closed) i::after{background:var(--open-dot)}
.status.closed i{background:transparent}
.status.soon i,.status.soon i::after{background:var(--chili)}

/* 4. category signposts in colour, in rotation: green, honey, sage (night: honey, mint, cream). .cat are the only divs in a section */
.cat h3{background:var(--cat-a);color:var(--on-cat-a)}
.cat h3 small{color:var(--cat-a-sub)}
.cat h3::before{background:var(--cat-a-point)}
.cat:nth-of-type(3n+2) h3{background:var(--cat-b);color:var(--cat-ink)}
.cat:nth-of-type(3n) h3{background:var(--cat-c);color:var(--cat-ink)}
.cat:nth-of-type(3n+2) h3 small,.cat:nth-of-type(3n) h3 small{color:var(--cat-sub)}
.cat:nth-of-type(3n+2) h3::before,.cat:nth-of-type(3n) h3::before{background:var(--chili)}

/* 5. the selected category chip is a filled button, so it reads as "here" at a glance */
.chip[aria-current="true"]{background:var(--action);border-color:var(--action);box-shadow:var(--chip-on-shadow)}
.chip[aria-current="true"] span{color:var(--on-action)}
/* "All" is a butter tag (night: cream), so it is never a second filled chip beside the selected one */
.allcats{background:var(--flag-bg);color:var(--flag-ink);box-shadow:6px 0 0 var(--paper-2),12px 0 10px -4px var(--paper-2)}
.allcats:active{background:#E9D08C}
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]) .allcats{background:#EFE6D0;color:#1F2A24}
  :root:not([data-theme="light"]) .allcats:active{background:#DDD2B6}
}
:root[data-theme="dark"] .allcats{background:#EFE6D0;color:#1F2A24}
:root[data-theme="dark"] .allcats:active{background:#DDD2B6}
@media (min-width:900px){
  .chip[aria-current="true"]{border-left-color:var(--action)}
}

/* 6. label flags: butter (light) / honey (night) with ink, so they separate from the sheet */
.sh-body legend,.where legend,.fld,.vwrap > .label,.cat > header .flag{background:var(--flag-bg);color:var(--flag-ink)}
.fld small{color:var(--flag-ink)}
.cat > header .flag{box-shadow:none}
.cat > header .flag svg{color:var(--flag-ink)}

/* 7. the basket pill never peeks out from under an open sheet */
body:has(dialog.sheet[open]) .cartpill{visibility:hidden}

/* 9. unselected Delivery / Pickup read as buttons too; the selected one keeps its 2px frame */
.seg label span{box-shadow:inset 0 0 0 1px var(--hairline-strong)}
.seg input:checked + span{box-shadow:inset 0 0 0 2px var(--accent-ink)}

/* night: the green logo badge and table stub get a gold hairline so they don't melt into the pine strip */
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]) [data-table] .tstub{box-shadow:inset 0 0 0 1px var(--hairline-strong),var(--shadow-green)}
}
:root[data-theme="dark"] [data-table] .tstub{box-shadow:inset 0 0 0 1px var(--hairline-strong),var(--shadow-green)}

/* dish sheet photo (Dec 2026, Koko: "the pic got cut off"): show the whole photo, never crop it; a soft blurred copy fills the sides */
.sh-hero:has(img.fit){height:auto;min-height:200px;padding-bottom:10px;background:var(--paper-2)}
.sh-hero img.bg{position:absolute;inset:-12px;width:calc(100% + 24px);height:calc(100% + 24px);object-fit:cover;filter:blur(14px) saturate(.9);opacity:.55}
.sh-hero img.fit{position:relative;inset:auto;display:block;width:100%;height:auto;max-height:min(46vh,46dvh,440px);object-fit:contain}
.sh-body:empty{display:none}
