/* ข้าวต้มกุ๊ยปาหนัน — หน้าตาเว็บ (สร้างเป็น public/assets/site.css โดย site/build.py)
   Layout: night-shop hero (dark lacquer, vertical 粥巴嫩 plaque, porcelain-plate photo) → rice-white sections,
   bands edged with the key-fret (回纹) border from the shop logo → deep-red Chinese-guest band → dark footer. */
:root {
  --night: #1c1312;          /* the street at night, behind the shop sign */
  --night-2: #2b1c1a;
  --lacquer: #7d0f15;        /* red lacquer of a shop-house plaque */
  --red: #c8161d;            /* logo red */
  --red-ink: #a3121a;
  --gold: #e8b85c;
  --gold-soft: #f3d9a4;
  --jade: #13806e;           /* the second colour, from old Chinese diner tiles */
  --rice: #fffaf2;           /* rice porridge white */
  --paper: #f7eddf;
  --card: #ffffff;
  --ink: #231816;
  --muted: #6d5c56;
  --line: #ead9c3;
  --on-dark: #fbf1e3;
  --on-dark-muted: #d9c7b5;
  --display: "Chonburi", "Noto Serif Thai", "Thonburi", serif;
  --body: "IBM Plex Sans Thai Looped", "Noto Sans Thai", "Thonburi", "Leelawadee UI", system-ui, sans-serif;
  --han: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --han-sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --fret-gold: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='14' viewBox='0 0 20 14'%3E%3Cpath d='M0 12.5H20M16.5 12.5V1.5H4.5V9H11V5' fill='none' stroke='%23e8b85c' stroke-width='2'/%3E%3C/svg%3E");
  --fret-red: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='14' viewBox='0 0 20 14'%3E%3Cpath d='M0 12.5H20M16.5 12.5V1.5H4.5V9H11V5' fill='none' stroke='%23c8161d' stroke-width='2'/%3E%3C/svg%3E");
  --bowl: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200' fill='none' stroke='%23e8b85c' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M30 100H170M30 100C30 150 70 172 100 172S170 150 170 100M80 172L86 186H114L120 172M80 82c-10-12 10-20 0-34M100 78c-10-12 10-20 0-34M120 82c-10-12 10-20 0-34M122 96L178 50M130 99L184 58'/%3E%3C/svg%3E");
  --radius: 6px;
  --gutter-l: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  --content: 1200px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--rice); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.75; }
