/*
  치즈피자의 건강 한 판 - 블로그 화면 스타일
  기본 틀: design/airtable-light.md (노랑 #FCB400, 파랑 #166EE1, 1px 선, 4px 단위, 작은 모서리)
  시안: B「치즈 늘어짐」(구성·제목) + C의 어두운 화면(토글) + A의 분류·상태 알약
        → 2026-11-15 시안 2「주방 + 메뉴」(design/시안-건강한판-2.html): 첫 화면은 치즈 띠에서 메뉴 4개가 가닥으로 흘러내리고(피자 = 인사이트 글),
          아래쪽 「주방」 선반 3칸에 재료(반죽 교재 정리 · 토핑 논문 읽기 · 소스 기사 정리)를 둔다.
  메뉴·재료 종류는 색이 아니라 이름·아이콘·가닥 위치로 구분한다 (알약 색에 이미 뜻이 있어서).
  본문 화면: 위에서 흘러내리는 치즈 + 왼쪽을 따라 내려가는 치즈 가닥(소제목이 점으로 매달림). 모두 왼쪽 정렬.
*/
:root {
  color-scheme: light;
  --cheese: #FCB400;
  --bg: #FFFFFF;
  --paper: #FFFFFF;
  --surface: #F5F5F5;
  --line: #E0E0E0;
  --line-soft: #F0F0F0;
  --ink: #1F1F1F;
  --text: #1F1F1F;
  --text-soft: #424242;
  --sub: #605E5C;
  --accent: #166EE1;
  --accent-soft: #E5F0FF;
  --yellow-tint: #FFF7E0;
  --yellow-line: #FFE082;
  --yellow-ink: #8A5C00;
  --red-soft: #FCE4E4;
  --red-ink: #B4123C;
  --green-ink: #15803d;
  --mark: rgba(252, 180, 0, .38);
  /* 그림용 */
  --img-bg: #F5F5F5;
  --ok: #15803d;
  --ok-soft: #DCF7E5;
  --bad: #E11D54;
  --bad-soft: #FCE4E4;
  --cell: #C7D7FE;
  --nucleus: #2D7FF9;
  --skin: #F3C9A8;
  --skin2: #E8A87C;
  --food: #FCB400;
  --warn: #8A5C00;
  --warn-soft: #FFF7E0;
  --on-solid: #FFFFFF;
  --font: 'Inter', 'Pretendard', 'Noto Sans KR', 'Malgun Gothic', -apple-system, 'Segoe UI', sans-serif;
  --font-body: var(--font);
  /* 가닥(왼쪽 치즈 줄)의 위치. 아주 넓은 화면(1240px 초과)에서는 전체 구성이 가운데로 모이도록 같이 밀린다 */
  --rail-base: max(clamp(16px, 4.5vw, 44px), calc((100vw - 1240px) / 2 + 44px));
  --rail: var(--rail-base);
  --textx-base: calc(var(--rail-base) + 44px);
  --textx: calc(var(--rail) + 44px);
  --gutter: clamp(16px, 5vw, 56px);
  /* 첫 화면·메뉴 화면·위쪽 메뉴 줄의 좌우 여백. 아주 넓은 화면에서는 가운데 1328px 안으로 모인다 */
  --gx: max(clamp(16px, 5vw, 56px), calc((100vw - 1328px) / 2));
  /* 주방(재료) 반죽색 */
  --dough: #F6E3BF; --dough-line: #E6C88E; --dough-ink: #6E470E;
}
@media (max-width: 560px) { :root { --textx-base: calc(var(--rail-base) + 30px); --textx: calc(var(--rail) + 30px); } }

/* 어두운 화면: 시스템 설정을 따르고, 위쪽 버튼으로 바꾸면 그 선택이 우선 */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #1F1F1F; --paper: #262626; --surface: #2F2F2F; --line: #3A3A3A; --line-soft: #333333;
    --ink: #FAFAFA; --text: #EDEDED; --text-soft: #D0D0D0; --sub: #B0B0B0;
    --accent: #5B9DF9; --accent-soft: #1E2E48; --yellow-tint: #3A2E10; --yellow-line: #5A4510; --yellow-ink: #FCC621;
    --red-soft: #3B1A22; --red-ink: #FF8FA9; --green-ink: #4ADE80; --mark: rgba(252, 180, 0, .3);
    --img-bg: #2F2F2F; --ok: #4ADE80; --ok-soft: #173222; --bad: #FF6B8B; --bad-soft: #3B1A22;
    --cell: #34476E; --nucleus: #7AA7FF; --skin: #8A5A3C; --skin2: #A8714A; --warn: #FCC621; --warn-soft: #3A2E10; --on-solid: #1F1F1F;
    --dough: #3B3020; --dough-line: #5C4A2E; --dough-ink: #F0CF94;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #1F1F1F; --paper: #262626; --surface: #2F2F2F; --line: #3A3A3A; --line-soft: #333333;
  --ink: #FAFAFA; --text: #EDEDED; --text-soft: #D0D0D0; --sub: #B0B0B0;
  --accent: #5B9DF9; --accent-soft: #1E2E48; --yellow-tint: #3A2E10; --yellow-line: #5A4510; --yellow-ink: #FCC621;
  --red-soft: #3B1A22; --red-ink: #FF8FA9; --green-ink: #4ADE80; --mark: rgba(252, 180, 0, .3);
  --img-bg: #2F2F2F; --ok: #4ADE80; --ok-soft: #173222; --bad: #FF6B8B; --bad-soft: #3B1A22;
  --cell: #34476E; --nucleus: #7AA7FF; --skin: #8A5A3C; --skin2: #A8714A; --warn: #FCC621; --warn-soft: #3A2E10; --on-solid: #1F1F1F;
  --dough: #3B3020; --dough-line: #5C4A2E; --dough-ink: #F0CF94;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--font); word-break: keep-all; overflow-wrap: anywhere; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

