/* 글 페이지 공통 스타일: 레시피 페이지, 레시피 모음, 사이트 소개, 개인정보처리방침
   (색, 머리글, 버튼 같은 기본은 style.css) */

.content { position: relative; z-index: 1; width: 100%; max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; padding-top: 6px; }

.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; font-size: 14px; color: var(--muted); }
.breadcrumb a { min-height: 32px; display: inline-flex; align-items: center; color: var(--link); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

.page-title { margin: 0; font-family: 'Jua', sans-serif; font-weight: 400; font-size: 34px; line-height: 1.2; word-break: keep-all; }
.page-lead { margin: 6px 0 0; font-size: 16px; color: var(--muted); word-break: keep-all; }
.updated { margin: 6px 0 0; font-size: 14px; color: var(--muted); }

.content h2 { margin: 0 0 10px; font-family: 'Jua', sans-serif; font-weight: 400; font-size: 24px; line-height: 1.25; }
.content h2 small { font-family: 'Gowun Dodum', sans-serif; font-size: 15px; color: var(--muted); }

/* 음식 사진 */
.photo-hero { position: relative; margin: 0; }
.photo-hero::before, .photo-hero::after { content: ""; position: absolute; z-index: 1; top: -9px; width: 80px; height: 24px; background: var(--tape); pointer-events: none; }
.photo-hero::before { left: 22px; transform: rotate(-7deg); }
.photo-hero::after { right: 22px; transform: rotate(6deg); }
.photo-hero img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 18px; background: var(--photo-bg); }
.photo-hero figcaption { margin-top: 6px; text-align: right; font-size: 12px; }

/* 조리 시간 · 난이도 · 인분 */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 12px; border-radius: 999px; background: var(--sunk); font-size: 14px; color: var(--muted); text-decoration: none; }
a.chip:hover { color: var(--text); }
.chip .ico { width: 15px; height: 15px; }

/* 재료 */
.ingredient-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px 18px; font-size: 16px; }
.ingredient-list li { position: relative; padding-left: 16px; line-height: 1.5; word-break: keep-all; }
.ingredient-list li::before { content: ""; position: absolute; left: 2px; top: 0.6em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.ingredient-list li.wide { grid-column: 1 / -1; }

/* 만드는 법 */
.step-list { list-style: none; counter-reset: step; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 16px; }
.step-list li { counter-increment: step; position: relative; min-height: 28px; padding-left: 40px; line-height: 1.65; word-break: keep-all; }
.step-list li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--accent); color: var(--accent-text); font-family: 'Jua', sans-serif; font-size: 15px; line-height: 1; }

/* 냥셰프 팁 */
.tip-note { margin: 0; padding: 12px 16px; border-radius: 14px; background: var(--note); color: var(--note-text); font-family: 'Gaegu', cursive; font-weight: 700; font-size: 20px; line-height: 1.4; word-break: keep-all; }
.tip-note strong { margin-right: 8px; font-family: 'Jua', sans-serif; font-weight: 400; font-size: 16px; color: var(--text); }

.search-more { align-self: flex-end; font-size: 14px; }

/* 쿠팡 파트너스 안내 문구와 재료 버튼 (모양은 style.css) */
.page-lead + .ad-note { margin-top: 8px; }
.ingredient-list + .shop-box { margin-top: 16px; }

/* 추천받으러 가기 */
.cta-card { align-items: center; text-align: center; }
.cta-text { margin: 0; font-family: 'Gaegu', cursive; font-weight: 700; font-size: 22px; color: var(--quote); word-break: keep-all; }

/* 레시피 링크 목록 (관련 레시피, 레시피 모음) */
.recipe-links-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.recipe-links-list a { height: 100%; display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 2px solid var(--border-soft); border-radius: 16px; background: var(--paper); color: var(--text); text-decoration: none; }
.recipe-links-list a:hover { border-color: var(--accent); }
.recipe-links-list .name { font-family: 'Jua', sans-serif; font-size: 19px; line-height: 1.25; word-break: keep-all; }
.recipe-links-list .meta { font-size: 13px; color: var(--muted); }

/* 레시피 모음 */
.meal-section h2 { display: flex; align-items: center; gap: 8px; }
.meal-section h2 .ico { width: 24px; height: 24px; color: var(--accent); }
.category-block + .category-block { margin-top: 6px; }
.category-block h3 { margin: 0 0 8px; font-family: 'Jua', sans-serif; font-weight: 400; font-size: 18px; color: var(--muted); }

/* 소개, 개인정보처리방침 같은 긴 글 */
.prose { font-size: 16px; line-height: 1.8; word-break: keep-all; }
.prose h2 { margin: 30px 0 8px; font-size: 22px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 18px 0 6px; font-family: 'Jua', sans-serif; font-weight: 400; font-size: 18px; }
.prose p, .prose ul, .prose ol { margin: 0 0 12px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 4px; }
.table-wrap { margin: 0 0 12px; overflow-x: auto; }
.prose table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 15px; line-height: 1.6; }
.prose th, .prose td { padding: 8px 10px; border: 1px solid var(--border); text-align: left; vertical-align: top; }
.prose th { background: var(--sunk); font-weight: 700; }

@media (min-width: 700px) {
  .page-title { font-size: 44px; }
  .content h2 { font-size: 28px; }
  .prose h2 { font-size: 24px; }
}
