:root {
  --bg: #faf6f0;
  --paper: #ffffff;
  --ink: #2a211b;
  --muted: #6e6158;
  --line: #e7ddd2;
  --clay: #a4532e;
  --clay-dark: #7e3d20;
  --earth: #3b2a20;
  --soft: #f3e9dd;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.7 "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  word-break: keep-all;
  padding-bottom: 72px;
}
a { color: var(--clay-dark); }
main, .top, footer { max-width: 760px; margin: 0 auto; padding: 0 16px; }

.top { padding-top: 12px; }
.topbar { display: flex; align-items: center; gap: 16px; }
.brand { font-weight: 800; font-size: 20px; color: var(--earth); text-decoration: none; letter-spacing: -0.02em; flex: none; }
.mainnav, .subnav { display: flex; gap: 16px; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.mainnav::-webkit-scrollbar, .subnav::-webkit-scrollbar { display: none; }
.mainnav a, .subnav a { color: var(--muted); text-decoration: none; font-size: 14px; white-space: nowrap; padding: 8px 0; }
.mainnav a[aria-current], .subnav a[aria-current] { color: var(--clay-dark); font-weight: 700; }
.subnav { margin-top: 6px; padding: 4px 12px; background: var(--soft); border-radius: 10px; gap: 18px; }
.crumbs { font-size: 13px; color: var(--muted); padding-top: 14px; }
.crumbs a { color: var(--muted); }

section { padding: 36px 0; border-top: 1px solid var(--line); }
section:first-child { border-top: 0; }
h1 { font-size: clamp(30px, 8vw, 44px); line-height: 1.2; margin: 6px 0 14px; letter-spacing: -0.03em; color: var(--earth); }
h2 { font-size: 23px; line-height: 1.35; margin: 0 0 18px; letter-spacing: -0.02em; color: var(--earth); }
h3 { font-size: 17px; margin: 26px 0 10px; color: var(--clay-dark); }
p { margin: 0 0 12px; }

.hero { padding-top: 28px; }
.eyebrow { color: var(--clay); font-weight: 700; font-size: 14px; margin: 0; }
.lead { font-size: 19px; color: var(--ink); }
.cta, .links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 20px; border-radius: 12px;
  border: 1.5px solid var(--earth); color: var(--earth);
  text-decoration: none; font-weight: 700; background: var(--paper);
}
.btn.primary { background: var(--clay); border-color: var(--clay); color: #fff; }

.info dl { margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 6px 18px; }
.info dl div { display: grid; grid-template-columns: 84px 1fr; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); }
.info dl div:first-child { border-top: 0; }
.info dt { color: var(--muted); font-size: 14px; white-space: nowrap; }
.info dd { margin: 0; font-weight: 600; font-size: 16px; }
.nw { white-space: nowrap; }