/* ---------- 바깥 틀: 치즈 띠, 흘러내림, 가닥 ---------- */
.site { position: relative; min-height: 100vh; display: flex; flex-direction: column; overflow-x: clip; }
.band { height: 18px; background: var(--cheese); flex: none; }
.top { position: relative; flex: none; }
.drips { position: absolute; left: 0; top: -1px; width: 100%; height: 84px; pointer-events: none; }
.drips path { fill: var(--cheese); }
/* 본문 화면의 왼쪽 가닥: 위쪽 메뉴 줄(로고) 아래에서 시작해 로고 글자를 지나가지 않게 한다 */
.rail { position: absolute; left: var(--rail); top: 74px; bottom: 150px; width: 6px; margin-left: -3px; background: var(--cheese); border-radius: 0 0 3px 3px; pointer-events: none; }
.rail::after { content: ''; position: absolute; left: 50%; bottom: -12px; width: 14px; height: 20px; margin-left: -7px; background: var(--cheese); border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%; }
/* 위쪽 메뉴 줄: 로고 · 메뉴 4개 · 주방 · 밝기 (모든 화면 같음, blog.js 의 renderNav 가 채움) */
.nav { position: relative; z-index: 1; display: flex; align-items: center; gap: 18px; min-height: 56px; padding: 0 var(--gx); font-size: 14px; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; white-space: nowrap; }
.brand svg { width: 22px; height: 22px; flex: none; }
.brand strong { font-size: 15px; font-weight: 800; letter-spacing: -.02em; }
.menu-links { display: none; align-items: center; gap: 4px; margin-left: 12px; }
.menu-links a { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 10px; border-radius: 6px; text-decoration: none; color: var(--text-soft); font-weight: 600; font-size: 14px; white-space: nowrap; }
.menu-links a:hover { background: var(--surface); color: var(--ink); }
.menu-links a[aria-current="page"], .kitchen-mini[aria-current="page"] { color: var(--ink); background: var(--yellow-tint); }
.menu-links a .soon { font-size: 11px; font-weight: 600; color: var(--sub); }
.menu-links .sep { width: 1px; height: 18px; background: var(--line); margin: 0 6px; }
.menu-links svg, .kitchen-mini svg { width: 18px; height: 18px; flex: none; }
.kitchen-mini { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 10px; border-radius: 6px; text-decoration: none; font-size: 13px; font-weight: 700; color: var(--text-soft); margin-left: auto; }
.theme-btn { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px 0 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); font-size: 13px; font-weight: 600; cursor: pointer; }
.theme-btn:hover { background: var(--surface); }
.theme-btn svg { width: 16px; height: 16px; flex: none; }
@media (min-width: 1000px) { .menu-links { display: flex; } .kitchen-mini { display: none; } .theme-btn { margin-left: auto; } }
@media (max-width: 560px) { .drips { height: 64px; } .nav { gap: 6px; } .theme-btn span { display: none; } .theme-btn { padding: 0 10px; } }
main { flex: 1 0 auto; position: relative; }
.foot { flex: none; margin-top: 32px; padding: 24px var(--gx) 28px; border-top: 1px solid var(--line); font-size: 13px; color: var(--sub); line-height: 1.7; }
.foot p { margin: 0; }
.uline { text-decoration: underline; text-decoration-color: var(--cheese); text-decoration-thickness: 2px; text-underline-offset: 5px; font-weight: 700; }
.empty-s { margin: 0; font-size: 14px; color: var(--sub); }