body[data-lang="zh"], [lang="zh-CN"] { font-family: var(--han-sans), var(--body); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.3; text-wrap: balance; }
p { margin: 0; }
[hidden] { display: none !important; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--jade); outline-offset: 2px; }
.page { overflow-x: clip; }
.wrap { max-width: var(--content); margin-inline: auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.skip-link { position: absolute; left: 12px; top: -80px; z-index: 300; background: var(--red); color: #fff; padding: 10px 16px; border-radius: 4px; }
.skip-link:focus { top: 12px; }

/* ---------- Top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 100; background: var(--night); color: var(--on-dark); border-bottom: 1px solid rgba(232, 184, 92, .18); }
.topbar.scrolled { box-shadow: 0 6px 24px rgba(0, 0, 0, .35); }
.nav-inner { display: flex; align-items: center; gap: 18px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand img { width: 48px; height: 48px; border-radius: 50%; background: #fff; padding: 2px; flex: none; }
.brand-text { display: grid; line-height: 1.25; min-width: 0; }
.brand-text strong { font-family: var(--display); font-weight: 400; font-size: 18px; color: var(--on-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-text small { font-size: 12px; color: var(--gold); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-links { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav-links a { display: grid; justify-items: center; padding: 6px 10px; border-radius: 4px; text-decoration: none; font-size: 14px; line-height: 1.3; color: var(--on-dark); }
.nav-links a small { font-size: 11px; color: var(--gold); }
.nav-links a:hover, .nav-links a.active { background: rgba(232, 184, 92, .14); }
.nav-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.lang-switch { display: flex; border: 1px solid rgba(232, 184, 92, .45); border-radius: 999px; overflow: hidden; }
.lang-btn { display: inline-flex; align-items: center; min-height: 34px; padding: 4px 11px; font-size: 13px; text-decoration: none; color: var(--on-dark-muted); }
.lang-btn.active { background: var(--gold); color: var(--night); font-weight: 700; }
.nav-toggle { display: none; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 10px 18px; border-radius: var(--radius); text-decoration: none; font-weight: 700; font-size: 16px; line-height: 1.2; }
.btn small { font-weight: 400; font-size: 13px; opacity: .9; white-space: nowrap; }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 8px 20px rgba(200, 22, 29, .3); }
.btn-primary:hover { background: var(--red-ink); }
.btn-primary small { color: var(--gold-soft); }
.btn-ghost { border: 1px solid rgba(232, 184, 92, .55); color: var(--on-dark); }
.btn-ghost small { color: var(--gold); }
.btn-ghost:hover { background: rgba(232, 184, 92, .14); }

/* ---------- Hero: the shop at night ---------- */
.hero { position: relative; isolation: isolate; background: var(--night); color: var(--on-dark); padding-top: 56px; overflow: hidden; }
.hero.has-photo { background: linear-gradient(90deg, rgba(28, 19, 18, .94) 0%, rgba(28, 19, 18, .78) 55%, rgba(28, 19, 18, .5) 100%), var(--hero-photo) center / cover no-repeat, var(--night); }
.hero::before { content: ""; position: absolute; z-index: -1; right: -70px; top: 40px; width: 520px; height: 520px; background: var(--bowl) no-repeat center / contain; opacity: .09; pointer-events: none; }
.hero::after { content: ""; display: block; height: 14px; margin-top: 44px; background: var(--fret-gold) repeat-x left center / 20px 14px, var(--lacquer); }
.hero-grid { display: grid; grid-template-columns: auto minmax(0, 1.3fr) minmax(0, .8fr); gap: clamp(20px, 3.5vw, 48px); align-items: center; }
.hero-sign { align-self: start; margin-top: 6px; display: grid; gap: 8px; padding: 16px 12px; background: var(--red); border-radius: 4px; box-shadow: inset 0 0 0 3px var(--red), inset 0 0 0 5px var(--gold), 0 18px 40px rgba(0, 0, 0, .4); }
.hero-sign span { display: grid; justify-items: center; line-height: 1; }
.hero-sign b { font-family: var(--han); font-weight: 900; font-size: clamp(40px, 5vw, 64px); line-height: 1.1; color: var(--gold-soft); }
.hero-sign small { margin-top: 3px; font-family: var(--body); font-size: 11px; letter-spacing: .08em; color: var(--gold); }
.hero-tag { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 14px; color: var(--on-dark-muted); }
.hero-tag .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--jade); box-shadow: 0 0 0 4px rgba(19, 128, 110, .3); }
.open-now { font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: rgba(255, 255, 255, .1); color: var(--on-dark-muted); }
.open-now.is-open { background: var(--jade); color: #fff; }
.hero h1 { display: grid; margin-top: 14px; font-family: var(--display); font-weight: 400; line-height: 1.15; }
.h1-main { font-size: clamp(44px, 7.2vw, 92px); color: var(--on-dark); }
.h1-sub { margin-top: 6px; font-size: clamp(24px, 3.3vw, 42px); color: var(--gold); }
[data-lang="zh"] .hero h1 { font-family: var(--han); font-weight: 900; }
.zh-line { margin-top: 14px; font-family: var(--han); font-weight: 700; font-size: 18px; letter-spacing: .2em; color: var(--gold-soft); }
[data-lang="zh"] .zh-line { font-family: var(--display); font-weight: 400; letter-spacing: .02em; }
.hero-sub { margin-top: 16px; max-width: 54ch; color: var(--on-dark-muted); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-plate { position: relative; margin: 0; justify-self: center; width: min(100%, 440px); }
.hero-plate img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; box-shadow: 0 0 0 10px var(--paper), 0 0 0 13px var(--gold), 0 30px 60px rgba(0, 0, 0, .45); }
.hero-plate figcaption { position: absolute; left: 50%; bottom: -10px; transform: translateX(-50%) rotate(-2deg); display: grid; min-width: 72%; padding: 8px 16px; text-align: center; background: var(--red); color: #fff; border-radius: 4px; box-shadow: 0 10px 24px rgba(0, 0, 0, .35); line-height: 1.4; }
.hero-plate figcaption small { font-size: 12px; color: var(--gold-soft); }
.hero-plate figcaption strong { font-size: 15px; }
.hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(232, 184, 92, .22); }
.hero-stat { display: grid; gap: 2px; }
.hero-stat strong { font-family: var(--display); font-weight: 400; font-size: clamp(26px, 3vw, 36px); line-height: 1.15; color: var(--gold); }
.hero-stat span { font-size: 13px; color: var(--on-dark-muted); }

/* ---------- Sections ---------- */
main > section { max-width: var(--content); margin-inline: auto; padding: 76px var(--gutter-r) 76px var(--gutter-l); }
main > section.hero { max-width: none; padding-inline: 0; padding-bottom: 0; }
.sec-head { display: grid; gap: 8px; max-width: 720px; margin-bottom: 32px; }
.sec-kicker { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.sec-head h2 { font-family: var(--display); font-weight: 400; font-size: clamp(28px, 3.6vw, 42px); }
[data-lang="zh"] .sec-head h2, [data-lang="zh"] .story-text h2 { font-family: var(--han); font-weight: 900; }
.sec-head p { color: var(--muted); }
.updated { font-size: 12px; color: var(--muted); }

/* Quick facts: one answer-first block for people and AI readers. */
main > section.facts { padding-top: 48px; padding-bottom: 8px; }
.facts-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.facts-card h2 { padding: 14px 24px; font-size: 18px; font-weight: 700; color: var(--red); background: var(--paper); border-bottom: 1px solid var(--line); }
.facts-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 36px; margin: 0; padding: 6px 24px; }
.facts-list div { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 14px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.facts-list dt { font-size: 14px; font-weight: 700; color: var(--jade); }
.facts-list dd { margin: 0; font-size: 15px; }
.facts-list dd a { color: var(--red); font-weight: 700; }
.facts-card .updated { padding: 4px 24px 16px; }

/* Signature dishes */
.sig-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; align-items: center; }
.sig-photo { position: relative; }
.sig-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); box-shadow: 14px 14px 0 var(--paper); }
.chip { position: absolute; top: 14px; left: 14px; padding: 4px 12px; border-radius: 999px; background: var(--red); color: #fff; font-size: 13px; font-weight: 700; }
.signature-title { font-family: var(--display); font-weight: 400; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.45; color: var(--red); }
[data-lang="zh"] .signature-title { font-family: var(--han); font-weight: 900; }
.signature-desc { margin-top: 12px; }
.signature-source { margin-top: 10px; font-size: 13px; color: var(--muted); }
.sig-points { list-style: none; display: grid; gap: 14px; margin: 24px 0 0; padding: 0; }
.sig-points li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 14px; align-items: center; }
.sig-points .ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: var(--radius); background: var(--red); color: var(--gold-soft); font-family: var(--han); font-weight: 900; font-size: 26px; }
.sig-points strong { display: block; font-size: 16px; }
.sig-points span { font-size: 14px; color: var(--muted); }

