/* 三個方向共用的元件（DESIGN.md「固定的元件」） */
.bi { display: inline-flex; flex-direction: column; gap: 4px; line-height: 1.25; }
.bi-zh { font-weight: 700; }
.bi-en { font: 500 max(13px, 0.42em)/1.3 var(--f-body); color: var(--ink-2); }

.xj-head {
  position: sticky; top: 0; z-index: 50;
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: var(--s-24);
  padding: var(--s-12) var(--margin); background: var(--paper);
}
.xj-mark { display: inline-flex; flex-direction: column; text-decoration: none; color: var(--ink); line-height: 1; }
.xj-mark-zh { font: 900 var(--t-31)/1 var(--f-display); letter-spacing: -0.02em; }
.xj-mark-en { font: 700 13px/1 var(--f-body); letter-spacing: 0.08em; margin-top: 4px; }
.xj-nav { display: flex; gap: var(--s-24); }
.xj-nav a, .xj-dirs a { color: var(--ink); text-decoration: none; font-weight: 700; }
.xj-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.xj-call {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 var(--s-16);
  background: var(--ink); color: var(--paper); font-weight: 700; text-decoration: none;
}
.xj-dirs { display: flex; border: 1px solid var(--ink); }
.xj-dirs a { min-width: 32px; min-height: 32px; display: grid; place-items: center; font: 700 var(--t-13)/1 var(--f-body); }
.xj-dirs a + a { border-left: 1px solid var(--ink); } /* taste-skill-ignore：比較鈕的分段 */
.xj-dirs a[aria-current="true"] { background: var(--ink); color: var(--paper); }

.xj-bar { display: none; }
@media (max-width: 767px) {
  .xj-head { grid-template-columns: auto 1fr auto; gap: var(--s-12); }
  .xj-nav { gap: var(--s-16); justify-content: flex-end; font-size: 15px; }
  .xj-call { display: none; }
  /* 手機上 A／B／C 比較鈕浮在訂位條上方，不佔頁首第二行 */
  .xj-dirs { position: fixed; right: 16px; bottom: calc(56px + 12px + env(safe-area-inset-bottom)); z-index: 61; background: var(--wall); }
  .xj-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; height: 56px;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 max(16px, env(safe-area-inset-left)) env(safe-area-inset-bottom) max(16px, env(safe-area-inset-right));
    background: var(--ink); color: var(--paper); font-weight: 700; text-decoration: none;
  }
  body { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
}

.sec-head {
  display: flex; align-items: baseline; gap: var(--s-16);
  border-top: 3px solid var(--ink); padding-top: var(--s-12);
  font: 700 var(--t-13)/1.5 var(--f-body); letter-spacing: 0.04em;
}
.sec-head .no { font-family: var(--f-display); font-weight: 900; }
/* 區塊標題：3px 粗線加標題字，不用小標（kicker） */
.h-rule { margin: 0; border-top: 3px solid var(--ink); padding-top: var(--s-12); font: 900 var(--t-41)/1.1 var(--f-display); letter-spacing: -0.02em; }

.xj-foot { padding: var(--s-96) var(--margin) var(--s-96); display: grid; gap: var(--s-32); }
.xj-foot-name .bi-zh { font: 900 var(--t-55)/1 var(--f-display); letter-spacing: -0.02em; }
.xj-foot-info { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-24); margin: 0; }
.xj-foot-info dt { font: 700 var(--t-13)/1.5 var(--f-body); letter-spacing: 0.04em; color: var(--ink-2); }
.xj-foot-info dd { margin: 0; }
.xj-foot a { color: var(--ink); }
.xj-foot-note { margin: 0; font-size: var(--t-13); color: var(--ink-2); }
@media (max-width: 767px) { .xj-foot-info { grid-template-columns: 1fr 1fr; } }

/* 菜的詳細：手機從底部滑出，桌機在中間（sitemap M4） */
.xj-sheet { border: 0; padding: 0; background: var(--paper); color: var(--ink); width: min(720px, 100vw); max-height: 88vh; }
.xj-sheet::backdrop { background: rgba(43, 40, 38, .55); }
.xj-sheet-in { padding: var(--s-24); display: grid; gap: var(--s-16); }
.xj-sheet-close { justify-self: end; min-height: 48px; padding: 0 var(--s-16); border: 1px solid var(--ink); background: var(--paper); font: 700 var(--t-17) var(--f-body); color: var(--ink); cursor: pointer; }
.xj-sheet-photos { display: grid; grid-auto-flow: column; grid-auto-columns: 80%; gap: var(--s-12); overflow-x: auto; scroll-snap-type: x mandatory; }
.xj-sheet-photos img { width: 100%; height: auto; scroll-snap-align: start; background: var(--wall); }
.xj-sheet-title { margin: 0; }
.xj-sheet-title .bi-zh { font: 900 var(--t-41)/1.05 var(--f-display); letter-spacing: -0.02em; }
.xj-sheet-price { border-collapse: collapse; width: 100%; }
.xj-sheet-price th, .xj-sheet-price td { border-top: 1px solid var(--ink); padding: var(--s-8) 0; text-align: left; font-weight: 500; }
.xj-sheet-price td { text-align: right; font: 900 var(--t-23)/1.2 var(--f-display); }
.xj-sheet-meta { margin: 0; font-weight: 700; }
.xj-sheet-desc { margin: 0; }
.xj-sheet-desc small { display: block; color: var(--ink-2); font-size: var(--t-13); }
@media (max-width: 767px) {
  .xj-sheet { margin: auto 0 0; width: 100vw; max-width: 100vw; }
}
