/* RankVivo · food-tag badges + ⓘ key. Shared by both photo menus.
   Uses each page's own palette vars, so it inherits the skin it lands on. */
.rv-allrg{display:flex;flex-wrap:nowrap;gap:5px;margin-top:7px;height:30px;
  overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.rv-allrg::-webkit-scrollbar{display:none}
.rv-allrg > *{flex:0 0 auto}
/* ⚠️ nowrap + a FIXED height, not min-height. Cards sit two-per-row on a phone,
   so a dish with five badges wrapped onto a second line and grew past the
   reserved 30px — that reflow measured 0.167 CLS on PageSpeed. One row that
   scrolls sideways is the same height for every dish, always, so the reserved
   box is always right. */
/* ⚠️ CLS: both of these heights are RESERVED in CSS and filled by JS later. Take
   the min-height away and the badges push the price down on every card, and the
   filter bar pushes the entire menu down — together that measured 0.346 CLS,
   well past Google's 0.25 "poor" line. */
.rv-filter{min-height:105px}
.rv-a{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;
  color:var(--ink-soft,#5B564D);background:rgba(156,133,88,.10);
  border:1px solid rgba(156,133,88,.28);border-radius:6px;padding:0}
.rv-a svg{width:19px;height:19px;display:block}
/* diets read as a positive, so they get the accent rather than the neutral chip */
.rv-d{color:#3E6B4A;background:rgba(62,107,74,.09);border-color:rgba(62,107,74,.26)}
.rv-ainfo{font:700 14px/1 Georgia,'Times New Roman',serif;font-style:italic;cursor:pointer;
  background:transparent;border-radius:50%}
.rv-ainfo:hover{color:var(--accent-d,#7d6a44);border-color:var(--accent,#9C8558)}
.rv-ainfo:focus-visible{outline:2px solid var(--accent,#9C8558);outline-offset:2px}

/* the key */
.rv-modal{position:fixed;inset:0;z-index:80;background:rgba(20,18,14,.42);
  display:none;align-items:flex-end;justify-content:center}
.rv-modal.open{display:flex}
.rv-sheet{width:100%;max-width:520px;max-height:92vh;overflow:auto;
  background:var(--paper,#FAF9F6);border-radius:16px 16px 0 0;
  padding:20px 18px calc(22px + env(safe-area-inset-bottom))}
.rv-sheet h2{font:600 18px/1.25 inherit;color:var(--ink,#26241F);margin:0 0 3px}
.rv-sheet .lead{font:400 13.5px/1.45 inherit;color:var(--ink-faint,#8C8578);margin-bottom:14px}
.rv-legend{display:grid;gap:2px;margin-top:6px}
.rv-leg{display:flex;align-items:center;gap:13px;padding:10px 2px;
  border-bottom:1px solid var(--hair,#E2DCD0)}
.rv-leg:last-child{border-bottom:0}
.rv-leg .ic{flex:0 0 28px;text-align:center;color:var(--ink-soft,#5B564D)}
.rv-leg .ic.rv-d{color:#3E6B4A}
.rv-leg .ic svg{width:22px;height:22px;display:inline-block}
.rv-leg span:last-child{font:500 14.5px/1.3 inherit;color:var(--ink,#26241F)}
.rv-ghost{width:100%;margin-top:10px;font:500 14px/1 inherit;color:var(--ink-faint,#8C8578);
  background:none;border:0;padding:12px;cursor:pointer}

/* ---- filter bar: search + category tabs (shared by both menus) ------------ */
.rv-filter{position:sticky;top:0;z-index:30;background:var(--paper,#FAF9F6);
  padding:10px 16px 8px;border-bottom:1px solid var(--hair,#E2DCD0)}
.rv-search{width:100%;font:400 15px/1.3 inherit;color:var(--ink,#26241F);
  background:var(--card,#fff);border:1px solid var(--hair,#E2DCD0);
  border-radius:11px;padding:11px 13px;-webkit-appearance:none}
.rv-search:focus{outline:2px solid var(--accent,#9C8558);outline-offset:1px}
.rv-cats{display:flex;gap:7px;overflow-x:auto;margin-top:8px;padding-bottom:2px;
  scrollbar-width:none;-webkit-overflow-scrolling:touch}
.rv-cats::-webkit-scrollbar{display:none}
.rv-cat{flex:0 0 auto;font:500 13.5px/1 inherit;color:var(--ink-soft,#5B564D);
  background:var(--card,#fff);border:1px solid var(--hair,#E2DCD0);
  border-radius:99px;padding:9px 14px;cursor:pointer}
.rv-cat[aria-pressed="true"]{background:var(--ink,#26241F);color:var(--paper,#FAF9F6);
  border-color:var(--ink,#26241F)}
.rv-nohit{padding:34px 16px;text-align:center;color:var(--ink-faint,#8C8578);font-size:14.5px}

/* ---- swipe-to-dismiss + the small ✕ ------------------------------------- */
.rv-x{position:absolute;top:10px;right:10px;z-index:5;width:30px;height:30px;
  border-radius:50%;border:1px solid var(--hair,#E2DCD0);background:var(--card,#fff);
  color:var(--ink-soft,#5B564D);font:400 13px/1 system-ui,sans-serif;cursor:pointer;
  display:flex;align-items:center;justify-content:center;padding:0;opacity:.9}
.rv-x:hover{opacity:1;border-color:var(--accent,#9C8558)}
.rv-x:focus-visible{outline:2px solid var(--accent,#9C8558);outline-offset:2px}
.rv-sheet{position:relative}
/* a grab handle, so the swipe is discoverable rather than a secret */
.rv-sheet::before{content:"";position:absolute;top:7px;left:50%;transform:translateX(-50%);
  width:38px;height:4px;border-radius:99px;background:var(--hair,#E2DCD0)}
.rv-sheet{padding-top:26px}
/* the veil dims with the drag (--gdim is set by gestures.js) */
.rv-modal{background:rgba(20,18,14,calc(.42*var(--gdim,1)))}

/* ---- loading skeleton ----------------------------------------------------
   PageSpeed on the live menu: CLS 0, but FCP 3,0s / LCP 3,3s / Speed Index 5,0s
   on mobile. Nothing is layout-shifting; the photos simply take a while on 4G,
   and a grid of empty boxes reads as broken. A shimmer says "coming", which is
   the difference between slow and broken.
   The box is already reserved by the img's width/height attributes, so this
   adds NO layout shift — it paints inside space that already exists. */
.shot{position:relative;overflow:hidden;background:#EFEBE2;}
.shot::after{content:"";position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(100deg,transparent 18%,rgba(255,255,255,.55) 50%,transparent 82%);
  transform:translateX(-100%);animation:rvshimmer 1.4s ease-in-out infinite;}
.shot.is-loaded::after{display:none;}
.shot img{opacity:0;transition:opacity .3s ease;}
.shot.is-loaded img{opacity:1;}
@keyframes rvshimmer{to{transform:translateX(100%);}}

/* the filter bar, while JS is still filling it */
.rv-filter[aria-busy="true"]{display:flex;flex-direction:column;gap:8px;justify-content:center;}
.rv-filter[aria-busy="true"]::before{content:"";height:42px;border-radius:11px;background:#EFEBE2;
  animation:rvpulse 1.4s ease-in-out infinite;}
.rv-filter[aria-busy="true"]::after{content:"";height:34px;width:78%;border-radius:99px;background:#EFEBE2;
  animation:rvpulse 1.4s ease-in-out infinite .15s;}
@keyframes rvpulse{0%,100%{opacity:1}50%{opacity:.55}}

@media (prefers-reduced-motion:reduce){
  .shot::after{animation:none;opacity:0}
  .shot img{transition:none}
  .rv-filter[aria-busy="true"]::before,.rv-filter[aria-busy="true"]::after{animation:none}
}

/* On a locked sheet (the paid comanda) the ✕ is the ONLY way out, so it stops
   being a quiet corner affordance and gets real contrast. */
.rv-modal[data-locked] .rv-x{width:34px;height:34px;background:var(--ink,#26241F);
  color:#fff;border-color:var(--ink,#26241F);opacity:1;font-size:15px}
.rv-modal[data-locked] .rv-sheet::before{display:none}   /* no grab handle: it cannot be dragged */
