/* 칸칸반찬 — 동네 반찬가게 디자인 샘플 (디코랩)
   구성: 본문 전체가 위에서 내려다본 스테인리스 칸막이 반찬통. 섹션 = 칸, 칸막이 = grid gap 의 금속색 */

:root {
  /* 재료에서 가져온 색 */
  --color-perilla: #3E7A2F;      /* 깻잎 — 주 버튼·선택 칩에만 */
  --color-perilla-deep: #2F6123;
  --color-steel: #C5CBCE;        /* 스테인리스 통·칸막이 */
  --color-steel-light: #DDE1E3;
  --color-steel-ink: #5E676C;    /* 칸막이 그림자·보조 글자 */
  --color-glaze: #FBFAF5;        /* 사기 유약 — 칸 바닥 기본 */
  --color-soy: #2A241D;          /* 간장 — 본문 글자 */
  --color-egg: #F4C743;          /* 달걀말이 — 보관 스티커·라벨 */
  --color-chili: #B23A26;        /* 고춧가루 — 맵기 표시 */
  --color-table: #E3E7E1;        /* 식탁 — 페이지 바탕 */
  --color-tape: #FFF4CC;         /* 마스킹테이프 라벨 */

  /* 칸 바닥 — 그 칸 반찬 색을 은은하게 */
  --tint-rice: #FBFAF5;
  --tint-soup: #F3EDE1;
  --tint-note: #F7F5EE;
  --tint-namul: #EDF3E3;
  --tint-egg: #FBF3D6;
  --tint-doenjang: #F3EBDD;
  --tint-radish: #EDF3F4;
  --tint-gochu: #F8EAE4;
  --tint-laver: #ECEFEA;

  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  --font-hand: "Poor Story", "Pretendard Variable", Pretendard, sans-serif;

  --fs-h1: clamp(2.1rem, 1.25rem + 3.2vw, 3.6rem);
  --fs-h2: clamp(1.6rem, 1.3rem + 1vw, 2rem);
  --fs-h3: 1.08rem;
  --fs-body: 1rem;
  --fs-small: .875rem;

  --rim: 14px;        /* 통 테두리 */
  --div: 14px;        /* 칸막이 두께 */
  --pad: 30px;        /* 칸 안 여백 */
  --radius-box: 32px;
  --radius-cell: 18px;
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--color-soy);
  background: var(--color-table);
  word-break: keep-all;
  overflow-wrap: anywhere;
  overflow-x: clip;
}
h1, h2, h3 { line-height: 1.3; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }
a { color: inherit; }
i { font-style: normal; }
img, svg { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: #fff; padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--color-perilla); outline-offset: 2px; }

.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 20px; }

/* 실제 정보가 들어갈 자리 */
.ph { display: inline-block; border: 1.5px dashed currentColor; border-radius: 5px; padding: 0 .35em; line-height: 1.5; opacity: .78; font-size: .95em; }