/* 재료 종류 아이콘 (반죽·토핑·소스). data-shelf 가 붙은 요소 안의 .ic 에 그린다. 글 파일에서도 그대로 쓴다 */
[data-shelf="dough"] { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5.5' y='9' width='13' height='6' rx='3'/%3E%3Cpath d='M1.5 12h4M18.5 12h4M9 9v6M15 9v6'/%3E%3C/svg%3E"); }
[data-shelf="topping"] { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Ccircle cx='12' cy='12' r='1.6'/%3E%3Cpath d='M12 5.5v3.5M12 15v3.5M5.5 12H9M15 12h3.5'/%3E%3C/svg%3E"); }
[data-shelf="sauce"] { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3c3.5 4.5 6 7.6 6 10.5a6 6 0 0 1-12 0C6 10.6 8.5 7.5 12 3z'/%3E%3Cpath d='M9.2 14a2.8 2.8 0 0 0 2.8 2.8'/%3E%3C/svg%3E"); }
.ic { display: inline-grid; place-items: center; flex: none; }
.ic::before { content: ''; width: 100%; height: 100%; background: currentColor; -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat; }

/* ---------- 알약 (분류·상태·근거 수준) ---------- */
.pill { display: inline-flex; align-items: center; height: 22px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 1; white-space: nowrap; color: #fff; }
.pill-blue { background: #166EE1; }
.pill-green { background: #20C933; color: #1F1F1F; }
.pill-yellow { background: #FCB400; color: #1F1F1F; }
.pill-purple { background: #8B46FF; }
.pill-red { background: #E11D54; }
.pill-gray { background: #666666; }
.pill-tint { background: var(--yellow-tint); color: var(--yellow-ink); }
.pill-outline { background: transparent; color: var(--text-soft); border: 1px solid var(--line); font-weight: 500; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.empty { padding: 8px 0; color: var(--sub); max-width: 32em; }

/* ---------- 첫 화면: 가게 입구 ---------- */
.hero-home { display: grid; gap: 24px; padding: clamp(40px, 8vw, 88px) var(--gx) clamp(28px, 4vw, 48px); }
.hero-home h1, .sec-hero h1 { margin: 0; font-weight: 900; letter-spacing: -.055em; line-height: 1.04; }
.hero-home h1 { font-size: clamp(44px, 12.5vw, 120px); }
.lead { display: grid; gap: 20px; align-content: end; }
.lead > p { margin: 0; max-width: 28em; font-size: 17px; line-height: 1.75; color: var(--text-soft); }
.lead > p b { color: var(--ink); font-weight: 700; background: linear-gradient(transparent 62%, var(--mark) 0); }
.fresh { display: grid; gap: 8px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); max-width: 30em; }
.fresh small { font-size: 12px; font-weight: 700; color: var(--yellow-ink); }
.fresh a { font-size: 16px; font-weight: 700; line-height: 1.45; letter-spacing: -.02em; text-decoration: none; }
.fresh a:hover, .hp a:hover, .s-head h3 a:hover, .shelf-item a:hover, .ing-row a.rt:hover { text-decoration: underline; text-decoration-color: var(--cheese); text-decoration-thickness: 3px; text-underline-offset: 4px; }
@media (min-width: 1000px) {
  .hero-home { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: end; gap: 56px; }
  .hero-home h1 { font-size: clamp(80px, 8.6vw, 128px); }
}

/* 메뉴(피자): 위쪽 치즈 띠에서 메뉴마다 가닥이 하나씩 내려오고, 글이 가닥에 매달린다. 점선 가닥은 준비 중인 메뉴 */
.menu { padding: 16px var(--gx) 8px; }
.sec-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; }
.sec-title h2 { margin: 0; display: inline-flex; align-items: center; gap: 10px; font-size: clamp(24px, 3.4vw, 30px); font-weight: 800; letter-spacing: -.035em; }
.sec-title h2 svg { width: 26px; height: 26px; }
.sec-title p { margin: 0; font-size: 14px; color: var(--sub); }
.chips { display: flex; gap: 6px; margin: 16px calc(var(--gx) * -1) 0; padding: 0 var(--gx) 4px; overflow-x: auto; scrollbar-width: none; }
.chips button { flex: none; height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); font-size: 14px; font-weight: 600; color: var(--text-soft); cursor: pointer; }
.chips button[aria-pressed="true"] { background: var(--cheese); border-color: var(--cheese); color: #1F1F1F; font-weight: 700; }
.strands { position: relative; display: grid; gap: 44px; margin-top: 28px; }
.strand { position: relative; display: flex; flex-direction: column; gap: 16px; padding-left: 36px; min-width: 0; }
.strand::before { content: ''; position: absolute; left: 9px; top: 0; bottom: 0; width: 6px; background: var(--cheese); border-radius: 0 0 3px 3px; }
.strand::after { content: ''; position: absolute; left: 5px; bottom: -14px; width: 14px; height: 20px; background: var(--cheese); border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%; }
.strand.is-soon::before { background: repeating-linear-gradient(to bottom, var(--cheese) 0 12px, transparent 12px 22px); opacity: .7; }
.strand.is-soon::after { display: none; }
.s-head { position: relative; display: grid; gap: 6px; }
.s-head::before { content: ''; position: absolute; left: -38px; top: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--cheese); border: 5px solid var(--bg); box-shadow: 0 0 0 1px var(--cheese); box-sizing: border-box; }
.is-soon .s-head::before { background: var(--bg); border: 4px solid var(--cheese); box-shadow: none; }
.s-no { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: var(--yellow-ink); line-height: 26px; }
.nowrap { white-space: nowrap; }
.sig { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; background: #1F1F1F; color: #FCB400; font-size: 11px; font-weight: 800; line-height: 1; letter-spacing: .02em; white-space: nowrap; }
:root[data-theme="dark"] .sig { background: #FCB400; color: #1F1F1F; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sig { background: #FCB400; color: #1F1F1F; } }
.s-head h3 { margin: 0; display: flex; align-items: flex-start; gap: 8px; font-size: 20px; font-weight: 800; letter-spacing: -.03em; line-height: 1.35; }
.s-head h3 a { text-decoration: none; }
.s-head h3 svg { width: 22px; height: 22px; flex: none; margin-top: 3px; }
.s-head p { margin: 0; font-size: 14px; line-height: 1.65; color: var(--text-soft); }
.is-soon .s-head h3 { color: var(--text-soft); }
.hang { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.hp { position: relative; display: grid; gap: 6px; }
.hp::before { content: ''; position: absolute; left: -33px; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--cheese); border: 4px solid var(--bg); box-shadow: 0 0 0 1px var(--cheese); box-sizing: border-box; }
.hp.todo::before { background: var(--bg); border: 3px solid var(--cheese); box-shadow: none; }
.hp .ep { font-size: 12px; color: var(--sub); }
.hp .ep b { color: var(--yellow-ink); font-weight: 700; margin-right: 8px; }
.hp a, .hp .tt { font-size: 16px; font-weight: 700; line-height: 1.45; letter-spacing: -.02em; text-decoration: none; }
.hp.todo .tt { color: var(--sub); font-weight: 600; }
.ing { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 12px; color: var(--dough-ink); font-weight: 600; }
.ing > span { display: inline-flex; align-items: center; gap: 4px; }
.ing .ic { width: 14px; height: 14px; }
.s-more { width: fit-content; font-size: 14px; }
.s-note { font-size: 12px; color: var(--sub); line-height: 1.6; }
@media (min-width: 1000px) {
  .chips { display: none; }
  .strands { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; padding-top: 40px; margin-top: 24px; }
  .strands::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 8px; background: var(--cheese); border-radius: 4px; }
  .strand::before { top: -36px; }
  .strand.is-soon::before { top: 4px; }
}
.later { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 48px; }
.later .lbl { font-size: 13px; font-weight: 700; color: var(--sub); margin-right: 4px; }
.later .soon-chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border: 1px dashed var(--sub); border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--text-soft); }
.later svg { width: 16px; height: 16px; }

/* 주방: 재료 선반 3칸 (반죽 교재 정리 · 토핑 논문 읽기 · 소스 기사 정리) */
.kitchen { margin: 56px var(--gx) 8px; padding: clamp(20px, 3.4vw, 36px); background: var(--dough); border: 1px solid var(--dough-line); border-radius: 12px; scroll-margin-top: 16px; }
.kitchen .sec-title p { color: var(--dough-ink); }
.shelves { display: grid; gap: 12px; margin-top: 20px; }
.shelf { display: grid; gap: 12px; align-content: start; padding: 16px; background: var(--paper); border: 1px solid var(--dough-line); border-radius: 8px; min-width: 0; }
.shelf-head { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 2px 10px; align-items: center; }
.shelf-head .shelf-ic { grid-row: span 2; width: 36px; height: 36px; border-radius: 8px; background: var(--dough); color: var(--dough-ink); padding: 7px; }
.shelf-head h3 { margin: 0; font-size: 17px; font-weight: 800; letter-spacing: -.02em; line-height: 1.3; }
.shelf-head small { font-size: 13px; color: var(--sub); }
.shelf-head .cnt { grid-row: span 2; font-size: 12px; font-weight: 700; color: var(--sub); }
.shelf-list { list-style: none; margin: 0; padding: 0; display: grid; }
.shelf-item { display: grid; gap: 4px; padding: 10px 0; border-top: 1px solid var(--line); }
.shelf-item:first-child { border-top: 0; padding-top: 2px; }
.shelf-item .m { font-size: 12px; color: var(--sub); }
.shelf-item a, .shelf-item .tt { font-size: 15px; font-weight: 700; line-height: 1.45; letter-spacing: -.01em; text-decoration: none; }
.shelf-item.todo .tt { color: var(--sub); font-weight: 600; }
.shelf-rule { margin: 0; font-size: 12px; color: var(--sub); line-height: 1.6; padding: 8px 10px; background: var(--surface); border-radius: 6px; }
.shelf-cap { font-size: 12px; font-weight: 700; color: var(--dough-ink); padding-bottom: 2px; }
.shelf-item[hidden] { display: none; }
.shelf-more { padding-top: 8px; border-top: 1px solid var(--line); }
.shelf-more button { font: inherit; font-size: 13px; font-weight: 700; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 6px 12px; cursor: pointer; }
.shelf-more button:hover { border-color: var(--cheese); }
/* 교재별 묶음 (반죽 선반 아래 · 교재 화면의 다른 교재). 줄 하나가 교재 하나, 누르면 교재 화면 */
.books { margin: 0; padding: 12px 0 0; border-top: 1px dashed var(--dough-line); display: grid; gap: 4px; }
.books .cap { font-size: 12px; font-weight: 700; color: var(--dough-ink); margin-bottom: 2px; }
.book-row { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 8px; align-items: center; min-height: 44px; padding: 6px 8px; margin: 0 -8px; border-radius: 6px; text-decoration: none; font-size: 14px; }
.book-row:hover { background: var(--surface); }
.book-row:hover .n { text-decoration: underline; text-decoration-color: var(--cheese); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.b-no { min-width: 30px; height: 26px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center; background: var(--dough); color: var(--dough-ink); font-size: 11px; font-weight: 800; white-space: nowrap; }
.book-row.now .b-no, .b-no.on { background: var(--cheese); color: #1F1F1F; }
.book-row .n { font-weight: 600; line-height: 1.35; }
.book-row .n small { color: var(--sub); font-size: 12px; margin-left: 6px; font-weight: 500; }
.book-row .bc { font-size: 12px; font-weight: 700; color: var(--dough-ink); white-space: nowrap; }
.book-row .bc.zero { color: var(--sub); font-weight: 500; }
@media (min-width: 1000px) { .shelves { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); } }

/* 재료 줄 (메뉴 화면의 재료 목록 · 피자 글의 「이 피자에 들어간 재료」에서 같이 씀) */
.ing-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ing-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 2px 10px; align-items: center; padding: 10px 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; }
.ing-row .ic { grid-row: span 2; width: 30px; height: 30px; border-radius: 6px; background: var(--dough); color: var(--dough-ink); padding: 6px; }
.ing-row .rk { font-size: 12px; color: var(--sub); font-weight: 600; line-height: 1.5; }
.ing-row .rt { font-size: 15px; font-weight: 700; line-height: 1.5; letter-spacing: -.01em; text-decoration: none; color: var(--ink); }
.ing-row .rgo { grid-row: span 2; font-size: 12px; font-weight: 700; white-space: nowrap; }
.ing-row a.rgo { color: var(--accent); text-decoration: none; }
.ing-row a.rgo:hover { text-decoration: underline; }
.ing-row span.rgo { color: var(--sub); font-weight: 600; }

/* ---------- 메뉴 화면 (menu.html) ---------- */
.crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 20px var(--gx) 0; font-size: 13px; }
.crumb .back { margin-bottom: 0; min-height: 36px; }
.sec-wrap { display: grid; gap: 12px; padding: clamp(24px, 5vw, 56px) var(--gx) 8px; }
.sec-hero { display: grid; gap: 20px; align-content: start; }
.sec-hero h1 { font-size: clamp(40px, 11.5vw, 96px); }
.sec-hero > p { margin: 0; max-width: 26em; font-size: 17px; line-height: 1.7; color: var(--text-soft); }
.list { position: relative; list-style: none; margin: 24px 0 0; padding: 4px 0 28px 44px; display: grid; gap: 40px; align-content: start; }
.list::before { content: ''; position: absolute; left: 12px; top: -24px; bottom: 0; width: 6px; background: var(--cheese); border-radius: 0 0 3px 3px; }
.list::after { content: ''; position: absolute; left: 8px; bottom: -14px; width: 14px; height: 20px; background: var(--cheese); border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%; }
.list .hp::before { left: -39px; top: 3px; width: 22px; height: 22px; border-width: 5px; }
.list .hp.todo::before { border-width: 4px; }
.list .hp .ep { font-size: 13px; }
.list .hp .ep b { font-size: 14px; }
.list .hp a, .list .hp .tt { font-size: clamp(20px, 3.2vw, 28px); font-weight: 800; letter-spacing: -.035em; line-height: 1.3; text-wrap: balance; }
.list .hp p { margin: 0; font-size: 15px; line-height: 1.7; color: var(--text-soft); max-width: 36em; }
.list .hp.todo .tt { font-weight: 700; }
.list .ing { font-size: 13px; }
.sec-kitchen { margin-top: 36px; padding: 16px; background: var(--dough); border: 1px solid var(--dough-line); border-radius: 8px; display: grid; gap: 10px; }
.sec-kitchen h2 { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 800; letter-spacing: -.02em; }
.sec-kitchen h2 svg { width: 20px; height: 20px; }
.sec-kitchen > p { margin: 0; font-size: 13px; color: var(--dough-ink); }
@media (min-width: 1000px) {
  .sec-wrap { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 48px; }
  .sec-hero h1 { font-size: clamp(64px, 6.8vw, 100px); }
  .list { margin-top: 0; }
  .list::before { top: -96px; } /* 위쪽 메뉴 글자를 지나가지 않게 메뉴 줄 아래에서 시작 */
}
/* ---------- 교재 화면 (book.html) ---------- */
.book-wrap { display: grid; gap: 28px; padding: clamp(20px, 4vw, 40px) var(--gx) 8px; }
.book-card { display: grid; gap: 10px; padding: clamp(20px, 3.4vw, 36px); background: var(--dough); border: 1px solid var(--dough-line); border-radius: 12px; }
.book-card h1 { margin: 0; font-size: clamp(30px, 5.4vw, 56px); line-height: 1.1; letter-spacing: -.04em; font-weight: 900; text-wrap: balance; }
.book-subtitle { display: block; margin-top: 6px; font-size: clamp(16px, 2vw, 20px); font-weight: 700; letter-spacing: -.01em; color: var(--text-soft); }
.book-sub { margin: 0; font-size: 15px; color: var(--dough-ink); font-weight: 600; }
.book-stats { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 14px; color: var(--text-soft); font-weight: 600; margin-top: 4px; }
.book-stats .st { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.book-stats .st::before { content: ''; width: 3px; height: 3px; border-radius: 50%; background: var(--sub); }
.book-cols { display: grid; gap: 20px; }
.book-sec { display: grid; gap: 12px; align-content: start; min-width: 0; }
.book-sec h2 { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.book-sec h2 svg { width: 22px; height: 22px; }
.book-others { border-top: 0; padding-top: 0; max-width: 720px; }
@media (min-width: 1000px) { .book-cols { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px; } }

.others { padding: 48px var(--gx) 8px; }
.others h2 { margin: 0 0 14px; font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.others-grid { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.others-grid a { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 10px; align-items: center; min-height: 56px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; font-weight: 700; font-size: 15px; background: var(--paper); }
.others-grid a:hover { border-color: var(--cheese); background: var(--surface); }
.others-grid svg { width: 22px; height: 22px; }

/* ---------- 본문 화면 ---------- */
.art-head { padding: clamp(20px, 4vw, 32px) var(--gutter) 24px var(--textx); max-width: calc(var(--textx) + 820px + var(--gutter)); box-sizing: content-box; }
.back { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--sub); text-decoration: none; margin-bottom: 18px; }
.back:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--cheese); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.art-head .pills { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.art-head h1 { margin: 14px 0 0; font-size: clamp(30px, 6.4vw, 54px); line-height: 1.14; letter-spacing: -.05em; font-weight: 900; text-wrap: balance; }
.byline { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 20px; font-size: 14px; color: var(--sub); }
.byline strong { color: var(--ink); font-weight: 700; }
.post-body { padding: 8px var(--gutter) 40px var(--textx); max-width: calc(var(--textx) + 740px + var(--gutter)); box-sizing: content-box; display: flex; flex-direction: column; gap: 20px; color: var(--text); font-size: 18px; line-height: 1.85; }
.post-body p { margin: 0; max-width: 36em; }
.post-body b { font-weight: 700; background: linear-gradient(transparent 62%, var(--mark) 0); }
.post-body a { color: var(--accent); }
.post-body i { font-style: italic; }
/* 소제목: 가닥에 점으로 매달림. 번호 칸은 숨기고 근거 수준 알약은 제목 옆에 둠 */
.post-body .blk { display: flex; flex-direction: column; gap: 16px; }
.post-body h2 { position: relative; margin: 20px 0 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; font-size: clamp(22px, 3.6vw, 28px); line-height: 1.35; letter-spacing: -.035em; font-weight: 800; }
.post-body h2::before { content: ''; position: absolute; left: calc(var(--rail) - var(--textx) - 8px); top: .42em; width: 16px; height: 16px; border-radius: 50%; background: var(--cheese); border: 3px solid var(--bg); box-shadow: 0 0 0 1px var(--cheese); box-sizing: border-box; }
.post-body h2 .no { display: none; }
.post-body h2 .tt { text-wrap: balance; max-width: 22em; }
.post-body h2 .pill { align-self: center; height: 22px; font-size: 12px; letter-spacing: 0; }
.post-body h3 { margin: 8px 0 0; font-size: 20px; line-height: 1.4; letter-spacing: -.02em; font-weight: 800; }
.post-body ul, .post-body ol { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; max-width: 40em; }
.post-body li.item, .post-body li.hyp, .post-body li.step { border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; font-size: 16px; line-height: 1.7; box-shadow: inset 3px 0 var(--line); }
.post-body li.fact { box-shadow: inset 3px 0 #20C933; }
.post-body li.interp { box-shadow: inset 3px 0 #166EE1; }
.post-body li.hyp { box-shadow: inset 3px 0 var(--cheese); }
.post-body li .row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 2px; }
.post-body li.step { display: flex; gap: 10px; align-items: flex-start; padding: 0; overflow: hidden; box-shadow: none; }
.post-body li.step .n { width: 34px; align-self: stretch; display: grid; place-items: center; flex: none; background: var(--surface); border-right: 1px solid var(--line); color: var(--sub); font-size: 13px; font-weight: 600; }
.post-body li.step .tx { padding: 8px 12px 8px 2px; }
.post-body .urgent { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: flex-start; background: var(--red-soft); border-radius: 8px; padding: 12px 14px; font-size: 16px; line-height: 1.7; box-shadow: inset 3px 0 #E11D54; max-width: 40em; }
.post-body .urgent .tx { flex: 1 1 260px; }
.post-body .urgent b { background: none; color: var(--red-ink); }
.post-body .closing { max-width: 36em; font-weight: 700; font-size: 18px; padding: 14px 16px; background: var(--yellow-tint); border: 1px solid var(--yellow-line); border-radius: 8px; }
.post-body .closing b { background: none; }
.post-body .legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; font-size: 13px; color: var(--sub); line-height: 1.5; max-width: 40em; }
.post-body .tblwrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
.post-body table { width: 100%; min-width: 460px; border-collapse: collapse; font-size: 15px; line-height: 1.6; }
.post-body th, .post-body td { text-align: left; vertical-align: top; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.post-body tr:last-child td { border-bottom: 0; }
.post-body th { background: var(--surface); font-weight: 700; font-size: 13px; }
.post-body td:first-child { color: var(--sub); font-weight: 600; white-space: nowrap; width: 1%; }
.post-body td + td, .post-body th + th { border-left: 1px solid var(--line); }
/* 그림 */
.post-body .figwrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
.post-body .fig { display: block; width: 100%; min-width: 480px; height: auto; font-family: var(--font-body); }
.post-body .swipe { display: none; font-size: 12px; color: var(--sub); margin-top: -10px; }
@media (max-width: 540px) { .post-body .swipe { display: block; } }
.bg { fill: var(--img-bg); }
.card { fill: var(--paper); stroke: var(--line); stroke-width: 2; }
.t { fill: var(--ink); font-weight: 700; }
.s { fill: var(--sub); font-weight: 500; }
.w { fill: var(--on-solid); font-weight: 700; }
.dk { fill: #1F1F1F; font-weight: 700; }
.acc { fill: var(--accent); font-weight: 700; }
.badtx { fill: var(--bad); font-weight: 700; }
.warntx { fill: var(--warn); font-weight: 700; }
.okTx { fill: var(--ok); font-weight: 700; }
.ac-fill { fill: var(--accent); }
.yel-f { fill: #FCB400; }
.ac-soft { fill: var(--accent-soft); }
.ac-soft-o { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 2; }
.ok-f { fill: var(--ok); }
.ok-bg { fill: var(--ok-soft); }
.bad-f { fill: var(--bad); }
.bad-bg { fill: var(--bad-soft); }
.warn-bg { fill: var(--warn-soft); }
.warn-f { fill: var(--warn); }
.cell-f { fill: var(--cell); stroke: var(--nucleus); stroke-width: 3; }
.nuc { fill: var(--nucleus); }
.skin-f { fill: var(--skin); }
.skin2-f { fill: var(--skin2); }
.food-f { fill: var(--food); }
.ln { stroke: var(--line); stroke-width: 2; fill: none; }
.arrow { stroke: var(--sub); stroke-width: 4; stroke-linecap: round; fill: none; }
.arrowhead { fill: var(--sub); }
.face { stroke: var(--ink); stroke-width: 3; fill: none; stroke-linecap: round; }
.eye { fill: var(--ink); }
.ring { fill: none; stroke: #FCB400; stroke-width: 4; }
.dim { opacity: .4; }
.crab-f { fill: #ef6a4c; }
.crab-l { stroke: #ef6a4c; stroke-width: 3; stroke-linecap: round; fill: none; }
/* 이 피자에 들어간 재료: 재료마다 「무엇을 가져다 썼는지」 한 줄. 정식 출처는 아래 참고 자료에 */
.post-body .recipe { display: grid; gap: 12px; padding: clamp(16px, 3vw, 24px); background: var(--dough); border: 1px solid var(--dough-line); border-radius: 12px; max-width: 40em; margin-top: 8px; }
.post-body .recipe h3 { margin: 0; display: flex; align-items: center; gap: 10px; font-size: clamp(20px, 3vw, 24px); font-weight: 800; letter-spacing: -.03em; line-height: 1.3; }
.post-body .recipe h3::before { content: ''; width: 26px; height: 26px; flex: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5 3 19.5c6 2.8 12 2.8 18 0Z' fill='%23FCB400' stroke='%231F1F1F' stroke-width='1.6' stroke-linejoin='round'/%3E%3Cpath d='M3.9 17.9c5.4 2.4 10.8 2.4 16.2 0' fill='none' stroke='%231F1F1F' stroke-width='1.6'/%3E%3Ccircle cx='11' cy='11.5' r='1.5' fill='%231F1F1F'/%3E%3Ccircle cx='14.2' cy='15.4' r='1.3' fill='%231F1F1F'/%3E%3Ccircle cx='9' cy='16' r='1.1' fill='%231F1F1F'/%3E%3C/svg%3E") center / contain no-repeat; }
.post-body .recipe .recipe-lead { margin: 0; font-size: 14px; line-height: 1.6; color: var(--dough-ink); max-width: none; }
.post-body .recipe h4 { margin: 6px 0 0; font-size: 13px; font-weight: 800; color: var(--dough-ink); line-height: 1.5; }
.post-body .recipe .ing-rows { max-width: none; gap: 6px; }

/* 재료 노트 머리말 (반죽색으로 피자 글과 구분) + 이 재료로 구운 피자 */
.art-head.is-note { max-width: calc(var(--textx) + 860px + var(--gutter)); }
.note-card { display: grid; gap: 12px; padding: clamp(18px, 3vw, 28px); background: var(--dough); border: 1px solid var(--dough-line); border-radius: 12px; }
.note-kind { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; color: var(--dough-ink); }
.note-kind .ic { width: 20px; height: 20px; }
.note-card h1 { margin: 0; font-size: clamp(26px, 4.6vw, 40px); }
.note-card .byline { margin-top: 0; }
.note-meta { display: grid; gap: 4px; font-size: 14px; color: var(--text-soft); line-height: 1.6; }
.note-meta b { color: var(--ink); margin-right: 4px; }
.note-meta a { color: var(--accent); }
.baked-wrap { padding: 0 var(--gutter) 32px var(--textx); max-width: calc(var(--textx) + 740px + var(--gutter)); box-sizing: content-box; }
.baked { display: grid; gap: 10px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; }
.baked h2 { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.baked h2 svg { width: 22px; height: 22px; }
.baked-card { display: grid; gap: 6px; padding: 14px 16px; border-radius: 8px; background: var(--yellow-tint); border: 1px solid var(--yellow-line); text-decoration: none; }
.baked-card:hover { border-color: var(--cheese); }
.baked-card small { font-size: 12px; font-weight: 700; color: var(--yellow-ink); }
.baked-card strong { font-size: 17px; line-height: 1.4; letter-spacing: -.02em; }

/* 참고 자료 */
.post-body .refs { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; max-width: 44em; }
.post-body .refs h3 { margin: 0 0 2px; font-size: 14px; font-weight: 700; color: var(--sub); letter-spacing: 0; }
.post-body .ref { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; font-size: 14px; line-height: 1.65; color: var(--sub); }
.post-body .ref .pill { flex: none; margin-top: 1px; height: 20px; font-size: 11px; padding: 0 8px; }
.post-body .ref .tx { min-width: 0; }
.post-body .ref .tx .pill { display: inline-flex; margin: 0 2px; }

/* 이전·다음 글 */
.pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 0 var(--gutter) 64px var(--textx); max-width: calc(var(--textx) + 740px + var(--gutter)); box-sizing: content-box; }
.pager a { display: grid; gap: 4px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; background: var(--bg); }
.pager a:hover { background: var(--surface); border-color: var(--cheese); }
.pager small { font-size: 12px; color: var(--sub); font-weight: 600; }
.pager strong { font-size: 15px; line-height: 1.4; letter-spacing: -.02em; font-weight: 700; }
.pager .next { text-align: right; grid-column: 2; }
@media (max-width: 560px) { .pager { grid-template-columns: 1fr; } .pager .next { grid-column: auto; } }

/* ---------- 웹(넓은 화면)용 구성 ---------- */
.toc { display: none; }
.art-layout { display: block; }

/* 본문 화면: 오른쪽에 따라다니는 「이 글의 소제목」 목차 */
@media (min-width: 1100px) {
  .art-layout { display: flex; align-items: flex-start; }
  .art-layout .post-body { flex: 1 1 auto; min-width: 0; max-width: 760px; }
  .toc { display: block; flex: none; width: 250px; position: sticky; top: 24px; margin: 8px 0 0 32px; padding: 2px 0 2px 16px; border-left: 1px solid var(--line); font-size: 14px; line-height: 1.5; }
  .toc[hidden] { display: none; }
  .toc strong { display: block; margin-bottom: 10px; font-size: 13px; color: var(--sub); font-weight: 700; }
  .toc ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
  .toc a { display: block; padding: 6px 10px; margin-left: -17px; border-left: 3px solid transparent; color: var(--text-soft); text-decoration: none; border-radius: 0 6px 6px 0; }
  .toc a:hover { background: var(--surface); color: var(--ink); }
  .toc a[aria-current="true"] { border-left-color: var(--cheese); background: var(--yellow-tint); color: var(--ink); font-weight: 700; }
  .post-body h2 { scroll-margin-top: 24px; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-home h1, .sec-hero h1 { animation: melt .7s cubic-bezier(.2, .7, .2, 1) both; }
}
@keyframes melt { from { transform: translateY(-14px); opacity: .2; } to { transform: none; opacity: 1; } }

/* 비공개 초안 미리보기 안내 */
.draft-note { margin: 0 0 14px; display: block; width: fit-content; padding: 8px 12px; border-radius: 8px; background: var(--red-soft); color: var(--red-ink); font-size: 13px; font-weight: 600; line-height: 1.5; box-shadow: inset 3px 0 #E11D54; }
