:root {
  --forest: #246B50; --forest-dark: #1B5440; --mint: #E4F3EB; --cream: #F7F5EF;
  --ink: #1F2622; --muted: #6B756F; --line: #E6EAE6; --card: #fff; --gold: #C9962B;
  --shadow: 0 1px 2px rgba(16,24,20,.05), 0 6px 18px rgba(16,24,20,.06);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: #fff; color: var(--ink); font: 15px/1.5 Inter, system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { display: block; }
.boot { min-height: 100vh; display: grid; place-items: center; }
.spinner { width: 34px; height: 34px; border: 3px solid var(--mint); border-top-color: var(--forest); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 58px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--forest); text-decoration: none; }
.mark { width: 32px; height: 32px; border-radius: 10px; background: var(--forest); display: grid; place-items: center; }
.mark svg { width: 18px; height: 18px; }
.live { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); }
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #2FB36B; box-shadow: 0 0 0 0 rgba(47,179,107,.5); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(47,179,107,0); } 100% { box-shadow: 0 0 0 0 rgba(47,179,107,0); } }

/* Restaurant page (like the reference: cover, icon, title, tabs, cards) */
.cover { height: 230px; background: linear-gradient(135deg, #1B5440, #2E7D5E 55%, #C9962B); background-size: cover; background-position: center; position: relative; }
.cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,.15)); }
.r-head { position: relative; }
.r-icon { width: 76px; height: 76px; border-radius: 20px; background: #fff; box-shadow: var(--shadow); display: grid; place-items: center; font-size: 40px; margin-top: -38px; position: relative; z-index: 1; }
.r-title { font-size: 40px; line-height: 1.1; letter-spacing: -1px; margin: 18px 0 6px; font-weight: 800; }
.r-tagline { color: var(--muted); font-size: 17px; margin: 0; }
.r-info { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 14px 0 0; color: var(--muted); font-size: 14px; }
.r-info a { text-decoration: none; }
.table-badge { display: inline-flex; align-items: center; gap: 6px; background: var(--mint); color: var(--forest); font-weight: 700; padding: 6px 12px; border-radius: 20px; margin-top: 14px; font-size: 14px; }
.menu-intro { font-size: 24px; font-weight: 700; margin: 34px 0 10px; }
.tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: none; position: sticky; top: 58px; background: #fff; z-index: 10; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; border: 0; background: transparent; padding: 10px 12px; font: inherit; font-size: 14px; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tab:hover { color: var(--ink); }
.tab.on { color: var(--ink); font-weight: 700; border-bottom-color: var(--ink); }
.cat-title { font-size: 20px; font-weight: 700; margin: 26px 0 12px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.dish { background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: 0 1px 2px rgba(0,0,0,.03); transition: transform .15s, box-shadow .15s, opacity .3s; }
.dish:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.dish-img { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; background: var(--cream); }
.dish-ph { aspect-ratio: 16 / 10; display: grid; place-items: center; font-size: 64px; background: linear-gradient(135deg, #F3EFE4, #E9F2EC); }
.dish-body { padding: 12px 14px 14px; }
.dish-name { font-weight: 600; display: flex; gap: 6px; align-items: baseline; }
.dish-desc { color: var(--muted); font-size: 13px; margin: 4px 0 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dish-price { font-weight: 700; margin-top: 8px; }
.dish.leaving { opacity: 0; }
.empty { text-align: center; padding: 70px 20px; color: var(--muted); }
.empty .big { font-size: 46px; }
.empty h2 { color: var(--ink); margin: 12px 0 6px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 10px; background: var(--forest); color: #fff; text-decoration: none; font-weight: 600; margin-top: 16px; }

/* Directory */
.hero { background: linear-gradient(135deg, #14402F, #246B50 60%, #3B8A68); color: #fff; padding: 64px 0 56px; position: relative; overflow: hidden; }
.hero h1 { font-size: 46px; line-height: 1.08; letter-spacing: -1.2px; margin: 0 0 12px; max-width: 640px; }
.hero p { opacity: .88; font-size: 18px; max-width: 560px; margin: 0; }
.hero .glow { position: absolute; right: -140px; top: -120px; width: 460px; height: 460px; border-radius: 50%; background: radial-gradient(circle, rgba(201,150,43,.35), transparent 65%); }
.search { margin: -26px auto 0; position: relative; z-index: 2; max-width: 560px; }
.search input { width: 100%; height: 54px; border-radius: 14px; border: 1px solid var(--line); padding: 0 18px 0 48px; font: inherit; font-size: 16px; box-shadow: var(--shadow); outline: none; }
.search input:focus { border-color: var(--forest); }
.search svg { position: absolute; left: 16px; top: 16px; width: 22px; height: 22px; color: var(--muted); }
.r-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin: 34px 0 60px; }
.r-card { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; text-decoration: none; background: #fff; transition: transform .15s, box-shadow .15s; display: flex; flex-direction: column; }
.r-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.r-card .thumb { height: 150px; background: linear-gradient(135deg, #1B5440, #2E7D5E 55%, #C9962B); background-size: cover; background-position: center; display: grid; place-items: center; color: #fff; font-size: 44px; font-weight: 800; }
.r-card .body { padding: 14px 16px 16px; display: grid; gap: 4px; flex: 1; }
.r-card .name { font-weight: 700; font-size: 18px; }
.r-card .meta { color: var(--muted); font-size: 13px; }
.r-card .cta { color: var(--forest); font-weight: 700; font-size: 14px; margin-top: 6px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; margin-top: 40px; }
.section-head h2 { margin: 0; font-size: 24px; }

footer { border-top: 1px solid var(--line); padding: 26px 0 40px; color: var(--muted); font-size: 13px; margin-top: 40px; }
footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

@media (max-width: 640px) {
  .cover { height: 170px; }
  .r-title { font-size: 30px; }
  .hero { padding: 44px 0 48px; }
  .hero h1 { font-size: 32px; }
  .cards { grid-template-columns: 1fr 1fr; gap: 12px; }
  .dish-ph { font-size: 44px; }
  .dish-body { padding: 10px; }
}
@media (max-width: 380px) { .cards { grid-template-columns: 1fr; } }

/* ---------- Restaurant menu page: Notion-style digital menu ---------- */
.np { --np-text: rgb(55,53,47); --np-sub: rgba(55,53,47,.65); --np-faint: rgba(55,53,47,.45); --np-line: rgba(55,53,47,.09);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI Variable Display", "Segoe UI", Helvetica, "Apple Color Emoji", Arial, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol";
  color: var(--np-text); background: #fff; min-height: 100vh; position: relative; -webkit-font-smoothing: auto; }
.np-cover { height: 30vh; min-height: 170px; max-height: 280px; background: #E9E5E0 center 50% / cover no-repeat; }
.np-page { max-width: 2000px; margin: 0 auto; padding: 0 104px 64px; }
.np-icon { width: 62px; height: 62px; margin: -28px 0 0 20px; position: relative; z-index: 1; }
.np-icon svg { width: 100%; height: 100%; display: block; }
.np-title { font-size: 40px; font-weight: 700; line-height: 1.2; margin: 28px 0 0; padding: 3px 0; letter-spacing: 0; }
.np-tagline { margin: 4px 0 0; color: var(--np-sub); font-size: 16px; }
.np-info { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 8px; font-size: 14px; color: var(--np-sub); }
.np-info a { color: inherit; text-decoration: none; }
.np-table { display: inline-block; margin-top: 10px; padding: 2px 8px; border-radius: 4px; background: rgba(55,53,47,.06); font-size: 14px; }
.np-h2 { font-size: 24px; font-weight: 600; line-height: 1.3; margin: 48px 0 2px; padding: 3px 0; }
.np-tabs { display: flex; align-items: center; gap: 2px; overflow-x: auto; scrollbar-width: none; margin-top: 12px; }
.np-tabs::-webkit-scrollbar { display: none; }
.np-tab { position: relative; flex: none; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 8px; border: 0; background: none; font: inherit; font-size: 14px; color: var(--np-sub); cursor: pointer; white-space: nowrap; }
.np-tab::before { content: ""; position: absolute; inset: 4px 0; border-radius: 4px; background: transparent; transition: background 20ms ease-in; z-index: -1; }
.np-tab:hover::before { background: rgba(55,53,47,.06); }
.np-tab { isolation: isolate; }
.np-tab.on { color: var(--np-text); font-weight: 500; }
.np-tab.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--np-text); }
.np-tab-ic { width: 15px; height: 15px; flex: none; }
.np-tab:focus-visible { outline: 2px solid rgba(35,131,226,.6); outline-offset: -2px; border-radius: 4px; }
.np-db-title { font-size: 20px; font-weight: 700; line-height: 1.3; margin: 16px 0 20px; }
.np-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .np-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.np-card { background: #fff; border-radius: 10px; overflow: hidden; box-shadow: rgba(15,15,15,.1) 0 0 0 1px, rgba(15,15,15,.1) 0 2px 4px; transition: background 100ms ease-out; }
.np-card:hover { background: rgb(250,250,249); }
.np-card-cover { aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 1px solid rgba(55,53,47,.06); }
.np-card-cover img { width: 100%; height: 100%; object-fit: cover; object-position: center 50%; display: block; }
.np-ph { display: grid; place-items: center; background: rgb(247,246,243); }
.np-ph span { font-size: 56px; opacity: .9; }
.np-card-body { padding: 10px 10px 10px; }
.np-card-name { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; line-height: 1.5; min-height: 24px; }
.np-emo { font-size: 14px; line-height: 1; flex: none; }
.np-txt, .np-prop { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.np-prop { font-size: 12px; line-height: 1.5; padding: 6px 0 2px; color: var(--np-text); }
.np-empty { color: var(--np-sub); padding: 28px 0; font-size: 14px; }
.np-foot { margin-top: 56px; font-size: 12px; color: var(--np-faint); }
.np-foot a { color: inherit; }
.np-toc { position: fixed; right: 22px; top: 38vh; display: grid; gap: 11px; justify-items: end; }
.np-toc i { display: block; width: 12px; height: 2px; border-radius: 1px; background: rgba(55,53,47,.18); }
.np-toc i.on { width: 16px; background: rgba(55,53,47,.75); }
@media (max-width: 1100px) { .np-toc { display: none; } }
@media (max-width: 900px) { .np-page { padding: 0 32px 48px; } }
@media (max-width: 640px) {
  .np-cover { height: 180px; min-height: 0; }
  .np-page { padding: 0 16px 40px; }
  .np-icon { width: 50px; height: 50px; margin: -28px 0 0 6px; }
  .np-title { margin-top: 16px; }
  .np-title { font-size: 30px; }
  .np-h2 { font-size: 20px; margin-top: 28px; }
  .np-gallery { grid-template-columns: 1fr 1fr; gap: 12px; }
  .np-ph span { font-size: 40px; }
}
@media (max-width: 360px) { .np-gallery { grid-template-columns: 1fr; } }