/* ---------- 상단 샘플 안내 띠 ---------- */
.sample-banner { background: var(--color-soy); color: #EFECE4; font-size: 13px; line-height: 1.55; }
.sample-banner__inner { display: flex; gap: 10px; align-items: flex-start; padding-top: 9px; padding-bottom: 9px; }
.sample-banner__tag { flex: none; background: var(--color-egg); color: var(--color-soy); font-weight: 700; padding: 1px 8px; border-radius: 4px; }
.sample-banner a { color: #fff; font-weight: 600; }

/* ---------- 헤더: 반찬통 손잡이 띠 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: linear-gradient(180deg, #E9ECEC, #D3D8DA);
  border-bottom: 2px solid #A9B1B4;
  box-shadow: 0 1px 0 rgba(255,255,255,.8) inset;
}
.site-header__inner { display: flex; align-items: center; gap: 12px; min-height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; margin-right: auto; }
.logo svg { width: 38px; height: 38px; }
.logo b { font-family: var(--font-hand); font-weight: 400; font-size: 1.7rem; letter-spacing: -.01em; }

.gnb { display: none; }
.gnb a { text-decoration: none; }
.header-tel { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--color-perilla); color: #fff; }
.header-tel svg { width: 20px; height: 20px; }
.menu-toggle { width: 44px; height: 44px; border: 2px solid #A9B1B4; border-radius: 12px; background: var(--color-glaze); display: grid; place-items: center; cursor: pointer; }
.menu-toggle__bar, .menu-toggle__bar::before, .menu-toggle__bar::after { display: block; width: 18px; height: 2px; background: var(--color-soy); border-radius: 2px; position: relative; transition: transform .2s ease, background-color .2s ease; }
.menu-toggle__bar::before, .menu-toggle__bar::after { content: ""; position: absolute; left: 0; }
.menu-toggle__bar::before { top: -6px; }
.menu-toggle__bar::after { top: 6px; }
.is-open .menu-toggle__bar { background: transparent; }
.is-open .menu-toggle__bar::before { transform: translateY(6px) rotate(45deg); }
.is-open .menu-toggle__bar::after { transform: translateY(-6px) rotate(-45deg); }

/* 모바일 메뉴 — 헤더에 transform·filter 가 없어 fixed 기준이 화면이다 */
@media (max-width: 1179px) {
  .site-header.is-open .gnb {
    display: flex; flex-direction: column; gap: 4px;
    position: fixed; left: 0; right: 0; top: var(--menu-top, 110px); bottom: 0;
    padding: 18px 20px calc(24px + env(safe-area-inset-bottom));
    background: var(--color-glaze); overflow-y: auto; z-index: 39;
    border-top: 2px solid #A9B1B4;
  }
  .gnb a { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-radius: 12px; font-size: 1.1rem; font-weight: 600; }
  .gnb a::before { content: ""; width: 14px; height: 14px; border-radius: 4px; background: var(--dot, var(--color-steel)); box-shadow: inset 0 0 0 1.5px rgba(42,36,29,.25); }
  .gnb a.is-active { background: #fff; box-shadow: inset 0 0 0 2px var(--color-steel); }
  .gnb .gnb__cta { margin-top: 10px; justify-content: center; background: var(--color-perilla); color: #fff; }
  .gnb .gnb__cta::before { display: none; }
}
@media (min-width: 1180px) {
  .gnb { display: flex; align-items: center; gap: 2px; }
  .gnb a { display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border-radius: 999px; font-size: 15px; font-weight: 600; white-space: nowrap; transition: background-color .2s ease; }
  .gnb a::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--dot, var(--color-steel)); box-shadow: inset 0 0 0 1.5px rgba(42,36,29,.25); }
  .gnb a:hover { background: rgba(255,255,255,.6); }
  .gnb a.is-active { background: #fff; box-shadow: inset 0 0 0 2px #A9B1B4; }
  .gnb .gnb__cta { margin-left: 8px; background: var(--color-perilla); color: #fff; padding: 9px 16px; }
  .gnb .gnb__cta::before { display: none; }
  .gnb .gnb__cta:hover { background: var(--color-perilla-deep); }
  .header-tel, .menu-toggle { display: none; }
}

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px; padding: 0 1.4em; border-radius: 999px;
  font-size: 1rem; font-weight: 700; text-decoration: none; cursor: pointer; border: 0;
  transition: background-color .2s ease, color .2s ease, transform .15s ease;
}
.btn svg { width: 19px; height: 19px; }
.btn:active { transform: translateY(1px); }
.btn--leaf { background: var(--color-perilla); color: #fff; }
.btn--leaf:hover { background: var(--color-perilla-deep); }
.btn--line { background: transparent; color: var(--color-soy); box-shadow: inset 0 0 0 2px var(--color-soy); }
.btn--line:hover { background: #fff; }
.btn--steel { background: linear-gradient(180deg, #EEF0F1, #D2D7D9); color: var(--color-soy); box-shadow: inset 0 0 0 2px #A9B1B4; min-height: 48px; }
.btn--steel:hover { background: #fff; }
.btn--kakao { background: #FEE500; color: #191600; }
.btn--block { width: 100%; }

/* ---------- 반찬통 ---------- */
main.wrap { padding-top: 26px; padding-bottom: 48px; }
.box {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--div);
  padding: var(--rim);
  border-radius: var(--radius-box);
  /* 결이 있는 스테인리스 */
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.16) 0 1px, rgba(0,0,0,0) 1px 3px),
    linear-gradient(160deg, #DCE0E2 0%, #BEC5C8 38%, #D4D9DB 58%, #B5BCBF 100%);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.85), inset 0 -2px 0 rgba(80,90,95,.25), 0 0 0 1.5px #98A1A5, 0 26px 40px -26px rgba(40,50,45,.55);
}
.box > * { min-width: 0; }

/* 칸 — 안으로 꺼진 성형 용기 */
.cell {
  position: relative;
  grid-column: span 12;
  padding: var(--pad);
  border-radius: var(--radius-cell);
  background: var(--tint, var(--color-glaze));
  box-shadow:
    inset 0 4px 8px -2px rgba(55,65,70,.28),
    inset 0 0 0 1.5px rgba(90,100,105,.28),
    0 1px 0 rgba(255,255,255,.75);
  scroll-margin-top: calc(var(--header-h) + 18px);
}
.cell--rice { --tint: var(--tint-rice); }
.cell--soup { --tint: var(--tint-soup); }
.cell--note { --tint: var(--tint-note); }
.cell--namul { --tint: var(--tint-namul); }
.cell--egg { --tint: var(--tint-egg); }
.cell--glaze { --tint: var(--color-glaze); }
.cell--doenjang { --tint: var(--tint-doenjang); }
.cell--radish { --tint: var(--tint-radish); }
.cell--gochu { --tint: var(--tint-gochu); }
.cell--laver { --tint: var(--tint-laver); }

/* 밥칸: 밥알이 은은하게 */
.cell--rice {
  background-color: var(--tint-rice);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cg fill='%23D8D2C0' fill-opacity='.35'%3E%3Cellipse cx='14' cy='20' rx='5' ry='2.6' transform='rotate(30 14 20)'/%3E%3Cellipse cx='60' cy='12' rx='5' ry='2.6' transform='rotate(-20 60 12)'/%3E%3Cellipse cx='104' cy='34' rx='5' ry='2.6' transform='rotate(70 104 34)'/%3E%3Cellipse cx='36' cy='66' rx='5' ry='2.6' transform='rotate(-50 36 66)'/%3E%3Cellipse cx='86' cy='80' rx='5' ry='2.6' transform='rotate(15 86 80)'/%3E%3Cellipse cx='128' cy='96' rx='5' ry='2.6' transform='rotate(-70 128 96)'/%3E%3Cellipse cx='20' cy='116' rx='5' ry='2.6' transform='rotate(80 20 116)'/%3E%3Cellipse cx='66' cy='128' rx='5' ry='2.6' transform='rotate(-10 66 128)'/%3E%3C/g%3E%3C/svg%3E");
}

/* 칸 이름 — 뚜껑에 붙이는 마스킹테이프 손글씨 */
.tape {
  display: inline-block;
  font-family: var(--font-hand); font-weight: 400;
  font-size: var(--fs-h2); line-height: 1.25; letter-spacing: -.01em;
  background: var(--color-tape);
  padding: .14em .7em .1em;
  transform: rotate(-1.3deg);
  clip-path: polygon(0 6%, 3% 0, 97% 4%, 100% 0, 99% 50%, 100% 100%, 96% 95%, 4% 100%, 0 96%, 1.5% 50%);
  box-shadow: inset 0 -3px 0 rgba(200,170,90,.18);
}
.tape--small { font-size: 1.15rem; padding: .1em .6em; }

.cell__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; margin-bottom: 16px; }
.cell__lead { max-width: 40em; color: #4A4238; margin-bottom: 20px; }

/* 뚜껑 열기 버튼 — JS 가 준비되고 동작 줄이기가 아닐 때만 보인다 */
.lid-btn {
  display: none; align-items: center; gap: 8px;
  min-height: 44px; padding: 6px 16px 6px 10px;
  border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(255,255,255,.9);
  box-shadow: inset 0 0 0 2px #A9B1B4, 0 1px 0 rgba(255,255,255,.8);
  font-size: 15px; font-weight: 700;
  transition: background-color .2s ease;
}
.lids .lid-btn { display: inline-flex; }
.lid-btn:hover { background: #fff; }
.lid-btn small { font-weight: 500; font-size: 13px; color: var(--color-steel-ink); }
.lid-btn__icon { position: relative; width: 26px; height: 18px; }
.lid-btn__icon::before { content: ""; position: absolute; left: 0; right: 0; top: 2px; height: 6px; border-radius: 3px; background: var(--color-steel); box-shadow: inset 0 0 0 1.5px var(--color-steel-ink); transition: transform .25s ease; transform-origin: 0 100%; }
.lid-btn__icon::after { content: ""; position: absolute; left: 2px; right: 2px; bottom: 0; height: 9px; border-radius: 0 0 5px 5px; box-shadow: inset 0 0 0 1.5px var(--color-steel-ink); }
.is-open > .cell__head .lid-btn__icon::before { transform: translateY(-2px) rotate(-18deg); }

/* 상세 — 기본은 보인다. JS 준비 + 닫힌 칸에서만 숨긴다 */
.cell__more { margin-top: 22px; }
.lids .cell:not(.is-open) > .cell__more { display: none; }
.more { border-top: 2px dashed rgba(94,103,108,.35); padding-top: 20px; }
.more__title { font-size: var(--fs-h3); margin-bottom: 8px; }
.more > p { color: #4A4238; margin-bottom: 12px; max-width: 46em; }
.more__note { font-size: var(--fs-small); color: var(--color-steel-ink); margin-top: 12px; }
.more__list { display: grid; gap: 8px; }
.more__list li { padding-left: 16px; position: relative; }
.more__list li::before { content: ""; position: absolute; left: 0; top: .72em; width: 7px; height: 7px; border-radius: 2px; background: var(--color-steel-ink); }
.more__list b { margin-right: .4em; }

/* 뚜껑 — 칸 위에 잠깐 얹었다가 들어 올린다 (JS 가 만들고 끝나면 지운다) */
.lid-sheet {
  position: absolute; inset: -5px; z-index: 5; pointer-events: none;
  border-radius: calc(var(--radius-cell) + 5px);
  background: rgba(247,249,249,.8);
  box-shadow: inset 0 0 0 3px rgba(140,150,155,.9), inset 0 0 0 11px rgba(255,255,255,.55), inset 0 0 0 13px rgba(140,150,155,.4);
}
.lid-sheet::before, .lid-sheet::after {
  content: ""; position: absolute; left: 50%; width: 64px; height: 14px; margin-left: -32px;
  border-radius: 6px; background: #D5DADC; box-shadow: inset 0 0 0 2px rgba(110,120,125,.8);
}
.lid-sheet::before { top: -8px; }
.lid-sheet::after { bottom: -8px; }

/* ---------- 1단: 히어로 ---------- */
.hero { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--div); scroll-margin-top: var(--header-h); }
.hero__main { grid-column: span 12; padding: clamp(24px, 4vw, 52px); }
.hero__kicker { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; color: var(--color-steel-ink); margin-bottom: 14px; }
.hero__kicker::before { content: ""; width: 18px; height: 18px; border-radius: 50% 0; background: var(--color-perilla); transform: rotate(-10deg); }
.hero__title { font-family: var(--font-hand); font-weight: 400; font-size: var(--fs-h1); line-height: 1.18; letter-spacing: -.02em; max-width: 13em; }
.hero__lead { font-size: clamp(1rem, .95rem + .3vw, 1.15rem); color: #4A4238; max-width: 30em; margin-top: 18px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

.hero__soup { grid-column: span 6; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 18px 14px; }
.hero__soup .tape { align-self: flex-start; }
.soup-art { width: min(200px, 100%); height: auto; }
.hero__soup-name { font-family: var(--font-hand); font-size: 1.3rem; line-height: 1.3; }
.hero__soup-name span { display: block; font-family: var(--font); font-size: 14px; color: var(--color-steel-ink); font-variant-numeric: tabular-nums; }

.hero__note { grid-column: span 6; padding: 18px; }
.note__time { margin: 12px 0 10px; }
.note__time span { display: block; font-size: 14px; color: var(--color-steel-ink); }
.note__time b { font-family: var(--font-hand); font-weight: 400; font-size: 3rem; line-height: 1; font-variant-numeric: tabular-nums; }
.note__list { display: grid; gap: 4px; font-size: 14.5px; line-height: 1.6; }
.note__list b { margin-right: .3em; }

/* ---------- 2단: 오늘 만든 반찬 ---------- */
.menu { display: grid; gap: 22px 32px; }
.menu__group h3 { font-size: var(--fs-h3); display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.menu__group h3::before { content: ""; width: 12px; height: 12px; border-radius: 3px; background: var(--color-perilla); opacity: .7; }
.menu__group li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 7px 0; border-bottom: 1.5px dashed rgba(62,122,47,.25); }
.menu__group li b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.mark { display: inline-block; font-size: 12px; font-weight: 700; line-height: 1.5; padding: 0 6px; border-radius: 4px; vertical-align: 1px; margin-left: 2px; }
.mark--kid { background: rgba(244,199,67,.55); }
.mark--hot { background: #F6DCD3; color: var(--color-chili); }

/* 표 공통 */
.table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.table th, .table td { text-align: left; padding: 9px 8px; border-bottom: 1.5px solid rgba(42,36,29,.12); vertical-align: top; }
.table thead th { font-size: 13px; font-weight: 600; color: var(--color-steel-ink); border-bottom-width: 2px; }
.table small { display: block; font-size: 13px; font-weight: 500; color: var(--color-steel-ink); }
.table--price td { font-weight: 700; font-size: 1.1rem; text-align: right; white-space: nowrap; }
.table--price thead th:last-child { text-align: right; }
.table--keep td:nth-child(2) { font-weight: 700; white-space: nowrap; }

.facts { display: grid; gap: 6px; margin-top: 18px; }
.facts div { display: grid; grid-template-columns: 6.2em 1fr; gap: 10px; }
.facts dt { font-size: 14px; font-weight: 600; color: var(--color-steel-ink); padding-top: 1px; }

/* ---------- 3단: 반찬통 채우기 ---------- */
.fill__grid { display: grid; gap: 22px; }
.picker { display: grid; gap: 16px; align-content: start; }
.picker fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.picker legend { width: 100%; font-weight: 700; margin-bottom: 6px; }
.picker legend small { font-weight: 500; font-size: 13px; color: var(--color-steel-ink); margin-left: 4px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 12px;
  background: #fff; box-shadow: inset 0 0 0 2px #B7BEC1; font-weight: 600;
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.chip input:checked + span { background: var(--color-perilla); color: #fff; box-shadow: inset 0 0 0 2px var(--color-perilla-deep); }
.chip input:focus-visible + span { outline: 3px solid var(--color-perilla); outline-offset: 2px; }
.days { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; width: 100%; }
.chip--day span { width: 100%; justify-content: center; padding: 0; font-family: var(--font-hand); font-weight: 400; font-size: 1.25rem; }
.picker__warn { width: 100%; font-size: 14px; color: var(--color-chili); min-height: 0; }
.picker__warn:empty { display: none; }

.tray-wrap { position: relative; align-self: start; }
.tray { width: 100%; height: auto; overflow: visible; }
.tray__rim { fill: #C9CFD2; stroke: #8F989C; stroke-width: 3; }
.comp__base { fill: #FBFAF5; }
.comp__shade { fill: none; stroke: rgba(60,70,75,.22); stroke-width: 10; }
.comp__edge { fill: none; stroke: rgba(90,100,105,.45); stroke-width: 2; }
.comp__food, .comp__label { transform-box: fill-box; transform-origin: center; }
.comp__label rect { fill: var(--color-tape); }
.comp__label text { font-family: var(--font-hand); font-size: 21px; fill: var(--color-soy); }
.comp__empty { font-family: var(--font); font-size: 15px; fill: #8F989C; }

.keep-sticker {
  position: absolute; right: -6px; top: -14px;
  width: 104px; height: 104px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--color-egg); color: var(--color-soy);
  font-size: 12.5px; font-weight: 700; line-height: 1.25; text-align: center;
  transform: rotate(8deg);
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.55), 0 2px 0 rgba(140,110,20,.25);
}
.keep-sticker b { font-family: var(--font-hand); font-weight: 400; font-size: 2rem; line-height: 1.05; }

.slip { background: #fff; border-radius: 14px; padding: 20px; box-shadow: inset 0 0 0 1.5px rgba(90,100,105,.25); align-self: start; }
.slip__title { font-family: var(--font-hand); font-size: 1.5rem; line-height: 1.3; margin-bottom: 8px; }
.slip__list { display: grid; gap: 6px; margin-bottom: 14px; }
.slip__list li { display: flex; align-items: center; gap: 10px; }
.slip__list span { flex: none; width: 4.4em; text-align: center; font-size: 13px; font-weight: 700; border-radius: 6px; padding: 1px 0; background: var(--color-steel-light); color: var(--color-steel-ink); }
.slip__list small { margin-left: auto; font-size: 13px; color: var(--color-steel-ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.slip__sum { display: grid; gap: 4px; padding: 12px 0; border-top: 1.5px dashed rgba(42,36,29,.2); border-bottom: 1.5px dashed rgba(42,36,29,.2); font-variant-numeric: tabular-nums; }
.slip__sum div { display: flex; justify-content: space-between; gap: 12px; }
.slip__sum dt { font-size: 14px; color: var(--color-steel-ink); }
.slip__sum dd { font-weight: 700; text-align: right; }
.slip__note { font-size: 14px; color: #4A4238; margin: 12px 0; }
.slip__say { background: var(--tint-namul); border-radius: 12px; padding: 14px; }
.slip__say-label { font-size: 13px; font-weight: 700; color: var(--color-steel-ink); }
.slip__say-text { font-family: var(--font-hand); font-size: 1.25rem; line-height: 1.45; margin: 4px 0 12px; }

/* ---------- 4단: 만드는 하루 / 보관 ---------- */
.day-line { position: relative; display: grid; gap: 12px; }
.day-line::before { content: ""; position: absolute; left: 31px; top: 10px; bottom: 10px; width: 3px; border-radius: 2px; background: rgba(140,100,50,.25); }
.day-line li { position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: baseline; }
.day-line time { position: relative; z-index: 1; justify-self: center; font-family: var(--font-hand); font-size: 1.25rem; line-height: 1.2; background: var(--tint-doenjang); padding: 2px 0; font-variant-numeric: tabular-nums; }
.day-line b { margin-right: .35em; }

.label-demo { display: grid; gap: 16px; }
.label-demo__tape {
  justify-self: start; display: grid; gap: 2px;
  font-family: var(--font-hand); font-size: 1.15rem; line-height: 1.35;
  background: var(--color-tape); padding: 10px 18px; transform: rotate(-1.5deg);
  clip-path: polygon(0 4%, 3% 0, 97% 3%, 100% 0, 99% 50%, 100% 100%, 96% 97%, 4% 100%, 0 97%, 1.5% 50%);
}
.label-demo__tape b { font-weight: 400; font-size: 1.45rem; }

/* ---------- 5단: FAQ / 오시는 길 ---------- */
.faq { display: grid; gap: 8px; }
.qa { background: rgba(255,255,255,.7); border-radius: 12px; box-shadow: inset 0 0 0 1.5px rgba(178,58,38,.18); }
.qa h3 { font-size: 1rem; }
.qa button { width: 100%; display: flex; justify-content: space-between; gap: 16px; align-items: center; text-align: left; padding: 14px 16px; background: none; border: 0; cursor: pointer; font-weight: 700; line-height: 1.5; min-height: 52px; }
.qa button::after { content: "+"; flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--color-steel-light); font-size: 18px; font-weight: 600; transition: transform .2s ease; }
.qa button[aria-expanded="true"]::after { transform: rotate(45deg); }
.qa__panel { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .3s ease; }
.qa__panel > div { overflow: hidden; min-height: 0; }
.qa__panel p { padding: 0 16px 16px; color: #4A4238; }
.qa.is-closed .qa__panel { grid-template-rows: 0fr; }

.map-art { width: 100%; height: auto; border-radius: 12px; margin-bottom: 16px; }
.map-art__t { font: 600 15px var(--font); fill: var(--color-steel-ink); }
.map-art__shop { font: 400 15px var(--font-hand); fill: #fff; }
.map-art__b { font: 700 9px var(--font); fill: var(--color-soy); }
.facts--stack { margin-top: 0; }
.loc-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.loc-actions .btn { min-height: 46px; flex: 1 1 auto; }

/* ---------- 푸터 ---------- */
.site-footer { background: var(--color-soy); color: #D9D4C9; padding: 36px 0 40px; font-size: 14px; line-height: 1.75; }
.site-footer__inner { display: grid; gap: 18px; }
.site-footer__logo { font-family: var(--font-hand); font-size: 1.6rem; color: #fff; margin-bottom: 6px; }
.site-footer__links { margin-top: 8px; display: flex; gap: 16px; }
.site-footer__links .strong { font-weight: 800; color: #fff; }
.site-footer__credit a { color: #fff; font-weight: 600; }

/* ---------- 모바일 하단 고정 바 ---------- */
.quickbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: 1.3fr 1fr 1.2fr; gap: 6px;
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, #E9ECEC, #D3D8DA); border-top: 2px solid #A9B1B4;
}
.quickbar a { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; border-radius: 12px; text-decoration: none; font-weight: 700; font-size: 15px; background: #fff; box-shadow: inset 0 0 0 1.5px #B7BEC1; }
.quickbar svg { width: 18px; height: 18px; }
.quickbar .quickbar__cta { background: var(--color-perilla); color: #fff; box-shadow: none; }
.quickbar .quickbar__kakao { background: #FEE500; color: #191600; box-shadow: none; }
body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
body.nav-open .quickbar { display: none; }

/* ---------- 화면 크기 ---------- */
@media (max-width: 767px) {
  :root { --rim: 8px; --div: 10px; --pad: 18px; --radius-box: 22px; --radius-cell: 14px; --header-h: 58px; }
  .wrap { padding: 0 16px; }
  main.wrap { padding: 12px 8px 28px; }
  .logo b { font-size: 1.5rem; }
  .logo svg { width: 34px; height: 34px; }
  .hero__lead { margin-top: 12px; }
  .hero__actions { margin-top: 18px; }
  .hero__actions .btn { width: 100%; }
  .hero__soup .tape, .hero__note .tape { font-size: 1rem; }
  .soup-art { width: min(124px, 100%); }
  .hero__soup-name { font-size: 1.1rem; }
  .note__time b { font-size: 2.3rem; }
  .note__list { font-size: 13.5px; }
  .note__list li:last-child { display: none; }
  .keep-sticker { width: 84px; height: 84px; font-size: 11px; right: -4px; top: -22px; }
  .keep-sticker b { font-size: 1.6rem; }
  .lid-btn small { display: none; }
  .table th, .table td { padding: 8px 5px; }
}
@media (min-width: 640px) {
  .menu { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .fill__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .tray-wrap { grid-column: 1 / -1; grid-row: 1; }
}
@media (min-width: 1024px) {
  .hero__main { grid-column: span 8; grid-row: span 2; display: flex; flex-direction: column; justify-content: center; }
  .hero__soup { grid-column: span 4; flex-direction: row; text-align: left; align-items: center; gap: 18px; padding: 22px; flex-wrap: wrap; }
  .hero__soup .tape { flex-basis: 100%; }
  .soup-art { width: 150px; flex: none; }
  .hero__note { grid-column: span 4; padding: 22px 26px; }

  #today { grid-column: span 8; }
  #weekly { grid-column: span 4; }
  #fill { grid-column: 1 / -1; }
  #kitchen { grid-column: span 5; }
  #storage { grid-column: span 7; }
  #faq { grid-column: span 7; }
  #location { grid-column: span 5; }
  /* 뚜껑을 연 칸은 통 너비로 커지고, 같은 줄 짝꿍 칸은 아래로 비켜 준다 */
  .box > * { order: var(--o, 0); }
  .box > .cell.is-open { order: var(--o-open, var(--o, 0)); }
  .box > .cell.is-open, .box > .cell.is-pushed { grid-column: 1 / -1 !important; }
  #today.is-open .menu { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  #weekly.is-open, #kitchen.is-open { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 40px; align-content: start; }
  #weekly.is-open > .cell__head, #weekly.is-open > .cell__lead, #kitchen.is-open > .cell__head { grid-column: 1 / -1; }
  #weekly.is-open > .cell__more, #kitchen.is-open > .cell__more { grid-column: 2; grid-row: 3 / span 2; margin-top: 0; }
  #kitchen.is-open > .cell__more { grid-row: 2; }
  #weekly.is-open > .cell__more .more, #kitchen.is-open > .cell__more .more { border-top: 0; padding-top: 0; border-left: 2px dashed rgba(94,103,108,.35); padding-left: 32px; height: 100%; }

  .fill__grid { grid-template-columns: 290px minmax(0, 1fr) 300px; gap: 28px; }
  .quickbar { display: none; }
  body { padding-bottom: 0; }
}
@media (min-width: 1280px) {
  :root { --pad: 34px; }
}

/* ---------- 동작 줄이기 — 마지막 안전망 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  /* 색·투명도 피드백은 남긴다 */
  .btn, .chip span, .gnb a, .lid-btn, .qa__panel { transition-duration: .2s !important; }
}
