/* ============================================================
   SV CANTON RESTAURANT: layout (js/main.js fills hours, status, reviews, JSON-LD and the lightbox).
   Tokens live in theme.css.
   ============================================================ */
[hidden] { display: none !important; }   /* kit rule: elements with their own display must still honor [hidden] */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--head-h); }
/* phones and tablets: keep a focused link from hiding under the fixed call bar */
@media (max-width: 860px) { html { scroll-padding-bottom: calc(80px + env(safe-area-inset-bottom)); } }
html:has(.menu-tools) { scroll-padding-top: calc(var(--head-h) + 86px); }   /* header + the sticky search/chips bar */
@media (max-width: 760px) { html:has(.menu-tools) { scroll-padding-top: calc(var(--head-h) + 124px); } }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; font: 400 17px/1.6 var(--body); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 900; line-height: 1.04; letter-spacing: -.012em; text-wrap: balance; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--gold); color: var(--ink); padding: 10px 14px; border-radius: 999px; font-weight: 700; }
.skip:focus { top: 10px; }
.num { white-space: nowrap; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
/* gold focus rings vanish on paper; use the deep red there */
.on-paper :focus-visible, .hero-paper :focus-visible, .menu-hero :focus-visible, .menu-tools :focus-visible, .menu-body :focus-visible { outline-color: var(--dragon); }
/* rings inside boxes that clip their overflow: draw them inside */
.rate-strip a:focus-visible { outline-color: var(--dragon); outline-offset: -4px; }
.chips .chip:focus-visible { outline-offset: -3px; }
.showcase a:focus-visible, .showcase .dish-card:focus-visible { outline-offset: -4px; }
.dish-card:focus-visible { outline-offset: 4px; }
.zh { font-family: var(--zh); font-weight: 900; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: 0 1.4em;
  border-radius: 999px; font: 700 16px/1 var(--body); text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s; }
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--sun); }
.btn-red { background: var(--vermilion); color: #fff; }
.btn-red:hover { background: #b9140d; }
.btn-line { border-color: currentColor; color: inherit; background: transparent; }
.btn-line:hover { background: rgba(251, 245, 236, .1); }
.on-paper .btn-line:hover, .hero-paper .btn-line:hover { background: rgba(27, 18, 16, .06); }
.link { font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: var(--vermilion); }
.link:hover { text-decoration-color: currentColor; }

/* Section marker: the logo's triangle on a thread (instead of an eyebrow label) */
.mark { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.mark::before { content: ""; width: 40px; height: 2px; background: var(--gold); }
.mark .tri { width: 18px; height: 16px; background: var(--vermilion); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.on-paper .mark::before, .hero-paper .mark::before { background: #c9963a; }

/* ---------- Header: the restaurant's sign is the name ---------- */
.rp-head { position: sticky; top: 0; z-index: 50; background: var(--ink); color: var(--paper); height: var(--head-h);
  border-bottom: 1px solid rgba(242, 194, 107, .25); }
.rp-head .wrap { height: 100%; display: flex; align-items: center; gap: 24px; }
.rp-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand-sign { width: 200px; height: auto; }
.foot-sign { width: 260px; }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a { font: 600 15.5px/1 var(--body); text-decoration: none; color: rgba(251, 245, 236, .86); padding: 8px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--paper); border-bottom-color: var(--gold); }
.site-nav .btn { color: #fff; border-bottom: 0; padding: 0 1.2em; min-height: 42px; font-size: 15px; }
.head-phone { font: 600 15px/1 var(--body); color: var(--gold); text-decoration: none; }
.burger { display: none; background: none; border: 0; color: var(--paper); width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.burger svg { width: 24px; height: 24px; }
@media (max-width: 1020px) {
  .burger { display: block; }
  .site-nav .head-phone { margin-top: 10px; font: 700 22px/1.2 var(--body); color: var(--gold); }   /* the open menu keeps the number */
  .site-nav { position: fixed; inset: var(--head-h) 0 0 0; background: var(--ink); flex-direction: column; align-items: flex-start;
    gap: 6px; padding: 28px var(--pad) 120px; transform: translateX(100%); visibility: hidden; transition: transform .3s, visibility .3s; overflow-y: auto; }
  .site-nav.open { transform: none; visibility: visible; }
  .site-nav a { font: 900 32px/1.3 var(--display); color: var(--paper); border: 0; }
  .site-nav .btn { margin-top: 18px; font: 700 18px/1 var(--body); min-height: 54px; }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 400px) { .brand-sign { width: 172px; } }

/* ---------- Lanterns (lit = open now): the dining room's teardrop silk lanterns ---------- */
.lanterns { position: absolute; inset: 0 0 auto 0; height: 0; z-index: 3; pointer-events: none; }
.lantern { position: absolute; top: 0; overflow: visible; transform-origin: 50% 0; }
.lantern .lt-string { stroke: #8a6a3a; stroke-width: 1.1; }
.lantern .lt-cap { fill: url(#lt-gold); stroke: #6e4a10; stroke-width: .6; }
.lantern .lt-body { stroke-width: .9; }
.lantern .lt-red { fill: url(#lt-red); stroke: #7a0f0b; }
.lantern .lt-white { fill: url(#lt-silk); stroke: #b98a5a; }
.lantern .lt-ribs { fill: none; stroke: #6e3a20; stroke-width: .7; opacity: .45; }
.lantern .lt-print-red .lt-flower { fill: #ffd9cf; opacity: .55; }
.lantern .lt-print-red .lt-twig { fill: none; stroke: #ffd9cf; stroke-width: .9; opacity: .4; }
.lantern .lt-print-white .lt-flower { fill: #e2382b; opacity: .62; }
.lantern .lt-print-white .lt-twig { fill: none; stroke: #8a4a30; stroke-width: .9; opacity: .5; }
.lantern .lt-light { fill: url(#lt-inner); opacity: .12; transition: opacity 1.2s; }
.lantern .lt-knot { fill: #c8140f; }
.lantern .lt-tassel { fill: #d71a14; }
.lantern .lt-strands { stroke: #a80f0b; stroke-width: .8; }
.lantern .lt-glow { fill: url(#lt-glow); opacity: 0; transition: opacity 1.2s; }
.is-lit .lantern .lt-light { opacity: .95; }
.is-lit .lantern .lt-glow { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .lantern { animation: sway var(--t, 6s) ease-in-out var(--d, 0s) 6 alternate; }   /* a few gentle swings, then still */
}
@keyframes sway { from { transform: rotate(-2deg); } to { transform: rotate(2deg); } }
.lantern.lt-sm { display: none; }
@media (max-width: 860px) { .lantern.lt-lg { display: none; } .lantern.lt-sm { display: block; } }

/* ---------- Hero: their red dragon on white, as on the logo, the menus and the tablecloths ---------- */
.hero { position: relative; overflow: hidden; }
.hero-paper { color: var(--ink);
  background: radial-gradient(60% 70% at 76% 46%, #fffdf8 0%, rgba(255, 253, 248, 0) 70%),
              radial-gradient(120% 90% at 70% 40%, var(--paper) 0%, var(--paper-2) 100%); }
.hero-paper::after { content: ""; position: absolute; inset: auto 0 0 0; height: 10px;
  background: repeating-linear-gradient(90deg, var(--vermilion) 0 46px, var(--orange) 46px 92px); }
.hero .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr); align-items: center;
  gap: clamp(16px, 4vw, 56px); min-height: min(calc(100vh - var(--head-h)), 860px); min-height: min(calc(100svh - var(--head-h)), 860px);
  padding-top: clamp(64px, 9vh, 110px); padding-bottom: 72px; }
.hero-name { margin: 0 0 18px; }
.hero-sign { width: min(100%, 640px); height: auto; filter: drop-shadow(0 10px 18px rgba(80, 20, 10, .16)); }
.hero-zh { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 22px; font: 600 19px/1.3 var(--cond); letter-spacing: .02em; color: var(--ink-2); }
.hero-zh .zh { font-size: 30px; letter-spacing: .14em; color: var(--vermilion); }
.hero .lede { font-size: clamp(18px, 1.5vw, 20.5px); line-height: 1.55; max-width: 31em; color: var(--ink-2); margin-bottom: 22px; }
.status-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-bottom: 28px; font: 600 16px/1.3 var(--cond); letter-spacing: .02em; }
.status { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 10px; border-radius: 999px; background: rgba(0, 0, 0, .22);
  border: 1px solid rgba(242, 194, 107, .35); }
.hero-paper .status, .on-paper .status { background: #fffdf8; border-color: rgba(27, 18, 16, .2); }
.status .dot { width: 14px; height: 14px; border-radius: 50%; background: #5c1c18; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15); }
.status.is-open .dot { background: radial-gradient(circle at 35% 30%, #fff3b0, var(--gold) 45%, #e08a1c); box-shadow: 0 0 0 4px rgba(242, 194, 107, .25), 0 0 16px rgba(255, 190, 90, .9); }
.hours-short { display: flex; flex-wrap: wrap; gap: 4px 14px; list-style: none; margin: 0; padding: 0; color: rgba(251, 245, 236, .78); }
.hero-paper .hours-short { color: var(--ink-2); }
.hh-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; border-radius: 999px; background: var(--vermilion); color: #fff;
  font: 700 15.5px/1 var(--cond); letter-spacing: .03em; text-decoration: none; }
.hh-chip.is-now { box-shadow: 0 0 0 4px rgba(220, 26, 18, .2); }
.hh-chip .now { display: none; }
.hh-chip.is-now .now { display: inline; }
.hero-addr { display: inline-flex; align-items: center; min-height: 44px; color: inherit; text-decoration: underline 2px rgba(220, 26, 18, .45); text-underline-offset: 5px; }
.hero-addr:hover { text-decoration-color: var(--vermilion); }
.ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; }
.ctas .call { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; font: 600 17px/1 var(--body); color: inherit;
  text-decoration: underline 2px rgba(242, 194, 107, .7); text-underline-offset: 6px; }
.hero-paper .ctas .call, .on-paper .ctas .call { text-decoration-color: rgba(220, 26, 18, .45); }
.ctas .call:hover { text-decoration-color: var(--gold); }
.hero-art { position: relative; width: 100%; max-width: 600px; justify-self: center; }
.hero-dragon { width: 100%; height: auto; }
@media (prefers-reduced-motion: no-preference) {
  .hero-enter > * { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-enter > :nth-child(2) { animation-delay: .1s; }
  .hero-enter > :nth-child(3) { animation-delay: .18s; }
  .hero-enter > :nth-child(4) { animation-delay: .26s; }
  .hero-enter > :nth-child(5) { animation-delay: .32s; }
  .hero-enter > :nth-child(6) { animation-delay: .38s; }
  .hero-dragon { animation: dragon-in 1.6s cubic-bezier(.16, .8, .2, 1) both .1s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes dragon-in { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 70px; padding-bottom: 56px; min-height: 0; gap: 8px; }
  .hero-art { order: -1; max-width: min(64vw, 340px); margin: 0 auto 6px; }
  .hero-sign { width: 100%; }
}

/* ---------- Full-width photo bands (the restaurant's own photos) ---------- */
.photo-band { position: relative; margin: 0; height: clamp(300px, 46vw, 620px); overflow: hidden; background: var(--ink); isolation: isolate; }
.photo-band.band-tall { height: clamp(340px, 56vw, 760px); }
.band-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); z-index: -2; }
.photo-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(27, 18, 16, .06) 30%, rgba(27, 18, 16, .55) 62%, rgba(27, 18, 16, .85) 100%); }
.photo-band:not(:has(.band-text))::after { background: linear-gradient(180deg, rgba(27, 18, 16, 0) 60%, rgba(27, 18, 16, .3) 100%); }
@media (prefers-reduced-motion: no-preference) {
  .band-img { transform: scale(1.07); transition: transform 2.6s cubic-bezier(.2, .7, .2, 1); }
  .photo-band.in .band-img { transform: none; }
}
.band-text { position: absolute; inset: auto 0 0 0; padding-bottom: clamp(30px, 5vw, 66px); color: var(--paper); }
.band-quote { font: 900 clamp(28px, 4.2vw, 62px)/1.08 var(--display); letter-spacing: -.01em; max-width: 18em; text-wrap: balance; margin: 0 0 12px;
  text-shadow: 0 2px 28px rgba(0, 0, 0, .5); }
.band-by { font: 600 16px/1.3 var(--cond); letter-spacing: .02em; color: rgba(251, 245, 236, .9); margin: 0; }
.photo-credit { position: absolute; right: 12px; bottom: 10px; z-index: 2; font: 500 12.5px/1.2 var(--cond); color: rgba(251, 245, 236, .86);
  text-decoration: none; background: rgba(0, 0, 0, .4); padding: 5px 9px; border-radius: 999px; max-width: calc(100% - 24px); }
@media (max-width: 640px) {
  .photo-credit { top: 10px; bottom: auto; background: rgba(16, 9, 7, .72); }   /* the top of a photo is often bright */
  .photo-band:has(.band-text) { height: clamp(400px, 116vw, 480px); }
  .band-quote { font-size: 25px; }
  .photo-band::after { background: linear-gradient(180deg, rgba(27, 18, 16, .08) 0%, rgba(27, 18, 16, .55) 38%, rgba(27, 18, 16, .88) 100%); }
}

/* ---------- Order showcase: big dish cards, each a tap from online ordering ---------- */
.order-now { background: var(--paper); }
.order-now .dish-card { background: #fffdf8; color: var(--ink); box-shadow: 0 0 0 1px var(--line); }
.order-now .dish-card:hover { box-shadow: 0 0 0 1px rgba(177, 35, 27, .45), 0 18px 40px rgba(60, 10, 5, .14); }
.order-now .dc-price, .order-now .dc-go { color: var(--dragon); }
.order-now .dc-tags span { background: rgba(27, 18, 16, .07); color: var(--ink-2); }
.order-now .dc-tags span.hot { background: rgba(220, 26, 18, .1); color: #a1150e; }
.on-paper .link-quiet { color: var(--ink-2); text-decoration-color: var(--vermilion); }
.on-paper .link-quiet:hover { color: var(--ink); }
.order-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px 64px; align-items: end; margin-bottom: clamp(32px, 4vw, 52px); }
.order-head h2 { margin-bottom: 0; }
.order-side .lede { margin-bottom: 14px; }
.order-side .status-row { margin: 0; }
.showcase { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.dish-card { position: relative; /* anchors the card's sr-only text, so it can't escape the phone swipe row and widen the page */
  display: flex; flex-direction: column; text-decoration: none; color: var(--paper); background: #241513; border-radius: 8px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(242, 194, 107, .18); transition: transform .3s, box-shadow .3s; }
.dish-card:hover { transform: translateY(-4px); }
.dc-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #eeeeec; }
.dc-img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.18); transition: transform .6s; }   /* the plates sit small in wide frames: zoom in a little */
.dish-card:hover .dc-img img { transform: scale(1.24); }
.dc-body { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px 18px; flex: 1; }
.dc-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.dc-name { font: 900 clamp(19px, 1.6vw, 22px)/1.15 var(--display); }
.dc-price { font: 700 20px/1 var(--cond); color: var(--gold); white-space: nowrap; }
.dc-desc { font-size: 15px; line-height: 1.4; color: var(--ink-2); }
.dc-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.dc-tags span { font: 600 13px/1 var(--cond); letter-spacing: .02em; padding: 5px 8px; border-radius: 999px; }
.dc-go { margin-top: auto; font: 700 16px/1 var(--body); }
.dc-go::after { content: " →"; transition: margin .2s; }
.dish-card:hover .dc-go::after { margin-left: 6px; }
.order-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: clamp(30px, 4vw, 46px); }
.btn-big { min-height: 58px; padding: 0 2em; font-size: 18px; }
.link-quiet { display: inline-block; padding: 11px 0; font-weight: 600; text-decoration: underline; text-underline-offset: 5px; }
@media (max-width: 900px) {
  .order-head { grid-template-columns: 1fr; }
  .showcase { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory;
    padding-bottom: 10px; margin-right: calc(-1 * var(--pad)); padding-right: var(--pad); scrollbar-width: none; }
  .showcase::-webkit-scrollbar { display: none; }
  .dish-card { scroll-snap-align: start; }
  .order-ctas .btn-big { flex: 1 1 100%; }
}
@media (min-width: 600px) and (max-width: 900px) { .showcase { grid-auto-columns: 44%; } }

/* ---------- Sections ---------- */
.band { padding: clamp(76px, 10vw, 128px) 0; position: relative; }
.on-paper { background: var(--paper); color: var(--ink); }
.on-ink { background: var(--ink); color: var(--paper); }
.on-red { background: var(--lacquer); color: var(--paper); }
.band h2 { font-size: clamp(36px, 4.8vw, 64px); margin-bottom: 22px; }
.band .lede { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; max-width: 36em; }
.on-paper .lede { color: var(--ink-2); }
.on-ink .lede, .on-red .lede { color: rgba(251, 245, 236, .86); }
.head-row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; margin-bottom: clamp(36px, 5vw, 56px); }
.head-row h2 { margin-bottom: 0; }
.head-row .lede { margin: 0; }
@media (max-width: 860px) { .head-row { grid-template-columns: 1fr; } }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- Lunch, happy hour, dinner: three cards (never four) ---------- */
.day-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.day-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 28px 26px 26px; border-radius: 8px; overflow: hidden; isolation: isolate;
  text-decoration: none; color: var(--ink); background: var(--paper); transition: transform .25s; }
.day-card:hover { transform: translateY(-4px); }
.day-card .when { font: 700 15.5px/1.2 var(--cond); letter-spacing: .03em; color: var(--dragon); }
.day-card h3 { font-size: clamp(28px, 2.6vw, 36px); }
.day-card .price { font: 900 clamp(46px, 4.6vw, 64px)/1 var(--display); color: var(--vermilion); letter-spacing: -.02em; }
.day-card .price small { font: 600 17px/1.2 var(--cond); color: var(--ink-2); letter-spacing: .01em; }
.day-card p { margin: 0; color: var(--ink-2); font-size: 16.5px; }
.day-card .go { margin-top: auto; padding-top: 10px; font: 700 16px/1.2 var(--body); color: var(--dragon); }
.day-card .go::after { content: " →"; }
.day-card .now { position: absolute; top: 18px; right: 18px; display: none; padding: 6px 10px; border-radius: 999px; background: var(--vermilion); color: #fff;
  font: 700 13px/1 var(--cond); letter-spacing: .04em; }
.day-card.is-now .now { display: inline-block; }
.day-card::before { content: ""; position: absolute; right: -40px; bottom: -40px; width: 170px; height: 150px; z-index: -1; opacity: .07;
  background: var(--vermilion); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.day-card.hh { background: var(--vermilion); color: #fff; }
.day-card.hh .when, .day-card.hh .go, .day-card.hh p, .day-card.hh .price small { color: #fff; }   /* 5:1 on vermilion */
.day-card.hh .price { color: #fff; }
.day-card.hh::before { background: #fff; opacity: .1; }
.day-card.hh .now { background: var(--ink); }
.day-note { margin-top: 22px; font: 500 15px/1.4 var(--cond); color: rgba(251, 245, 236, .72); }
@media (max-width: 900px) { .day-grid { grid-template-columns: 1fr; } }

/* ---------- Family dinner: the lazy Susan ---------- */
#family { overflow: hidden; }
.family { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); grid-template-areas: "head table" "controls table";
  grid-template-rows: auto 1fr; column-gap: clamp(28px, 5vw, 72px); align-items: start; }
.fam-head { grid-area: head; }
.fam-controls { grid-area: controls; }
.fam-table { grid-area: table; align-self: center; }
.picker { display: grid; gap: 22px; margin: 8px 0 8px; }
.picker-label { font: 600 15px/1 var(--cond); letter-spacing: .03em; color: rgba(251, 245, 236, .72); margin-bottom: 10px; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg button { min-height: 46px; min-width: 52px; padding: 0 18px; border-radius: 999px; border: 1.5px solid rgba(242, 194, 107, .5); background: transparent;
  color: var(--paper); font: 700 16px/1 var(--body); cursor: pointer; transition: background-color .2s, color .2s; }
.seg button:hover { border-color: var(--gold); }
.seg button[aria-pressed="true"] { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.price-out { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 16px; margin: 26px 0 6px; }
.price-out .big { font: 900 clamp(48px, 6vw, 76px)/1 var(--display); color: var(--gold); letter-spacing: -.02em; }
.price-out .per { font: 600 17px/1.3 var(--cond); color: rgba(251, 245, 236, .82); }
.soup-note { color: rgba(251, 245, 236, .82); margin-bottom: 24px; }
.table { position: relative; width: 100%; max-width: 600px; aspect-ratio: 1; margin: 0 auto; }
.table-top { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 45% 40%, #fffdf8, #efe3cf 72%);
  box-shadow: inset 0 0 0 10px #e4d4b8, inset 0 0 0 12px rgba(158, 42, 34, .35), 0 30px 60px rgba(0, 0, 0, .45); }
@property --spin { syntax: "<angle>"; inherits: true; initial-value: 0deg; }
.susan { position: absolute; inset: 9%; border-radius: 50%; --spin: 0deg;
  background: radial-gradient(circle at 42% 36%, #e83a2c, var(--vermilion) 45%, #8f140e 100%);
  box-shadow: inset 0 0 0 3px rgba(242, 194, 107, .7), inset 0 0 0 14px rgba(0, 0, 0, .1), 0 12px 30px rgba(0, 0, 0, .3); }
@media (prefers-reduced-motion: no-preference) { .susan { transition: --spin 1.1s cubic-bezier(.3, .7, .2, 1); } }
.plate span { overflow-wrap: break-word; hyphens: manual; }   /* break between words ("Almond / Chicken"), never inside one */
.susan::before { content: ""; position: absolute; inset: 16%; border-radius: 50%; border: 1.5px dashed rgba(255, 240, 200, .4); transform: rotate(var(--spin)); }
.slot { --a: 0deg; position: absolute; inset: 0; transform: rotate(calc(var(--a) + var(--spin))); pointer-events: none; }
.plate { --ps: 27%; position: absolute; left: calc(50% - var(--ps) / 2); top: calc(17.5% - var(--ps) / 2); width: var(--ps); height: var(--ps);
  transform: rotate(calc(-1 * (var(--a) + var(--spin))));
  border-radius: 50%; background: radial-gradient(circle, #fffdf8 0 58%, #efe3cf 59% 64%, #fffdf8 65%);
  box-shadow: 0 0 0 2px var(--gold), 0 6px 14px rgba(0, 0, 0, .3); display: grid; place-items: center; text-align: center;
  color: var(--ink); padding: 0 calc(var(--ps) * .13); overflow: hidden; } /* % padding resolves against the table, so scale it by --ps */
.plate span { font: 700 var(--fs, clamp(10.5px, 1.2vw, 14px))/1.12 var(--body); }
.slot.is-new .plate { animation: plate-in .5s ease both .3s; }
@keyframes plate-in { from { opacity: 0; } to { opacity: 1; } }
.bowl { position: absolute; left: 50%; top: 50%; width: 30%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, #f4d39a 0 42%, #fffdf8 43% 60%, #e9d6b0 61% 64%, #fffdf8 65%);
  box-shadow: 0 0 0 2px var(--gold), 0 8px 18px rgba(0, 0, 0, .35); display: grid; place-items: center; text-align: center; padding: 2.7%; color: var(--ink); }
.bowl > span { display: grid; gap: 3px; }
.bowl b { font: 900 clamp(13px, 1.6vw, 19px)/1 var(--display); }
.bowl small { font: 600 clamp(9.5px, 1vw, 12.5px)/1.15 var(--cond); }
.table-caption { text-align: center; margin-top: 16px; font: 500 15px/1.4 var(--cond); color: rgba(251, 245, 236, .7); }
@media (max-width: 900px) {
  .family { grid-template-columns: 1fr; grid-template-areas: "head" "table" "controls"; grid-template-rows: none; }
  .table { max-width: 440px; }
  .fam-table { margin: 6px 0 22px; }
}
@media (max-width: 480px) { .plate { padding: 0 calc(var(--ps) * .1); } .plate span, .bowl span { font-size: 10px; } }

/* ---------- Story: the Leung family's own letter ---------- */
.letter { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.arch { margin: 0; }
.arch img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; border-radius: 999px 999px 8px 8px;
  box-shadow: 0 0 0 8px var(--paper), 0 0 0 10px var(--vermilion), 0 30px 60px rgba(60, 10, 5, .25); }
.arch figcaption { text-align: center; margin-top: 22px; font: 500 15px/1.4 var(--cond); color: var(--ink-2); }
.tale { font: 400 clamp(19px, 1.7vw, 23px)/1.6 var(--display); margin: 0 0 18px; padding-left: 26px; border-left: 2px solid var(--vermilion);
  color: var(--ink); max-width: 33em; }
.tale p { margin: 0 0 .9em; }
.tale p:first-child { text-indent: -.45em; }
.signed { display: flex; align-items: center; gap: 14px; padding-left: 26px; margin-top: 18px; font: 700 18px/1.2 var(--display); }
.seal-sq { display: grid; place-items: center; width: 52px; height: 52px; background: var(--ink); color: var(--paper); border-radius: 4px; font-size: 32px; line-height: 1; }
.story-more { margin-top: clamp(56px, 7vw, 88px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; }
.story-more > div { padding: 18px 0; border-top: 2px solid var(--ink); }
.story-more b { display: block; font: 900 21px/1.25 var(--display); margin-bottom: 6px; }
.story-more p { font-size: 16px; color: var(--ink-2); margin: 0; }
@media (max-width: 860px) { .letter { grid-template-columns: 1fr; } .arch { max-width: 420px; margin: 0 auto; } .story-more { grid-template-columns: 1fr; } }

.proof { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: clamp(56px, 7vw, 88px); }
.press-card { display: flex; flex-direction: column; gap: 14px; padding: 24px; border-radius: 6px; background: #fffdf8; border: 1px solid var(--line); text-decoration: none; }
.press-card .outlet { font: 700 15px/1 var(--cond); letter-spacing: .03em; color: var(--dragon); }
.press-card .hl { font: 700 21px/1.25 var(--display); }
.press-card .when { margin-top: auto; font: 500 15px/1 var(--cond); color: var(--ink-2); }
@media (max-width: 860px) { .proof { grid-template-columns: 1fr; } }
.honors-row { margin-top: clamp(56px, 7vw, 88px); }
.honors { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; }
.honors li { padding: 16px 0; border-top: 2px solid var(--ink); }
.honors b { display: block; font: 700 19px/1.3 var(--display); }
.honors span { font-size: 15.5px; color: var(--ink-2); }
@media (max-width: 760px) { .honors { grid-template-columns: 1fr; } }

/* Hero ratings: compact badges under the buttons */
.hero-ratings { margin-top: 24px; }
.rate-strip { display: inline-flex; flex-wrap: nowrap; width: max-content; list-style: none; margin: 0; padding: 0; border-radius: 12px; overflow: hidden;
  background: #fffdf8; border: 1px solid rgba(27, 18, 16, .16); box-shadow: 0 6px 18px rgba(80, 20, 10, .07); }
.rate-strip li + li { border-left: 1px solid rgba(27, 18, 16, .12); }
.rate-strip a { display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 6px 12px; text-decoration: none; color: var(--ink); transition: background-color .2s; }
.rate-strip a:hover { background: rgba(220, 26, 18, .06); }
.rate-strip b { font: 900 20px/1 var(--display); color: var(--dragon); }
.stars { --r: 5; position: relative; display: inline-block; font-size: 11px; letter-spacing: 1px; color: rgba(27, 18, 16, .18); line-height: 1; }
.stars::before { content: "★★★★★"; position: absolute; inset: 0; width: calc(var(--r) / 5 * 100%); overflow: hidden; color: #e8a317; white-space: nowrap; }
.rs-name { font: 600 14.5px/1 var(--cond); letter-spacing: .02em; }
.rs-n { font: 500 13.5px/1 var(--cond); color: var(--ink-2); }
.rs-n::before { content: "· "; }
.rate-note { margin: 8px 0 0; font: 500 12.5px/1.2 var(--cond); color: var(--ink-2); }
@media (max-width: 480px) {
  .rate-strip { display: flex; width: auto; }
  .rate-strip li { flex: 1 1 0; }
  .rate-strip a { flex-direction: column; align-items: flex-start; gap: 4px; padding: 8px 10px; }
  .rs-n::before { content: ""; }
}

/* ---------- Visit ---------- */
.visit { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(32px, 6vw, 80px); }
.addr { font: 900 clamp(24px, 2.3vw, 32px)/1.2 var(--display); margin: 4px 0 8px; color: var(--gold); }
.look-for { margin: 0 0 22px; max-width: 30em; color: rgba(251, 245, 236, .9); }
.hours { width: 100%; max-width: 420px; border-collapse: collapse; margin: 22px 0 26px; font-size: 17px; }
.hours td { padding: 9px 0; border-bottom: 1px solid rgba(251, 245, 236, .16); }
.hours td:last-child { text-align: right; }
.hours tr.today td { color: var(--gold); font-weight: 700; }
.hours tr.closed td:last-child { color: rgba(251, 245, 236, .74); }
.service { list-style: none; padding: 0; margin: 0 0 30px; }
.service li { display: flex; gap: 12px; align-items: baseline; padding: 4px 0; }
.service li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); flex: none; transform: translateY(-1px); }
.map { position: relative; border-radius: 8px; overflow: hidden; min-height: 420px; height: 100%; box-shadow: 0 0 0 2px var(--gold); background: #2d1a15; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: saturate(.85) contrast(1.02); }
@media (max-width: 860px) { .visit { grid-template-columns: 1fr; } .map { min-height: 340px; } }

/* ---------- Hem (sea-and-mountain waves) + footer ---------- */
.hem { display: block; width: 100%; height: clamp(90px, 12.5vw, 180px); background: var(--lacquer-2); margin: -1px 0 -1px; position: relative; }
.rp-foot { background: var(--ink); color: rgba(251, 245, 236, .86); padding: 64px 0 120px; font-size: 16px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.foot-grid h2 { font: 700 15px/1 var(--cond); letter-spacing: .04em; color: var(--gold); margin-bottom: 14px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { padding: 3px 0; }
.foot-grid a { text-decoration: none; }
.foot-grid a:hover { color: var(--paper); text-decoration: underline; text-decoration-color: var(--gold); }
.foot-brand .rp-brand { margin-bottom: 16px; }
.foot-brand p { max-width: 26em; color: rgba(251, 245, 236, .72); }
.foot-brand .zh { color: var(--gold); letter-spacing: .1em; margin-right: 6px; }
.foot-hh { margin: 10px 0 0; color: var(--gold); font-weight: 600; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: 48px; padding-top: 20px;
  border-top: 1px solid rgba(251, 245, 236, .14); font-size: 14.5px; color: rgba(251, 245, 236, .62); }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
@media (min-width: 861px) { .rp-foot { padding-bottom: 56px; } }

/* Mobile call bar: Call + Order online */
.call-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: none; grid-template-columns: 1fr 1fr; gap: 8px;
  padding: 10px max(12px, env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); background: rgba(27, 18, 16, .97); border-top: 1px solid rgba(242, 194, 107, .3); }
.call-bar a { display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 999px; font: 700 17px/1 var(--body); text-decoration: none; }
.call-bar a:first-child { color: var(--paper); box-shadow: inset 0 0 0 2px rgba(251, 245, 236, .5); }
.call-bar a:last-child { background: var(--vermilion); color: #fff; }
@media (max-width: 860px) { .call-bar { display: grid; } }

/* ---------- Lightbox (kit markup) ---------- */
.lightbox { position: fixed; inset: 0; z-index: 90; display: none; place-items: center; background: rgba(15, 8, 6, .92); padding: 24px; }
.lightbox.open { display: grid; }
.lightbox figure { margin: 0; max-width: min(920px, 100%); text-align: center; }
.lightbox img { max-height: 78vh; width: auto; margin: 0 auto; border-radius: 6px; background: #fff; }
.lightbox figcaption { color: var(--paper); margin-top: 12px; font: 600 16px/1.4 var(--body); }
.lightbox button { position: absolute; background: rgba(251, 245, 236, .12); color: var(--paper); border: 0; width: 48px; height: 48px; border-radius: 50%;
  font-size: 22px; cursor: pointer; }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox.single .lb-prev, .lightbox.single .lb-next { display: none; }

/* ============================================================
   MENU PAGE
   ============================================================ */
.menu-hero { position: relative; overflow: hidden; color: var(--ink); background: radial-gradient(120% 120% at 80% 0%, #fffdf8, var(--paper) 50%, var(--paper-2)); }
.menu-hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 8px; background: repeating-linear-gradient(90deg, var(--vermilion) 0 46px, var(--orange) 46px 92px); }
.menu-hero .wrap { position: relative; z-index: 2; padding-top: clamp(96px, 13vh, 140px); padding-bottom: 48px; }
.menu-hero h1 { font-size: clamp(42px, 6vw, 88px); line-height: .98; display: flex; align-items: flex-start; gap: 18px; margin-bottom: 18px; color: var(--ink); }
.menu-hero h1 .zh { writing-mode: vertical-rl; font-size: .36em; color: var(--vermilion); letter-spacing: .1em; border: 2px solid rgba(220, 26, 18, .45);
  border-radius: 4px; padding: .3em .18em; margin-top: .2em; white-space: nowrap; }
.menu-hero .lede { max-width: 42em; font-size: 19px; color: var(--ink-2); }
.menu-hero .status { background: #fffdf8; border-color: rgba(27, 18, 16, .2); }
.tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.tabs button { display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 20px; border-radius: 999px;
  border: 1.5px solid rgba(27, 18, 16, .4); background: #fffdf8; color: var(--ink); font: 700 16.5px/1 var(--body); cursor: pointer; }
.tabs button b { font: 600 15px/1 var(--cond); opacity: .7; }
.tabs button[aria-selected="true"] { background: var(--vermilion); color: #fff; border-color: var(--vermilion); }
.tabs button[aria-selected="true"] b { opacity: 1; }

.menu-tools { position: sticky; top: var(--head-h); z-index: 20; background: rgba(251, 245, 236, .97); border-bottom: 1px solid var(--line); }
.menu-tools .wrap { display: flex; align-items: center; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
.search { position: relative; flex: 0 1 280px; }
.search input { width: 100%; min-height: 44px; padding: 0 14px 0 40px; border-radius: 999px; border: 1.5px solid rgba(27, 18, 16, .5); background: #fff;
  font: 500 16px/1 var(--body); color: var(--ink); }
.search input::placeholder { color: #6f625e; opacity: 1; }
.search input:focus { outline: none; border-color: var(--dragon); box-shadow: 0 0 0 3px rgba(220, 26, 18, .15); }
.search svg { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--ink-2); }
.spicy-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid rgba(27, 18, 16, .5);
  background: #fff; font: 600 15.5px/1 var(--body); cursor: pointer; white-space: nowrap; color: var(--ink); }
.spicy-toggle[aria-pressed="true"] { background: var(--vermilion); color: #fff; border-color: var(--vermilion); }
.spicy-toggle[aria-pressed="true"] .chili path { fill: #fff; }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; padding: 2px; mask-image: linear-gradient(90deg, #000 92%, transparent); }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border-radius: 999px; font: 600 14.5px/1 var(--body);
  text-decoration: none; color: var(--ink-2); border: 1px solid transparent; }
.chip:hover { border-color: rgba(27, 18, 16, .25); }
.chip.active { background: var(--ink); color: var(--paper); }
@media (max-width: 760px) {
  .menu-tools .wrap { flex-wrap: wrap; gap: 8px; padding-top: 10px; padding-bottom: 8px; }
  .search { flex: 1 1 0; min-width: 0; }
  .spicy-toggle { padding: 0 14px; }
  .spicy-toggle .long { display: none; }
  .chips { flex-basis: 100%; order: 3; }
  .tabs button { min-height: 46px; padding: 0 16px; font-size: 15.5px; }
}

.menu-body { padding: 36px 0 110px; }
.menu-intro { display: flex; flex-wrap: wrap; gap: 8px 26px; align-items: baseline; padding: 18px 22px; border-radius: 6px; background: #fffdf8;
  border: 1px solid var(--line); margin-bottom: 34px; font-size: 16.5px; }
.menu-intro b { font-family: var(--display); font-weight: 900; }
.menu-legend { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: -18px 0 30px; font: 500 15px/1.4 var(--cond); color: var(--ink-2); }
.msec { padding-top: 26px; margin-bottom: 30px; scroll-margin-top: calc(var(--head-h) + 86px); }
@media (max-width: 760px) { .msec { scroll-margin-top: calc(var(--head-h) + 124px); } .chip { min-height: 44px; } }
.msec-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; border-bottom: 3px solid var(--ink); padding-bottom: 10px; margin-bottom: 6px; }
.msec-head h2 { font-size: clamp(28px, 3.2vw, 42px); }
.msec-head .n { font: 600 15px/1 var(--cond); color: var(--ink-2); }
.msec-note { margin: 10px 0 4px; color: var(--ink-2); font-size: 16px; }
.mlist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; }
.mitem { display: grid; grid-template-columns: 1fr auto; gap: 2px 14px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); }
.mline { display: flex; align-items: baseline; gap: 10px; }
.mname { font: 600 17.5px/1.3 var(--body); }
.mname mark { background: var(--gold); color: inherit; border-radius: 2px; }
.dots { flex: 1; border-bottom: 2px dotted rgba(27, 18, 16, .28); transform: translateY(-4px); min-width: 16px; }
.mprice { font: 700 17.5px/1 var(--cond); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mnote { grid-column: 1; font-size: 15px; color: var(--ink-2); line-height: 1.35; }
.chili { display: inline-block; width: 15px; height: 15px; vertical-align: -1px; margin-left: 6px; }
.chili path { fill: var(--vermilion); }
.vmark { display: inline-grid; place-items: center; width: 19px; height: 19px; margin-left: 6px; border-radius: 50%; border: 1.5px solid #2f7a3a; color: #2f7a3a;
  font: 700 11px/1 var(--cond); transform: translateY(-1px); }
.item-img { grid-row: 1 / span 2; grid-column: 2; width: 64px; height: 64px; padding: 0; border: 0; border-radius: 50%; overflow: hidden; cursor: zoom-in;
  box-shadow: 0 0 0 2px var(--gold); background: #fff; }
.mitem.has-img .mline { padding-right: 4px; }
.item-img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.5); }
.fam-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.fam { padding: 20px; border-radius: 6px; background: #fffdf8; border: 1px solid var(--line); }
.fam h3 { font-size: 24px; margin-bottom: 8px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.fam h3 span { font: 600 16px/1 var(--cond); color: var(--dragon); }
.fam table { width: 100%; border-collapse: collapse; font-size: 16px; margin: 6px 0 12px; }
.fam td { padding: 5px 0; border-bottom: 1px solid var(--line); }
.fam td:last-child { text-align: right; font: 700 17px/1 var(--cond); }
.fam p { font-size: 15px; color: var(--ink-2); margin: 0; }
.no-results { padding: 40px 0; font-size: 18px; }
@media (max-width: 900px) { .mlist { grid-template-columns: 1fr; } .fam-list { grid-template-columns: 1fr; } }
