/* ==========================================================
   페이지투웹 kit · 디자인 "메뉴판" (menu). page.css 다음에 읽는다. 2026-11-16 다시 꾸밈.
   겉모습: 가게 앞 사진이 첫 화면을 채우고 가게 이름이 사진 아래 가장자리에 전체 폭으로 걸린다(영화 제목처럼).
     바탕은 퍼티 회색, 글자는 검정, 색은 간판·차양에서 가져온 accent 한 가지. 빵 분류는 검정 면 전체에 오늘 굽는 시각을 크게.
     선·그림자·둥근 모서리 없음(원산지 표는 진짜 표라 줄이 있다). 사진 모서리는 각지게.
   글꼴: 한글 Pretendard(제목 800, 본문 400~700), 가격·시각·영문 이름 Barlow Condensed 700(영문만). 둘 다 SIL OFL 1.1.
   휴대폰: 짧은 사진·이름(화면의 30%) → 영업 상태·오븐 한 줄·세 단추 → 붙는 분류 줄 → 메뉴 → 원산지 → 동네 사진 위 가게 정보 → 검정 꼬리.
   PC(1024px 이상, 2026-11-21): 스크롤하지 않는 한 화면. 왼쪽 가게·분류 | 가운데 메뉴 목록(칸 안에서만 스크롤) | 오른쪽 상세 칸.
   감싸는 칸(.mn-side, .mn-pane)은 휴대폰·태블릿에서 display: contents라 예전처럼 한 줄로 흐른다.
   ========================================================== */

@font-face {
  font-family: "MN Barlow Condensed"; src: url("../fonts/menu-BarlowCondensed-700-latin.woff2") format("woff2"); font-weight: 700; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20A9, U+20AC, U+2212;
}

:root {
  --paper: #D7D8D4;                                  /* 흐린 날 콘크리트 같은 회색 바탕 (theme.paper로 바꿀 수 있다) */
  --ink: #0A0A0A;                                    /* (theme.ink) */
  --mn-surface: color-mix(in srgb, var(--ink) 6%, var(--paper));
  --muted: color-mix(in srgb, var(--ink) 78%, var(--paper));
  --mn-text: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", sans-serif;
  --mn-cond: "MN Barlow Condensed", var(--mn-text);
  --pad: 16px;
  --mn-tabs-h: 52px;
  --mn-ease: cubic-bezier(.16, 1, .3, 1);
}