.cards { display: grid; gap: 12px; }
.cards article { background: var(--earth); color: #f6ede3; border-radius: 16px; padding: 20px; }
.cards article { display: flex; flex-direction: column; gap: 8px; }
.cards h3 { color: #f0b48f; margin: 0; }
.cards p { margin: 0; color: #eadfd3; }
.cards .cprice { font-weight: 700; color: #fff; }
.cards a { color: #f0b48f; font-weight: 700; margin-top: auto; }
.more { margin-top: 18px; }
.note { font-size: 14px; color: var(--muted); margin-top: 12px; }

.stores { display: grid; gap: 12px; }
.store { display: flex; flex-direction: column; gap: 2px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; text-decoration: none; color: var(--ink); }
.store h3 { margin: 0 0 6px; color: var(--earth); }
.store p { margin: 0; font-size: 15px; color: var(--muted); }
.store dl { margin: 0; display: grid; gap: 4px; font-size: 15px; }
.store dl div { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 8px; }
.store dt { color: var(--muted); font-size: 13px; padding-top: 2px; }
.store dd { margin: 0; color: var(--ink); }
.store span { color: inherit; }
.store h3 a { color: inherit; text-decoration: none; }
.store .storebtn { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.occ { display: grid; gap: 12px; }
.occ article { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.occ h3 { margin: 0; color: var(--earth); font-size: 17px; }
.occ p { margin: 0; }
/* 책 적용 (2026-11-30): 메뉴 가격 아래 작은 글씨, 비교표, 최종 업데이트 */
.mtag { display: block; color: var(--earth); font-size: 13px; margin-top: 2px; }
.tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 8px 0; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
table.cmp { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 14px; }
table.cmp th, table.cmp td { padding: 10px 12px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
table.cmp thead th { border-top: 0; color: var(--earth); font-size: 15px; }
table.cmp tbody th { color: var(--muted); font-weight: 600; white-space: nowrap; }
table.cmp.two { min-width: 0; }
table.cmp.two th, table.cmp.two td { padding: 10px 8px; }
#choose .big { margin-bottom: 10px; }
#people ul { margin: 6px 0 14px; padding-left: 20px; }
#people li { margin: 4px 0; }
.updated { margin-top: 4px; }
.person .pphoto { width: 140px; height: 180px; object-fit: cover; border-radius: 12px; float: right; margin: 0 0 10px 14px; }
.person::after { content: ""; display: block; clear: both; }

@media (min-width: 720px) { .occ { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.stats div { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.stats span { font-size: 13px; color: var(--muted); }
.stats b { font-size: 20px; color: var(--earth); font-variant-numeric: tabular-nums; line-height: 1.35; }

.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; border-left: 2px solid var(--line); }
.timeline li { padding: 4px 0 18px 18px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 12px; width: 12px; height: 12px; border-radius: 50%; background: var(--clay); }
.timeline b { font-size: 20px; color: var(--clay-dark); }
.timeline p { margin: 2px 0 0; }

.footnav { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 12px 0; }
.footnav a { color: var(--muted); font-size: 13px; }

.menu { list-style: none; margin: 0; padding: 0; }
.menu li { padding: 12px 0; border-bottom: 1px dashed var(--line); }
.menu .row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.menu .mname { font-weight: 600; min-width: 0; }
.menu .price { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.menu .msub { display: block; color: var(--clay-dark); font-size: 13px; margin-top: 2px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 20; max-width: calc(100% - 32px); background: var(--earth); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 15px; box-shadow: 0 6px 20px rgba(0,0,0,.2); }
.menu li p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.menu em { font-style: normal; font-size: 12px; background: var(--clay); color: #fff; border-radius: 6px; padding: 1px 6px; vertical-align: 2px; }

.gallery { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 12px 0 0; padding-bottom: 4px; scrollbar-width: thin; }
.gallery img, .gallery .slot { flex: 0 0 88%; max-width: 560px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; scroll-snap-align: start; }
.slot { display: flex; align-items: center; justify-content: center; text-align: center; padding: 12px; border: 2px dashed var(--clay); border-radius: 12px; color: var(--clay-dark); background: var(--soft); font-size: 14px; font-weight: 600; aspect-ratio: 4 / 3; max-width: 100%; }
.photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.photos figure { margin: 0; }
.photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; display: block; }
.photos figcaption { font-size: 13px; color: var(--muted); margin-top: 4px; }
.menu li.has-pic { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 12px; align-items: start; }
.menu .thumb, .menu .slot { width: 88px; aspect-ratio: 1; object-fit: cover; border-radius: 10px; font-size: 11px; padding: 4px; }
.cards .cardpic, .cards .slot { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }
.cards .slot { background: rgba(255,255,255,.08); color: #f0b48f; border-color: #f0b48f; }
.big { font-size: 19px; font-weight: 600; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 15px; }
.chips li.no { color: var(--muted); text-decoration: line-through; }
.chips.soft li { background: var(--soft); border-color: var(--soft); }

.qgroup { font-size: 15px; margin: 22px 0 10px; padding-left: 10px; border-left: 3px solid var(--clay); }
details { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
summary { cursor: pointer; padding: 14px 16px; font-weight: 700; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; float: right; color: var(--clay); font-weight: 800; }
details[open] summary::after { content: "−"; }
details p { padding: 0 16px 14px; margin: 0; }

.brandbox ul { padding-left: 20px; margin: 0; }
.brandbox li { margin-bottom: 6px; }

footer { padding-top: 24px; padding-bottom: 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.updated { font-size: 13px; }

.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  display: flex; background: var(--earth);
  padding-bottom: env(safe-area-inset-bottom);
}
.dock a { flex: 1; text-align: center; color: #fff; text-decoration: none; font-weight: 700; padding: 16px 0; }
.dock a + a { border-left: 1px solid rgba(255,255,255,.15); }

/* 첫 화면 큰 사진(또는 영상) */
.homehero { margin: 12px 0 0; }
.homehero img, .homehero video { display: block; width: 100%; max-width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 18px; background: var(--soft); }
.sig .sigbtn { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.btn.small { min-height: 40px; padding: 0 14px; font-size: 15px; }
.cards .btn.small { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.price s, .cprice s { color: var(--muted); font-weight: 400; margin-right: 4px; }
.cards .cprice s { color: #c9b8a8; }

/* 시트 글 ([제목] → 소제목) */
.rich h4 { font-size: 15px; margin: 14px 0 4px; color: var(--earth); }
.rich p { margin: 0 0 6px; }
#guide .rich + .rich { margin-top: 8px; }

/* 뉴스 */
.news { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.news li { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; }
.news h3 { margin: 2px 0 6px; font-size: 17px; }
.news h3 a { color: var(--earth); }
.news p { margin: 0; font-size: 15px; }
.news .nmeta { color: var(--muted); font-size: 13px; }

/* 상표 안내, 왕만두 */
.notice { background: var(--soft); border: 0; border-radius: 16px; padding: 24px 20px; margin: 24px 0; }
.notice h2 { margin-bottom: 10px; }
.mandu p { color: var(--muted); }

@media (min-width: 720px) {
  body { padding-bottom: 0; }
  .dock { display: none; }
  .cards { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
  .stores { grid-template-columns: repeat(2, 1fr); }
  .store dl div:first-child dd { min-height: 3.4em; } /* 주소 길이가 달라도 전화·영업시간 줄이 옆 칸과 맞게 */
}

/* 매장 페이지 대표 사진 (2026-11-30) */
.owner figure { display: flex; flex-direction: column; gap: 12px; margin: 8px 0 12px; }
.owner figure img { width: 100%; max-width: 360px; aspect-ratio: 4 / 5; height: auto; object-fit: cover; object-position: top; border-radius: 16px; }
@media (min-width: 720px) { .owner figure { flex-direction: row; align-items: flex-end; gap: 20px; } .owner figure img { width: 280px; } }
.owner figcaption b { display: block; font-size: 20px; color: var(--earth); }
.owner figcaption span { display: block; color: var(--muted); font-size: 14px; margin-top: 2px; }
.homehero .gallery { margin: 0; }
.homehero .gallery img { flex-basis: 100%; max-width: none; aspect-ratio: 16 / 10; object-position: center 30%; }
/* 자주 묻는 질문 모음 (2026-11-30) */
.faqnav { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 8px 0 0; }
.faqnav a { display: inline-block; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--earth); text-decoration: none; font-size: 14px; }
details .note { margin-top: 0; }