/* Highlight menu: a paper band edged with the logo's key-fret border */
main > section#menu { max-width: none; padding-inline: 0; background: var(--fret-red) repeat-x left top / 20px 14px, var(--fret-red) repeat-x left bottom / 20px 14px, var(--paper); }
.menu-inner { max-width: var(--content); margin-inline: auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.menu-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.menu-calligraphy { font-family: var(--han); font-weight: 900; font-size: clamp(64px, 9vw, 120px); line-height: 1; color: var(--red); opacity: .12; }
.menu-tools { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.menu-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tab-btn, .menu-reset { min-height: 42px; padding: 6px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; }
.tab-btn.active { background: var(--red); border-color: var(--red); color: #fff; }
.menu-search { display: flex; align-items: center; gap: 10px; flex: 1 1 260px; max-width: 380px; min-height: 44px; padding: 0 16px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; }
.menu-search:focus-within { border-color: var(--red); box-shadow: 0 0 0 3px rgba(200, 22, 29, .15); }
.menu-search input { width: 100%; min-height: 42px; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 15px; }
.menu-search input:focus-visible { outline: none; }
.search-mark { position: relative; flex: none; width: 14px; height: 14px; border: 2px solid var(--muted); border-radius: 50%; }
.search-mark::after { content: ""; position: absolute; right: -5px; bottom: -3px; width: 6px; height: 2px; background: var(--muted); transform: rotate(45deg); }
.menu-results { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; margin-bottom: 16px; font-size: 13px; color: var(--muted); }
.menu-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.menu-card { display: flex; flex-direction: column; overflow: hidden; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); transition: transform .2s ease, box-shadow .2s ease; }
.menu-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(35, 24, 22, .12); }
.menu-thumb { position: relative; }
.menu-thumb img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.badge-top { position: absolute; top: 10px; left: 10px; padding: 3px 10px; border-radius: 999px; background: var(--red); color: #fff; font-size: 12px; font-weight: 700; }
.menu-body { display: flex; flex: 1; flex-direction: column; gap: 2px; padding: 14px 16px 16px; }
.menu-category { font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--jade); }
.menu-body h3 { font-size: 17px; font-weight: 700; line-height: 1.45; }
.zh-name { font-size: 13px; line-height: 1.5; color: var(--muted); }
.menu-card-bottom { display: flex; justify-content: space-between; align-items: baseline; margin-top: auto; padding-top: 10px; }
.price { font-family: var(--display); font-weight: 400; font-size: 24px; line-height: 1.1; color: var(--red); }
.price small { margin-right: 2px; font-size: .6em; }
.dish-number { font-size: 12px; color: #c9b8a2; font-variant-numeric: tabular-nums; }
.menu-empty { padding: 30px 0; text-align: center; }
.menu-empty p { margin-bottom: 12px; }
.menu-note { margin-top: 30px; text-align: center; }

/* Story: dark panel like the hero */
.story-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: stretch; overflow: hidden; background: var(--night); color: var(--on-dark); border-radius: 8px; }
.story-photo { display: grid; place-items: center; padding: 24px; background: #fff; }
.story-text { display: grid; gap: 14px; align-content: center; padding: 44px 40px; }
.story-text .sec-kicker { color: var(--gold); }
.story-text h2 { font-family: var(--display); font-weight: 400; font-size: clamp(26px, 3vw, 38px); color: var(--on-dark); }
.story-text p { color: var(--on-dark-muted); }
.story-quote { padding-left: 14px; border-left: 3px solid var(--gold); font-size: 15px; color: var(--gold-soft); }

/* Chinese guests: red lacquer band */
main > section#china { max-width: none; padding-inline: 0; color: var(--on-dark); background: var(--fret-gold) repeat-x left top / 20px 14px, var(--fret-gold) repeat-x left bottom / 20px 14px, var(--lacquer); }
.china .sec-kicker { font-family: var(--han); font-size: 15px; letter-spacing: .2em; color: var(--gold); }
.china .sec-head h2 { color: #fff; }
.china .sec-head p { color: var(--on-dark-muted); }
.china-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.china-card { display: grid; gap: 6px; align-content: start; padding: 18px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(232, 184, 92, .35); border-radius: var(--radius); }
.china-card h3 { font-family: var(--han); font-weight: 900; font-size: 22px; color: var(--gold-soft); }
.china-card p { font-size: 14px; color: var(--on-dark-muted); }
.phrases { margin-top: 36px; padding: 24px; background: var(--rice); color: var(--ink); border-radius: 8px; }
.phrases h3 { font-size: 20px; font-weight: 700; color: var(--red); }
.phrases > p { margin-top: 4px; font-size: 14px; color: var(--muted); }
.phrase-grid { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 16px 0 0; padding: 0; }
.phrase-grid li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2px 14px; align-items: baseline; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: 4px; }
.phrase-grid .zh { font-family: var(--han-sans); font-size: 17px; font-weight: 700; color: var(--red); }
.phrase-grid .th { font-family: var(--body); font-size: 20px; font-weight: 700; text-align: right; }
.phrase-grid .en { grid-column: 1 / -1; font-size: 12px; color: var(--muted); }

/* Gallery */
.gal-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.gal-item { position: relative; overflow: hidden; aspect-ratio: 1; border-radius: var(--radius); }
.gal-item.wide { grid-column: span 2; grid-row: span 2; }
.gal-item img { width: 100%; height: 100%; object-fit: cover; }
.gal-item .cap { position: absolute; inset: auto 0 0; padding: 28px 12px 10px; background: linear-gradient(to top, rgba(28, 19, 18, .88), transparent); color: #fff; font-size: 13px; font-weight: 600; line-height: 1.4; }

/* FAQ: question as heading, answer right below */
.faq-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.faq-item { position: relative; padding: 18px 20px 18px 66px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.faq-item::before { content: "问"; position: absolute; left: 18px; top: 18px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 4px; background: var(--red); color: var(--gold-soft); font-family: var(--han); font-weight: 900; font-size: 17px; }
.faq-item h3 { font-size: 16px; font-weight: 700; line-height: 1.5; }
.faq-item p { margin-top: 6px; font-size: 15px; color: var(--muted); }

/* Location */
.loc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 32px; align-items: start; }
.loc-card { display: grid; gap: 6px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.loc-card:first-child { padding-top: 0; }
.loc-card h3 { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--jade); }
.loc-card address { font-style: normal; }
.loc-card .zh { font-size: 14px; color: var(--muted); }
.loc-phone a { font-family: var(--display); font-size: 28px; color: var(--red); text-decoration: none; }
.map-links, .order-links { display: flex; flex-wrap: wrap; gap: 8px; }
.map-links a, .order-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: none; }
.map-links a:hover, .order-links a:hover { border-color: var(--red); color: var(--red); }
.order-note { font-size: 12px; color: var(--muted); }
.loc-map { position: sticky; top: 96px; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; }
.loc-map iframe { display: block; width: 100%; height: 460px; border: 0; }

/* ---------- Footer ---------- */
footer { padding-top: 60px; font-size: 14px; color: var(--on-dark-muted); background: var(--fret-gold) repeat-x left top / 20px 14px, var(--night); }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; padding-bottom: 36px; }
.foot-grid img { width: 64px; height: 64px; margin-bottom: 12px; padding: 2px; border-radius: 50%; background: #fff; }
.foot-grid h3 { margin-bottom: 8px; font-size: 14px; letter-spacing: .06em; color: var(--gold); }
.foot-grid a { display: block; padding: 4px 0; color: var(--on-dark); text-decoration: none; }
.foot-grid a:hover { text-decoration: underline; }
.foot-grid address { font-style: normal; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: 16px; padding-bottom: 24px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 12px; }

/* ---------- Full menu page ---------- */
main > section.fm-hero { max-width: none; }
.fm-hero { padding: 48px max(var(--gutter-r), calc((100% - var(--content)) / 2 + 20px)) 52px max(var(--gutter-l), calc((100% - var(--content)) / 2 + 20px)); color: var(--on-dark); background: var(--fret-gold) repeat-x left bottom / 20px 14px, var(--night); }
.fm-hero h1 { font-family: var(--display); font-weight: 400; font-size: clamp(30px, 4.4vw, 52px); line-height: 1.3; }
.fm-hero h1 small { display: block; font-family: var(--han); font-weight: 900; font-size: .45em; letter-spacing: .2em; color: var(--gold); }
.fm-hero p { max-width: 70ch; margin-top: 8px; font-size: 15px; color: var(--on-dark-muted); }
.fm-hero .lead-alt { font-size: 13px; }
.fm-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.fm-jump a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 14px; border: 1px solid rgba(232, 184, 92, .45); border-radius: 999px; color: var(--on-dark); font-size: 14px; text-decoration: none; }
.fm-jump a span { color: var(--gold); }
.fm-jump a:hover { background: rgba(232, 184, 92, .14); }
.fm-tools { margin-top: 18px; }
.fm-tools .menu-search { max-width: 440px; }
.fm-hero .updated { margin-top: 12px; color: var(--on-dark-muted); }
.fm-cat { max-width: var(--content); margin-inline: auto; padding: 40px var(--gutter-r) 8px var(--gutter-l); }
.fm-cat h2 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 16px; padding-bottom: 8px; border-bottom: 2px solid var(--red); font-family: var(--display); font-weight: 400; font-size: 26px; color: var(--red); }
.fm-cat h2 small { font-family: var(--han-sans), var(--body); font-size: 14px; color: var(--muted); }
.fm-list { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 18px; margin: 0; padding: 0; }
.fm-item { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 14px 8px 8px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.fm-item img, .fm-noimg { width: 72px; height: 72px; object-fit: cover; border-radius: 4px; background: var(--paper); }
.fm-noimg { display: grid; place-items: center; }
.fm-noimg::after { content: "粥"; font-family: var(--han); font-weight: 900; font-size: 28px; color: var(--line); }
.fm-item .name { font-size: 15px; line-height: 1.45; }
.fm-item .tag { display: block; font-size: 11px; color: var(--muted); }
.fm-item .price { font-size: 20px; }

/* ---------- Mobile action bar: call / directions / menu always in reach ---------- */
.action-bar { display: none; }

/* ---------- Motion ---------- */
.js-motion .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js-motion .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js-motion .reveal { opacity: 1; transform: none; transition: none; }
  .menu-card { transition: none; }
  .menu-card:hover { transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid rgba(232, 184, 92, .45); border-radius: var(--radius); background: transparent; color: var(--on-dark); font-size: 20px; cursor: pointer; }
  .nav-actions { margin-left: auto; }
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 6px var(--gutter-r) 18px var(--gutter-l); background: var(--night); border-bottom: 1px solid rgba(232, 184, 92, .25); box-shadow: 0 18px 30px rgba(0, 0, 0, .35); }
  .nav-links.open { display: flex; }
  .nav-links a { grid-auto-flow: column; justify-content: start; align-items: baseline; gap: 10px; padding: 12px 8px; font-size: 16px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
  .nav-links a small { font-size: 13px; }
}
@media (max-width: 1100px) {
  .menu-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .china-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fm-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  main > section { padding-top: 56px; padding-bottom: 56px; }
  .hero-grid { grid-template-columns: auto minmax(0, 1fr); }
  .hero-plate { grid-column: 1 / -1; width: min(82%, 360px); margin-top: 24px; }
  .sig-grid, .loc-grid, .story-panel { grid-template-columns: minmax(0, 1fr); }
  .menu-grid, .gal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gal-item.wide { grid-row: span 1; aspect-ratio: 2 / 1; }
  .faq-list, .facts-list, .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .loc-map { position: static; }
  .loc-map iframe { height: 340px; }
  .story-text { padding: 28px 22px; }
}
@media (max-width: 760px) {
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
  .action-bar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 120; padding: 0 env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px); background: var(--night); border-top: 3px solid var(--gold); box-shadow: 0 -6px 20px rgba(0, 0, 0, .25); }
  .action-bar a { display: grid; place-content: center; justify-items: center; min-height: 60px; color: var(--on-dark); font-size: 15px; font-weight: 700; line-height: 1.25; text-decoration: none; }
  .action-bar a small { font-size: 11px; font-weight: 400; color: var(--gold); }
  .action-bar a.call { background: var(--red); }
  .action-bar a.call small { color: var(--gold-soft); }
  .action-bar a + a { border-left: 1px solid rgba(255, 255, 255, .08); }
}
@media (max-width: 560px) {
  .nav-inner { min-height: 62px; gap: 10px; }
  .brand { gap: 8px; }
  .brand img { width: 40px; height: 40px; }
  .brand-text strong { font-size: 14px; line-height: 1.25; white-space: normal; }
  .brand-text small { font-size: 11px; }
  .brand-place { display: none; }
  .lang-btn { padding: 4px 8px; font-size: 12px; min-height: 32px; }
  .hero { padding-top: 32px; }
  .hero::before { display: none; }
  .hero-sign { gap: 4px; padding: 10px 7px; }
  .hero-sign b { font-size: 30px; }
  .hero-sign small { font-size: 9px; letter-spacing: .04em; }
  .h1-main { font-size: 40px; }
  .h1-sub { font-size: 22px; }
  .zh-line { font-size: 15px; letter-spacing: .12em; }
  .hero-sub { font-size: 15px; }
  .hero-ctas .btn { flex: 1 1 calc(50% - 6px); justify-content: center; padding-inline: 10px; }
  .hero-ctas .btn-primary { flex-basis: 100%; }
  .hero-ctas .btn-ghost { flex-direction: column; gap: 0; text-align: center; }
  .hero-stats { gap: 8px; margin-top: 40px; }
  .hero-stat span { font-size: 12px; line-height: 1.5; }
  .facts-list { padding-inline: 16px; }
  .facts-list div { grid-template-columns: 84px minmax(0, 1fr); gap: 10px; }
  .facts-card h2, .facts-card .updated { padding-inline: 16px; }
  .menu-grid { gap: 10px; }
  .menu-body { padding: 10px 12px 12px; }
  .menu-body h3 { font-size: 15px; }
  .price { font-size: 20px; }
  .phrase-grid { grid-template-columns: minmax(0, 1fr); }
  .phrase-grid .th { font-size: 18px; }
  .faq-item { padding: 16px 16px 16px 58px; }
  .faq-item::before { left: 14px; top: 16px; }
  .fm-list { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Pahanan contemporary restaurant treatment ---------- */
:root {
  --night: #281613;
  --night-2: #1e1412;
  --lacquer: #571720;
  --red: #781f2a;
  --red-ink: #571720;
  --gold: #a18456;
  --gold-soft: #f0d9b0;
  --jade: #a18456;
  --rice: #f7f3eb;
  --paper: #f1e8dc;
  --card: #fffaf1;
  --ink: #262421;
  --muted: #655a51;
  --line: #dcd0c0;
  --on-dark: #fbf4e9;
  --on-dark-muted: #e5d4c5;
  --radius: 6px;
}

body { background: var(--rice); }
.topbar { background: var(--rice); color: var(--ink); border-bottom-color: var(--line); }
.topbar.scrolled { box-shadow: 0 6px 20px rgba(40, 22, 19, .08); }
.brand-text strong { color: var(--red-ink); }
.brand-text small { color: var(--muted); }
.nav-links a { color: var(--muted); }
.nav-links a:hover, .nav-links a.active { background: transparent; color: var(--red); }
.lang-switch { padding: 2px; background: #ede4d8; border-color: #e4d7c8; border-radius: 7px; }
.lang-btn { min-height: 40px; border: 0; color: var(--muted); }
.lang-btn.active { background: var(--red); color: #fff7e9; }
.nav-toggle { border-color: var(--line); background: var(--card); color: var(--red); }

.hero {
  padding-top: 0;
  background: radial-gradient(ellipse at 76% 30%, #6e2c23 0%, #431e19 40%, var(--night) 76%);
}
.hero.has-photo { background: radial-gradient(ellipse at 76% 30%, #6e2c23 0%, #431e19 40%, var(--night) 76%); }
.hero::before {
  z-index: 0; inset: 0; width: auto; height: auto; right: auto; top: auto;
  opacity: .16; pointer-events: none;
  background-image: repeating-linear-gradient(90deg, #c68e7024 0 1px, transparent 1px 38px), repeating-linear-gradient(0deg, #c68e7024 0 1px, transparent 1px 38px);
  mask-image: linear-gradient(100deg, transparent, #000 68%);
}
.hero::after { display: none; }
.hero-grid {
  position: relative; z-index: 1;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(30px, 6.5vw, 98px);
  padding-block: clamp(54px, 6vw, 88px) clamp(62px, 7vw, 96px);
}
.hero-visual { position: relative; grid-column: 2; min-width: 0; margin: 11px 22px 12px 10px; }
.hero-sign {
  position: absolute; z-index: 3; top: 8%; right: -22px; align-self: auto;
  display: block; margin: 0; padding: .6em .32em .5em;
  border: 1px solid #e7c795; border-radius: 0; outline: 3px solid #9c3031;
  writing-mode: vertical-rl; background: #9c3031; box-shadow: 0 8px 25px #1c0d0990; transform: rotate(4deg);
}
.hero-sign span { display: contents; }
.hero-sign b { font: 400 clamp(20px, 3vw, 41px)/1 var(--han); letter-spacing: .13em; color: #ffe1ae; }
.hero-sign small { display: none; }
.hero-tag { margin-bottom: 18px; color: var(--gold-soft); letter-spacing: .06em; }
.hero-tag .dot { width: 24px; height: 1px; border-radius: 0; background: currentColor; box-shadow: none; }
.open-now.is-open { background: #477563; }
.hero h1 { display: block; margin-top: 0; font-family: var(--display); font-weight: 700; letter-spacing: -.04em; }
.h1-main { font-size: clamp(42px, 5.9vw, 82px); }
.h1-sub { display: block; margin-top: 4px; font-size: clamp(40px, 5.9vw, 82px); color: var(--gold-soft); }
.zh-line { margin-top: 12px; font-family: var(--han); font-size: clamp(23px, 2.6vw, 39px); letter-spacing: .1em; color: #f2c69a; }
.hero-sub { max-width: 48ch; color: #f0d9cb; font-size: clamp(15px, 1.28vw, 18px); }
.hero-ctas { margin-top: 25px; }
.btn { border-radius: 5px; }
.hero .btn-primary { background: #e7c795; color: var(--night); box-shadow: none; }
.hero .btn-primary:hover { background: #f6dec0; }
.hero .btn-ghost { border-color: #bc9582; }
.hero .btn-ghost:hover { border-color: var(--gold-soft); background: #f7f3eb18; }
.hero-plate { width: 100%; max-width: 620px; margin: 0; justify-self: stretch; }
.hero-plate img {
  aspect-ratio: 1.16; border-radius: 54% 54% 5px 5px / 30% 30% 5px 5px;
  box-shadow: none; object-position: center 50%;
}
.hero-plate::before { content: ""; position: absolute; inset: -11px 10px 10px -11px; border: 1px solid #d9a771b8; border-radius: 54% 54% 4px 4px / 30% 30% 4px 4px; pointer-events: none; }
.hero-plate figcaption {
  left: -10px; bottom: -17px; transform: none; display: block; min-width: 0;
  max-width: min(93%, 370px); padding: 8px 15px; text-align: left;
  color: var(--night); background: var(--card); border: 1px solid var(--gold);
  border-radius: 4px; box-shadow: 0 9px 25px #1c0d0970;
}
.hero-plate figcaption small { color: var(--muted); }
.hero-plate figcaption strong { display: block; font-size: clamp(13px, 1.15vw, 16px); }
.hero-stats { position: relative; z-index: 1; margin-top: 0; padding-top: 18px; padding-bottom: 18px; border-top: 1px solid #ad796650; background: #22141291; }
.hero-stat strong { color: var(--gold-soft); }

.sec-kicker { letter-spacing: .1em; }
.sig-grid { gap: clamp(26px, 5vw, 64px); }
.sig-photo img { border-radius: 6px; box-shadow: 14px 14px 0 var(--paper); }
.chip, .sig-points .ic { background: var(--red); }
.menu-card { background: var(--card); border-radius: 6px; }
.menu-card:hover { box-shadow: 0 14px 30px rgba(35, 24, 22, .12); }
.menu-category { color: var(--red); }
.price { color: var(--red); }
.gal-grid { gap: clamp(9px, 1.3vw, 18px); }
.gal-item { border-radius: 6px; background: var(--night); text-decoration: none; }
.gal-item img { transition: transform .45s ease; }
.gal-item .cap { background: linear-gradient(transparent, #1e0d08e8 80%); font-size: clamp(12px, 1.25vw, 17px); font-weight: 700; padding: 32px 11px 12px; }
.gal-zoom { position: absolute; inset: 8px 8px auto auto; display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 50%; background: var(--card); color: var(--red); font-size: 19px; transition: transform .22s; }
.fm-secondary { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; }
.gallery-dialog { width: min(760px, calc(100% - 28px)); max-height: calc(100% - 24px); padding: 0; border: 1px solid var(--gold); border-radius: 8px; color: var(--on-dark); background: var(--night); }
.gallery-dialog::backdrop { background: rgba(28, 14, 12, .88); }
.gallery-dialog-inner { position: relative; padding: 13px; }
.gallery-dialog figure { margin: 0; }
.gallery-dialog img { width: 100%; height: min(64vh, 600px); object-fit: contain; background: var(--night-2); }
.gallery-dialog figcaption { margin: 11px 52px 5px; text-align: center; font-weight: 700; }
.gallery-dialog button { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--gold); border-radius: 5px; background: var(--night); color: var(--on-dark); font: inherit; font-size: 22px; cursor: pointer; }
.gallery-dialog button:hover { background: var(--red); }
.gallery-dialog :focus-visible { outline-color: var(--gold-soft); }
.gallery-close { position: absolute; z-index: 1; top: 18px; right: 18px; }
.gallery-controls { display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 13px; }
.signature-gallery { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 12px; }
.signature-dish { position: relative; display: block; overflow: hidden; min-width: 0; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); text-decoration: none; }
.signature-dish:first-child { grid-row: span 2; }
.signature-dish img { width: 100%; height: 100%; min-height: 140px; object-fit: cover; transition: transform .4s ease; }
.signature-dish:first-child img { min-height: 330px; }
.signature-dish figcaption { position: absolute; inset: auto 0 0; padding: 26px 12px 10px; background: linear-gradient(transparent, rgba(28, 19, 18, .88)); color: white; font-size: 14px; font-weight: 700; line-height: 1.4; }
@media (hover:hover) and (pointer:fine) {
  .gal-item:hover img { transform: scale(1.045); }
  .gal-item:hover .gal-zoom { transform: rotate(90deg); }
  .signature-dish:hover img { transform: scale(1.045); }
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .hero-visual { grid-column: auto; width: min(90%, 620px); justify-self: center; margin: 12px 12px 22px; }
  .hero-plate { width: 100%; }
}
@media (max-width: 560px) {
  .hero { padding-top: 0; }
  .hero-grid { padding-top: 32px; }
  .hero-visual { width: calc(100% - 18px); margin-inline: 8px; }
  .hero-sign { top: 8%; right: -2px; padding: .5em .3em; }
  .hero-sign b { font-size: 26px; }
  .h1-main, .h1-sub { font-size: 40px; }
  .zh-line { font-size: 23px; letter-spacing: .07em; }
  .hero-plate { width: 100%; }
  .hero-plate figcaption { max-width: 90%; }
  .hero-stats { gap: 8px; }
  .hero-stat span { font-size: 12px; line-height: 1.5; }
  .signature-gallery { gap: 8px; }
  .signature-dish figcaption { font-size: 12px; }
  .signature-dish:first-child img { min-height: 280px; }
}
@media (max-width: 1180px) {
  .nav-links.open { background: var(--rice); border-bottom-color: var(--line); box-shadow: 0 18px 30px rgba(40, 22, 19, .12); }
  .nav-links.open a { color: var(--ink); border-bottom-color: var(--line); }
  .nav-links.open a:hover, .nav-links.open a.active { color: var(--red); }
}

.hero .btn-primary small { color: #59382e; }
.hero .btn-ghost small { color: var(--gold-soft); }
.fm-jump a { min-height: 44px; }
.lang-btn { min-height: 44px; }

@media (max-width: 1180px) {
  html:not(.js-ready) .topbar { position: relative; }
  html:not(.js-ready) .nav-inner { flex-wrap: wrap; }
  html:not(.js-ready) .nav-toggle { display: none; }
  html:not(.js-ready) .nav-links {
    position: static;
    order: 3;
    display: flex;
    flex: 1 0 100%;
    flex-flow: row wrap;
    justify-content: start;
    margin: 0;
    padding: 0 0 8px;
    border: 0;
    box-shadow: none;
    background: transparent;
  }
  html:not(.js-ready) .nav-links a { min-height: 44px; font-size: 14px; }
}

.fm-item .fm-stock { color: var(--red-ink); font-weight: 700; }