html { background: var(--paper); scroll-behavior: auto; }
body { background: var(--paper); color: var(--ink); font: 400 16px/1.5 var(--mn-text); -webkit-font-smoothing: antialiased; }
main { display: block; }
figure { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.mn :is(h1, h2, h3) { margin: 0; font-weight: 800; }
.mn a { color: inherit; }
.mn button { font-family: inherit; }

/* ---------- 첫 화면: 가게 앞 사진 + 아래 가장자리의 이름 ---------- */
.mn-side, .mn-pane { display: contents; }
.mn-home, .mn-detail { display: none; }
.mn-hero { position: relative; height: 30svh; min-height: 210px; max-height: 360px; overflow: hidden; background: #5B5D5C; color: #fff; }
.mn-hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; display: block;
  transform: scale(1.06); transition: transform 1.8s var(--mn-ease);
}
.mn.is-ready .mn-hero-img { transform: none; }
/* 글자 밑만 어둡게 (사진 위 글자를 위한 무채색 가림막) */
.mn-hero::after { content: ""; position: absolute; inset: 30% 0 0; background: linear-gradient(to top, rgba(0, 0, 0, .66), rgba(0, 0, 0, 0)); pointer-events: none; } /* taste-skill-ignore: 사진 위 글자 밑 무채색 가림막 */
.mn-hero-text { position: absolute; left: var(--pad); right: var(--pad); bottom: 16px; z-index: 1; }
.mn-sub { margin: 6px 0 0; max-width: 30em; font-size: 15px; line-height: 1.45; font-weight: 600; }
.mn-name { font-size: 40px; font-weight: 800 !important; line-height: 1.05; letter-spacing: -.04em; margin-left: -.02em !important; }
.mn-name.is-latin { font-family: var(--mn-cond); text-transform: uppercase; letter-spacing: 0; line-height: 1; font-size: 48px; }
.mn-lang {
  position: absolute; top: max(12px, env(safe-area-inset-top)); right: 12px; z-index: 2;
  min-height: 44px; padding: 0 16px; border: 0; border-radius: 0; cursor: pointer;
  background: var(--paper); color: var(--ink); font: 600 14px/1 var(--mn-text);
  transition: transform .15s ease;
}
.mn-lang[lang="en"] { font: 700 17px/1 var(--mn-cond); letter-spacing: .02em; }
.mn-lang:active { transform: scale(.96); }

/* ---------- 지금: 영업 상태 · 오븐 한 줄 · 전화·길찾기·와이파이 ---------- */
.mn-now { padding: 14px var(--pad) 16px; display: grid; gap: 12px; }
.mn-now-text { display: grid; gap: 6px; }
.mn-status { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 10px; text-decoration: none; }
.mn-status b { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.mn-status > span { font-size: 16px; color: var(--muted); }
.mn-status.is-open b { color: var(--accent); }
.mn-status.is-closing b { color: #8A4F00; }
.mn-oven-line { justify-self: start; font-size: 16px; font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px; min-height: 28px; }
.mn-quick { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 6px; }
.mn-quick > * {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 6px;
  border: 0; border-radius: 0; background: var(--mn-surface); cursor: pointer; color: var(--ink); text-decoration: none; font: 600 14px/1.2 var(--mn-text);
  transition: background-color .2s ease, transform .15s ease;
}
.mn-quick svg { width: 19px; height: 19px; flex: none; }
.mn-quick > *:active { transform: scale(.97); background: color-mix(in srgb, var(--ink) 12%, var(--paper)); }

/* ---------- 붙어 다니는 분류 줄: 현재 분류에 검정 칸이 미끄러져 온다 ---------- */
.mn-tabs { position: sticky; top: 0; z-index: 20; background: var(--paper); transition: background-color .25s ease; }
.mn-tabs.is-stuck { background: var(--mn-surface); }
.mn-tabs-in {
  position: relative; display: flex; height: var(--mn-tabs-h); padding: 0 calc(var(--pad) - 12px);
  overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none;
}
.mn-tabs-in::-webkit-scrollbar { display: none; }
.mn-tabs-in a {
  position: relative; z-index: 1; flex: none; display: flex; align-items: center; padding: 0 12px; text-decoration: none; white-space: nowrap;
  font-size: 16px; font-weight: 650; color: var(--muted); transition: color .25s ease;
}
.mn-tabs-in a[aria-current] { color: var(--paper); }
.mn-ink {
  position: absolute; left: 0; top: 8px; bottom: 8px; width: var(--w, 0); background: var(--ink);
  transform: translateX(var(--x, 0)); transition: transform .4s var(--mn-ease), width .4s var(--mn-ease);
}
.mn-ink.is-instant { transition: none; }

/* ---------- 메뉴 구역 ---------- */
.mn-cat, .mn-info { scroll-margin-top: calc(var(--mn-tabs-h) - 1px); }
.mn-cat { padding: 24px var(--pad) 28px; display: flex; flex-direction: column; }
/* 휴대폰·태블릿: 분류 공통 옵션은 목록 뒤에(첫 화면에 메뉴가 먼저 보이게) */
.mn-cat > .mn-cat-opts { order: 1; margin-bottom: 24px; }
.mn-cat > .mn-stock-note { order: 2; }
.mn-cat[style*="--tone"] { background: var(--tone); --mn-surface: color-mix(in srgb, var(--ink) 7%, var(--tone)); }
/* 분류 공통 옵션: 한 번만 적는다 */
.mn-cat-opts { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; }
.mn-cat-opts div { display: flex; gap: 6px; padding: 7px 10px; background: var(--mn-surface); font-size: 14px; line-height: 1.3; }
.mn-cat-opts dt { font-weight: 700; }
.mn-cat-opts dd { margin: 0; }
/* 남은 개수 */
.mn-stock { font-weight: 700; color: var(--ink); }
.mn-stock.is-low { color: var(--paper); background: var(--accent); padding: 2px 6px; }
.mn-stock.is-out, .mn-stock.is-wait, .mn-stock.is-closed { color: var(--muted); font-weight: 600; }
.mn-item.is-out .mn-iname, .mn-item.is-out .mn-price { text-decoration: line-through; text-decoration-thickness: 1.5px; color: var(--muted); }
.mn-stock-note { margin: 18px 0 0; max-width: 46ch; font-size: 15px; line-height: 1.55; color: var(--muted); text-wrap: pretty; }
/* 사진 없는 메뉴의 그림 */
/* 그림은 칸 없이 분류 바탕 위에 강조색으로(사진 자리 표시처럼 보이지 않게) */
.mn-photo.is-draw { display: grid; place-items: center; background: none; color: var(--accent); --cut: var(--tone, var(--paper)); }
.mn-draw { width: 92%; height: 92%; fill: currentColor; }
.mn-draw .c { fill: none; stroke: var(--cut, var(--paper)); stroke-width: 4.5; stroke-linecap: round; }
.mn-draw .f { fill: var(--cut, var(--paper)); }
.mn-draw .l > * { stroke: var(--cut, var(--paper)); stroke-width: 4; }
.mn-cat-head h2 { font-size: 32px; line-height: 1; letter-spacing: -.04em; }
.mn[lang="en"] .mn-cat-head h2 { font-family: var(--mn-cond); font-size: 36px; letter-spacing: -.01em; line-height: .92; }
.mn-cat-head p { margin: 10px 0 0; max-width: 40ch; font-size: 16px; line-height: 1.55; }

.mn-list { margin: 14px 0 0; padding: 0; list-style: none; }
.mn-hit {
  display: grid; width: 100%; gap: 14px; padding: 16px 0; border: 0; background: none; cursor: pointer;
  text-align: left; color: inherit; font: inherit; -webkit-tap-highlight-color: transparent;
  transition: transform .15s ease, opacity .2s ease;
}
.mn-hit:active { transform: scale(.985); opacity: .7; }
.mn-text { display: grid; gap: 5px; min-width: 0; }
.mn-line { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.mn-iname { font-size: 18px; font-weight: 700; line-height: 1.35; letter-spacing: -.02em; }
.mn-price { flex: none; font: 800 19px/1.35 var(--mn-text); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.mn-desc {
  max-width: 60ch; font-size: 16px; line-height: 1.55; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.mn-more { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; font-size: 14px; font-weight: 600; color: var(--muted); }
.mn-more > span { display: inline-flex; align-items: center; gap: 2px; }
.mn-more svg { width: 15px; height: 15px; }
.mn-ibakes b { font-weight: 600; }
.mn-ibakes b.is-now { font-weight: 800; color: var(--ink); }
.mn-prices { display: grid; justify-items: end; gap: 4px; }
.mn-prices small { font: 600 14px/1 var(--mn-text); color: var(--muted); margin-right: 4px; }
.mn-sheet-price .mn-prices { justify-items: start; }

.mn-tag {
  display: inline-block; margin-left: 8px; padding: 3px 6px 2px; vertical-align: 2px;
  font-style: normal; font-size: 14px; font-weight: 700; line-height: 1.2; letter-spacing: 0; white-space: nowrap;
  background: var(--mn-surface); color: var(--accent);
}
.mn-tag.is-signature { background: var(--ink); color: var(--paper); }
.mn-tag.is-new { color: var(--ink); }
.mn-tag.is-spicy { color: #A12A12; }

.mn-photo { display: block; overflow: hidden; background: var(--mn-surface); }
.mn-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--mn-ease); }
/* 사진 있는 대표: 사진이 화면 폭 가득, 그 아래 이름 */
.mn-item.is-feature .mn-hit { padding-top: 10px; }
.mn-item.is-feature .mn-photo { aspect-ratio: 4 / 3; margin-inline: calc(-1 * var(--pad)); }
.mn-item.is-feature .mn-iname { font-size: 22px; }
.mn-item.is-feature .mn-price { font-size: 22px; }
.mn-item.is-feature .mn-desc { -webkit-line-clamp: 3; font-size: 16px; color: inherit; }
/* 첫 분류의 대표는 휴대폰에서도 작은 사진으로(첫 화면에 메뉴 두세 개가 보이게) */
.mn-cat:first-child .mn-item.is-feature .mn-hit { grid-template-columns: minmax(0, 1fr) 96px; align-items: start; padding-top: 16px; }
.mn-cat:first-child .mn-item.is-feature .mn-photo { order: 2; aspect-ratio: 1; margin-inline: 0; }
.mn-cat:first-child .mn-item.is-feature :is(.mn-iname, .mn-price) { font-size: 18px; }
.mn-cat:first-child .mn-item.is-feature .mn-desc { -webkit-line-clamp: 2; }
/* 사진 있는 일반: 오른쪽에 작은 정사각 */
.mn-item.is-thumb .mn-hit { grid-template-columns: minmax(0, 1fr) 96px; align-items: start; }
.mn-item.is-thumb .mn-photo { aspect-ratio: 1; }
.mn-item.is-thumb .mn-desc { -webkit-line-clamp: 3; }

/* ---------- 빵: 검정 면 + 오늘 굽는 시각 (살아 있는 부분) ---------- */
.mn-cat.is-oven { --muted: color-mix(in srgb, var(--paper) 76%, var(--ink)); background: var(--ink); color: var(--paper); padding-bottom: 36px; }
.mn-cat.is-oven .mn-tag.is-signature { background: var(--paper); color: var(--ink); }
.mn-cat.is-oven .mn-tag:not(.is-signature) { background: #2A2A2A; color: var(--paper); }
.mn-cat.is-oven .mn-ibakes b.is-now { color: var(--paper); }
.mn-cat.is-oven .mn-photo { background: #222; }
.mn-cat.is-oven .mn-photo.is-draw { background: none; color: var(--paper); --cut: var(--ink); }
.mn-cat.is-oven .mn-stock { color: var(--paper); }
.mn-cat.is-oven .mn-stock.is-low { background: var(--paper); color: var(--ink); }
.mn-cat.is-oven .mn-stock:is(.is-out, .is-wait, .is-closed) { color: var(--muted); }
.mn-oven { margin-top: 26px; }
.mn-bakes { display: flex; gap: 22px; margin: 0; padding: 0; list-style: none; }
.mn-bakes time {
  display: block; white-space: nowrap; font: 700 36px/.9 var(--mn-cond); letter-spacing: -.01em; font-variant-numeric: tabular-nums;
  color: color-mix(in srgb, var(--paper) 50%, var(--ink)); transition: color .6s ease;
}
.mn-bakes .is-now time, .mn-bakes:not(:has(.is-now)) .is-next time { color: var(--paper); }
.mn-oven-say { margin: 16px 0 0; max-width: 34ch; font-size: 18px; line-height: 1.5; }
.mn-oven-say b { font-weight: 800; }

/* ---------- 원산지 표시: 한 단 진한 면 위의 진짜 표 ---------- */
.mn-origin { margin: 24px var(--pad) 8px; padding: 26px 20px 18px; background: #F6F6F3; --muted: color-mix(in srgb, var(--ink) 72%, #F6F6F3); }
.mn-origin h2 { font-size: 30px; letter-spacing: -.03em; margin-bottom: 14px; }
.mn-origin table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.5; }
.mn-origin thead th { font-size: 14px; font-weight: 600; color: var(--muted); text-align: left; padding: 0 8px 8px 0; border-bottom: 1px solid color-mix(in srgb, var(--ink) 22%, transparent); }
.mn-origin tbody th, .mn-origin td { padding: 10px 8px 10px 0; text-align: left; vertical-align: top; border-bottom: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); }
.mn-origin tbody tr:last-child > * { border-bottom: 0; }
.mn-origin tbody th { font-weight: 700; white-space: nowrap; }
.mn-origin td:last-child { color: var(--muted); font-size: 14px; padding-right: 0; }
.mn-origin-note { margin: 18px 0 0; font-size: 14px; line-height: 1.6; color: var(--muted); }
@media (max-width: 420px) {
  /* 좁은 화면: 품목 · 원산지를 한 줄, 쓰인 메뉴는 그 아래 */
  .mn-origin thead { display: none; }
  .mn-origin tr { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; padding: 10px 0; border-bottom: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); }
  .mn-origin tbody tr:last-child { border-bottom: 0; }
  .mn-origin tbody th, .mn-origin td { padding: 0; border: 0; }
  .mn-origin td:last-child { grid-column: 1 / -1; margin-top: 2px; }
}

/* ---------- 가게 정보: 동네 사진 위에 종이 한 장 ---------- */
.mn-info { padding: 48px var(--pad) 12px; }
.mn-info.has-photo { padding-top: 56px; padding-inline: 0; }
.mn-place { height: 64svh; min-height: 360px; overflow: hidden; background: var(--mn-surface); }
.mn-place img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mn-card { position: relative; background: var(--paper); padding: 26px 20px 12px; }
.mn-info.has-photo .mn-card { margin: -84px var(--pad) 0; }
.mn-info-title { font-size: 30px; line-height: 1.05; letter-spacing: -.04em; margin-bottom: 8px; }
.mn[lang="en"] .mn-info-title { font-family: var(--mn-cond); font-size: 40px; letter-spacing: 0; }
.mn-block { padding: 14px 0; display: grid; grid-template-columns: 72px minmax(0, 1fr); column-gap: 12px; }
.mn-block > :not(h3) { grid-column: 2; }
.mn-block h3 { grid-row: 1 / span 3; font-size: 14px; font-weight: 700; padding-top: 1px; }
.mn-block p { margin: 0; font-size: 16px; line-height: 1.55; }
.mn-block .mn-small { margin-top: 8px; font-size: 14px; color: var(--muted); }
.mn-hours, .mn-wifi { margin: 0; display: grid; gap: 4px; max-width: 360px; }
.mn-hours div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 16px; }
.mn-wifi div { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: center; gap: 10px; min-height: 30px; font-size: 16px; }
.mn-hours dt, .mn-wifi dt { color: var(--muted); }
.mn-hours dd, .mn-wifi dd { margin: 0; font-variant-numeric: tabular-nums; }
.mn-hours .is-today dt, .mn-hours .is-today dd { color: var(--ink); font-weight: 750; }
.mn-hours em { margin-left: 8px; font-style: normal; font-size: 14px; font-weight: 750; color: var(--accent); }
.mn-links { display: flex; flex-wrap: wrap; gap: 0 18px; margin-top: 2px !important; }
.mn-links a, .mn-tel { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-underline-offset: 5px; text-decoration-thickness: 1.5px; }
.mn-tel { font-variant-numeric: tabular-nums; }
.mn-wifi dd { display: flex; align-items: center; gap: 10px; }
.mn-wifi code { white-space: nowrap; font: 700 16px/1 var(--mn-text); letter-spacing: .03em; font-variant-numeric: tabular-nums slashed-zero; }
.mn-copy {
  min-height: 44px; padding: 0 16px; border: 0; border-radius: 0; flex: none; white-space: nowrap;
  background: var(--ink); color: var(--paper); cursor: pointer; font: 600 14px/1 var(--mn-text); transition: transform .15s ease;
}
.mn-copy:active { transform: scale(.96); }
.mn-place-note { margin: 0; padding: 14px var(--pad) 0; font-size: 14px; line-height: 1.6; color: var(--muted); }
.mn-place-note a { text-underline-offset: 3px; }
@media (max-width: 400px) { .mn-block { grid-template-columns: 62px minmax(0, 1fr); column-gap: 10px; } }

/* ---------- 꼬리: 검정 면, 안내문, 가게 이름 한 줄 ---------- */
.mn-foot { margin-top: 48px; padding: 36px var(--pad) calc(28px + env(safe-area-inset-bottom)); background: var(--ink); color: var(--paper); overflow: hidden; }
.mn-foot ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; max-width: 46ch; font-size: 14px; line-height: 1.6; color: color-mix(in srgb, var(--paper) 72%, var(--ink)); }
.mn-foot-name { margin: 32px 0 0; font-size: 24px; font-weight: 800; line-height: 1.2; letter-spacing: -.03em; }
.mn-foot-name.is-latin { font-family: var(--mn-cond); text-transform: uppercase; letter-spacing: 0; }

.mn-toast {
  position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 80; margin: 0;
  width: max-content; max-width: calc(100vw - 32px); padding: 14px 18px;
  background: var(--ink); color: var(--paper); font-size: 14px; line-height: 1.45;
  opacity: 0; transform: translate(-50%, 12px); pointer-events: none; transition: opacity .25s ease, transform .35s var(--mn-ease);
}
.mn-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.mn-toast b { font-weight: 700; letter-spacing: .02em; font-variant-numeric: slashed-zero; }

/* ---------- 등장: 섹션 부분이 처음 들어올 때 한 번 올라온다 ---------- */
.mn.is-rising .mn-rise { opacity: 0; transform: translateY(18px); }
.mn.is-rising .mn-rise.is-in {
  opacity: 1; transform: none;
  transition: opacity .45s ease calc(var(--d, 0) * 70ms), transform .6s var(--mn-ease) calc(var(--d, 0) * 70ms);
}

/* ---------- 메뉴 상세 (엔진 팝업. 휴대폰에서는 아래에서 올라오는 판) ---------- */
.modal-backdrop { background: rgba(10, 10, 10, .55); backdrop-filter: none; -webkit-backdrop-filter: none; } /* taste-skill-ignore: 엔진의 흐림을 끄는 줄 */
.modal-panel { background: var(--paper); color: var(--ink); width: min(560px, 100%); padding: 0; border-radius: 0; }
.modal-close { position: absolute; top: 12px; right: 12px; float: none; margin: 0; border-radius: 0; background: var(--paper); color: var(--ink); }
.mn-sheet { padding: 0 0 28px; }
.mn-sheet > :not(figure) { margin-inline: 24px; }
.mn-sheet-photo { aspect-ratio: 4 / 3; overflow: hidden; margin-bottom: 22px; background: var(--mn-surface); }
.mn-sheet-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mn-sheet-photo.is-draw { aspect-ratio: 16 / 9; display: grid; place-items: center; background: var(--accent); color: var(--paper); --cut: var(--accent); }
.mn-sheet-photo.is-draw .mn-draw { width: auto; height: 76%; }
.mn-sheet-bakes { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 14px 0 0; font-size: 15px; font-weight: 600; color: var(--muted); }
.mn-facts div { padding: 2px 0; }
.mn-sheet > :first-child:not(figure) { padding-top: 28px; }
.mn-sheet-name { margin: 0 64px 0 24px; font-size: 30px; font-weight: 800; line-height: 1.15; letter-spacing: -.035em; }
.mn-sheet-photo + .mn-sheet-name { margin-right: 24px; }
.mn-sheet[lang="en"] .mn-sheet-name { font-family: var(--mn-cond); font-size: 36px; letter-spacing: 0; }
.mn-sheet-en { margin: 4px 0 0; font: 600 16px/1.3 var(--mn-text); color: var(--muted); }
.mn-sheet-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px; margin: 12px 0 0; }
.mn-sheet-price b { font: 800 26px/1.1 var(--mn-text); font-variant-numeric: tabular-nums; margin-right: 6px; }
.mn-sheet-price .mn-prices small { font-size: 15px; }
.mn-sheet-desc { margin: 14px 0 0; font-size: 16px; line-height: 1.65; }
.mn-sheet-block { margin-top: 22px; }
.mn-sheet-block h3 { margin: 0 0 8px; font-size: 15px; font-weight: 750; }
.mn-sheet-note { margin: 10px 0 0 !important; font-size: 14px; line-height: 1.6; color: var(--muted); }
.mn-rows { margin: 0; display: grid; gap: 6px; }
.mn-rows div { display: flex; justify-content: space-between; gap: 16px; font-size: 16px; }
.mn-rows dt { color: var(--muted); }
.mn-rows dd { margin: 0; text-align: right; }
.mn-allergens { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.mn-allergens span { padding: 5px 10px; background: var(--mn-surface); font-size: 15px; }

@media (max-width: 640px) {
  .modal { place-items: end center; padding: 0; }
  .modal-panel { width: 100%; max-height: 92svh; }
  .mn-sheet { padding-bottom: calc(28px + env(safe-area-inset-bottom)); }
}

/* ---------- 태블릿: 가운데 한 줄 ---------- */
@media (min-width: 641px) and (max-width: 1023px) {
  :root { --pad: 28px; }
  .mn-now, .mn-main, .mn-card, .mn-place-note, .mn-foot > ul { max-width: 720px; margin-inline: auto; }
  .mn-tabs-in { max-width: 720px; margin: 0 auto; }
  .mn-info.has-photo .mn-card { max-width: 600px; margin-inline: auto; }
  .mn-item.is-feature .mn-hit { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: 28px; }
  .mn-item.is-feature .mn-photo { order: 2; margin-inline: 0; }
}

/* ---------- PC: 스크롤하지 않는 한 화면. 왼쪽 가게·분류 | 가운데 메뉴 | 오른쪽 상세 ---------- */
@media (min-width: 1024px) {
  :root { --pad: 36px; }
  html, body { height: 100%; overflow: hidden; }
  .mn {
    display: grid; grid-template-columns: clamp(272px, 21vw, 360px) minmax(0, 1fr) clamp(360px, 34vw, 620px);
    height: 100svh; overflow: hidden;
  }
  .mn-side, .mn-pane { display: block; min-width: 0; height: 100svh; }

  /* 왼쪽: 가게 */
  .mn-side { display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain; background: var(--mn-surface); scrollbar-width: thin; }
  .mn-hero { flex: none; height: clamp(150px, 27svh, 280px); min-height: 0; max-height: none; }
  .mn-hero-text { left: 24px; right: 24px; bottom: 14px; }
  .mn-name, .mn-name.is-latin { font-size: clamp(32px, 2.3vw, 44px); }
  .mn-lang { top: 12px; right: 12px; min-height: 40px; padding: 0 12px; }
  .mn-now { padding: 16px 24px 8px; gap: 12px; }
  .mn-sub { font-size: 14px; }
  .mn-status b { font-size: 20px; }
  .mn-status > span, .mn-oven-line { font-size: 15px; }
  .mn-quick > * { flex-direction: column; gap: 4px; min-height: 58px; font-size: 14px; white-space: nowrap; background: var(--paper); }
  .mn-tabs, .mn-tabs.is-stuck { position: static; background: none; }
  .mn-tabs-in { flex-direction: column; height: auto; overflow: visible; padding: 10px 12px 24px; gap: 2px; }
  .mn-tabs-in a { min-height: 44px; padding: 0 12px; font-size: 17px; color: var(--muted); transition: background-color .2s ease, color .2s ease; }
  .mn-tabs-in a[data-pane-tab] { font-size: 15px; }
  .mn-tabs-in a[data-pane-tab]:first-of-type { margin-top: 14px; }
  .mn-tabs-in a[aria-current] { background: var(--ink); color: var(--paper); }
  .mn-ink { display: none; }

  /* 가운데: 메뉴 목록(이 칸만 스크롤) */
  .mn-main { height: 100svh; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
  .mn-cat { padding: 36px var(--pad) 24px; scroll-margin-top: 0; }
  .mn-cat > .mn-cat-opts { order: 0; margin-top: 14px; }
  .mn-cat-head h2 { font-size: 36px; }
  .mn[lang="en"] .mn-cat-head h2 { font-size: 40px; }
  .mn-list { margin-top: 14px; }
  .mn-hit { padding: 14px 10px; margin-inline: -10px; width: calc(100% + 20px); }
  .mn-hit[aria-current] { background: color-mix(in srgb, var(--ink) 8%, transparent); }
  .mn-cat.is-oven .mn-hit[aria-current] { background: #222; }
  .mn-iname { font-size: 18px; }
  /* 대표 메뉴도 작은 정사각 사진 줄로(큰 사진은 오른쪽 칸에) */
  .mn-item.is-feature .mn-hit, .mn-item.is-thumb .mn-hit { grid-template-columns: minmax(0, 1fr) 84px; align-items: start; }
  .mn-item.is-feature .mn-photo { order: 2; aspect-ratio: 1; margin-inline: 0; }
  .mn-item.is-feature .mn-iname, .mn-item.is-feature .mn-price { font-size: 18px; }
  .mn-item.is-feature .mn-desc { color: var(--muted); }
  .mn-bakes { gap: 28px; }
  .mn-bakes time { font-size: 40px; }
  .mn-oven-say { font-size: 17px; }

  /* 오른쪽: 상세 칸. 한 번에 하나만 보인다 */
  .mn-pane { position: relative; overflow: hidden; background: var(--paper); }
  .mn-view { display: none; height: 100svh; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; margin: 0; outline: none; }
  .mn-pane[data-view="home"] .mn-home, .mn-pane[data-view="item"] .mn-detail,
  .mn-pane[data-view="origin"] .mn-origin, .mn-pane[data-view="info"] .mn-info { display: block; }
  .mn-foot { display: none; }

  .mn-home { padding: 36px var(--pad) 40px; }
  .mn-home-block + .mn-home-block { margin-top: 36px; }
  .mn-home h2 { font-size: 24px; letter-spacing: -.03em; }
  .mn-home-oven { margin: 10px 0 0; font-size: 16px; line-height: 1.55; }
  .mn-home-oven b { font-weight: 800; }
  .mn-shelf, .mn-picks, .mn-home-notes { margin: 0; padding: 0; list-style: none; }
  .mn-shelf { margin-top: 14px; display: grid; gap: 2px; }
  .mn-shelf button, .mn-picks button {
    width: 100%; border: 0; background: var(--mn-surface); color: inherit; font: inherit; text-align: left; cursor: pointer;
    transition: background-color .2s ease, transform .15s ease;
  }
  .mn-shelf button { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 48px; padding: 8px 14px; font-size: 16px; font-weight: 700; }
  .mn-shelf .mn-stock { font-size: 14px; }
  .mn-picks { margin-top: 14px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .mn-picks button { display: grid; padding: 0; background: none; }
  .mn-picks img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; background: var(--mn-surface); }
  .mn-picks span { display: flex; justify-content: space-between; gap: 8px; padding: 8px 2px 0; font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; }
  .mn-picks b { font-weight: 700; }
  .mn-picks .mn-prices { display: none; }
  .mn-shelf button:active, .mn-picks button:active { transform: scale(.98); }
  .mn-home-hint { margin: 28px 0 0; font-size: 15px; color: var(--muted); }
  .mn-home-notes { margin-top: 18px; display: grid; gap: 6px; font-size: 14px; line-height: 1.6; color: var(--muted); }

  .mn-detail-bar { position: sticky; top: 0; z-index: 2; display: flex; justify-content: flex-end; height: 0; }
  .mn-pane-close {
    display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin: 12px 12px 0 0; padding: 0 14px; border: 0; cursor: pointer;
    background: var(--paper); color: var(--ink); font: 700 15px/1 var(--mn-text); transition: transform .15s ease;
  }
  .mn-pane-close svg { width: 16px; height: 16px; }
  .mn-pane-close:active { transform: scale(.96); }
  .mn-detail .mn-sheet { padding-bottom: 40px; }
  .mn-detail .mn-sheet > :not(figure) { margin-inline: var(--pad); }
  .mn-detail .mn-sheet-name { margin-right: var(--pad); }
  .mn-detail .mn-sheet > :first-child:not(figure) { padding-top: 72px; }

  .mn-origin { margin: 0; padding: 36px var(--pad) 40px; }
  .mn-origin h2 { font-size: 28px; }
  .mn-info, .mn-info.has-photo { padding: 0; }
  .mn-place { height: 34svh; min-height: 220px; }
  .mn-info.has-photo .mn-card, .mn-card { margin: 0; padding: 28px var(--pad) 12px; }
  .mn-info-title { font-size: 28px; }
  .mn-block { grid-template-columns: 84px minmax(0, 1fr); }
  .mn-place-note { padding: 8px var(--pad) 32px; }
}
@media (min-width: 1024px) and (hover: hover) {
  .mn-tabs-in a:not([aria-current]):hover { background: color-mix(in srgb, var(--ink) 8%, transparent); color: var(--ink); }
  .mn-shelf button:hover, .mn-pane-close:hover { background: color-mix(in srgb, var(--ink) 12%, var(--paper)); }
  .mn-picks button:hover b { text-decoration: underline; text-underline-offset: 4px; }
}

/* PC 들어올 때: 분류 목록이 하나씩, 오른쪽 칸 덩어리가 차례로 올라온다(동작 줄이기면 is-rising이 없어 바로 보인다) */
@media (min-width: 1024px) {
  .mn.is-rising .mn-tabs-in a, .mn.is-rising .mn-home > * { opacity: 0; transform: translateY(10px); }
  .mn.is-rising.is-ready .mn-tabs-in a, .mn.is-rising.is-ready .mn-home > * {
    opacity: 1; transform: none; transition: opacity .45s ease calc(var(--i, 0) * 55ms + 120ms), transform .6s var(--mn-ease) calc(var(--i, 0) * 55ms + 120ms);
  }
  .mn-home > :nth-child(2) { --i: 2; } .mn-home > :nth-child(3) { --i: 4; } .mn-home > :nth-child(4) { --i: 5; }
  .mn-view { animation: mn-view-in .35s var(--mn-ease); }
}
@keyframes mn-view-in { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { html:not(.force-motion) .mn-view { animation: none; } }

/* 인쇄: 한 화면 틀을 풀고 메뉴 전부를 차례로 */
@media print {
  html, body { height: auto !important; overflow: visible !important; }
  .mn { display: block !important; height: auto !important; overflow: visible !important; }
  .mn-side, .mn-pane { display: contents !important; }
  .mn-main, .mn-view { height: auto !important; overflow: visible !important; }
  .mn-tabs, .mn-quick, .mn-lang, .mn-home, .mn-detail, .mn-toast, .modal { display: none !important; }
  .mn-origin, .mn-info, .mn-foot { display: block !important; }
  .mn.is-rising .mn-rise { opacity: 1; transform: none; }
}

@media (hover: hover) {
  .mn-hit:hover .mn-iname { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px; }
  .mn-hit:hover .mn-photo img { transform: scale(1.03); }
  .mn-tabs-in a:not([aria-current]):hover { color: var(--ink); }
  .mn-quick > *:hover { background: color-mix(in srgb, var(--ink) 12%, var(--paper)); }
  .mn-copy:hover, .mn-lang:hover { background: var(--accent); color: #fff; }
  .mn-oven-line:hover { color: var(--accent); }
}

/* 동작 줄이기: 사진 확대·미끄러짐·올라오기를 빼고 바로 놓는다 (사진 바뀜은 짧은 겹침만) */
@media (prefers-reduced-motion: reduce) {
  html:not(.force-motion) .mn-hero-img { transform: none; transition: none; }
  html:not(.force-motion) .mn-ink { transition: none; }
  html:not(.force-motion) .mn-photo img { transition: none; }
  html:not(.force-motion) .mn-hit, html:not(.force-motion) .mn-quick > * { transition: none; }
  html:not(.force-motion) .mn-toast { transition: opacity .2s ease; transform: translate(-50%, 0); }
}
