/* 푸드페스타넷 — framed-grid-layout. 색·크기는 tokens.css 변수만 쓴다. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0; color: var(--ink); font-family: var(--font-sans); font-size: var(--fs-md); line-height: 1.7;
  background: repeating-linear-gradient(135deg, transparent 0 11px, var(--texture) 11px 12px), var(--bg);
  word-break: keep-all; overflow-wrap: anywhere;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--ink-inverse); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gap); }

/* ── 상단 ─────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--surface); border-bottom: 1px solid var(--line-strong); }
.header-inner { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.logo { display: flex; flex-direction: column; line-height: 1.05; flex: none; }
.logo:hover { text-decoration: none; }
.logo b { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; }
.logo b i { font-style: normal; color: var(--accent); }
.logo small { font-size: 0.6875rem; color: var(--ink-3); font-weight: 600; }
.gnb { display: flex; align-items: stretch; height: 100%; margin-left: 8px; }
.gnb > li { position: relative; list-style: none; display: flex; }
.gnb ul { margin: 0; padding: 0; list-style: none; }
.gnb > li > a { display: flex; align-items: center; padding: 0 14px; font-weight: 700; font-size: var(--fs-md); border-bottom: 3px solid transparent; }
.gnb > li > a:hover, .gnb > li > a[aria-current="true"] { text-decoration: none; border-bottom-color: var(--accent); }
.gnb .sub { position: absolute; top: 100%; left: 0; min-width: 180px; background: var(--surface); border: 1px solid var(--line-strong); padding: 8px 0; display: none; }
.gnb > li:hover .sub, .gnb > li:focus-within .sub { display: block; }
.gnb .sub a { display: block; padding: 7px 16px; font-size: var(--fs-sm); }
.header-tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; }
.btn-inquiry { background: var(--accent); color: var(--ink-inverse); border: 0; height: 40px; padding: 0 18px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.btn-inquiry:hover { background: var(--accent-ink); }
.menu-toggle { display: none; }
.drawer { display: none; }

/* ── 필터 띠 ─────────────────────────── */
.filterbar { border-bottom: 1px solid var(--line); background: var(--surface); }
.filterbar .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding-top: 10px; padding-bottom: 10px; }
.tabs, .chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chips > span { font-size: var(--fs-xs); color: var(--ink-3); font-weight: 600; margin-right: 2px; }
.tab, .chip { border: 1px solid var(--line-strong); background: var(--surface); padding: 5px 12px; font-size: var(--fs-sm); cursor: pointer; min-height: 32px; }
.tab[aria-pressed="true"], .chip[aria-pressed="true"] { background: var(--ink); color: var(--ink-inverse); border-color: var(--ink); }
.chips { margin-left: auto; }

/* ── 격자·틀 ─────────────────────────── */
main { padding: 20px 0 48px; }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.grid > * { min-width: 0; }
.s12 { grid-column: span 12; } .s8 { grid-column: span 8; } .s7 { grid-column: span 7; } .s6 { grid-column: span 6; } .s5 { grid-column: span 5; } .s4 { grid-column: span 4; } .s3 { grid-column: span 3; }
.frame { position: relative; border: 1px solid var(--line); background: var(--surface); padding: var(--pad); }
.brackets {
  background:
    linear-gradient(var(--line-strong), var(--line-strong)) left top / var(--corner) 1px no-repeat,
    linear-gradient(var(--line-strong), var(--line-strong)) left top / 1px var(--corner) no-repeat,
    linear-gradient(var(--line-strong), var(--line-strong)) right top / var(--corner) 1px no-repeat,
    linear-gradient(var(--line-strong), var(--line-strong)) right top / 1px var(--corner) no-repeat,
    linear-gradient(var(--line-strong), var(--line-strong)) left bottom / var(--corner) 1px no-repeat,
    linear-gradient(var(--line-strong), var(--line-strong)) left bottom / 1px var(--corner) no-repeat,
    linear-gradient(var(--line-strong), var(--line-strong)) right bottom / var(--corner) 1px no-repeat,
    linear-gradient(var(--line-strong), var(--line-strong)) right bottom / 1px var(--corner) no-repeat,
    var(--surface);
}
.section { margin-top: 28px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-top: 2px solid var(--ink); padding-top: 10px; margin-bottom: 14px; }
.section-head h2 { margin: 0; font-size: var(--fs-xl); font-weight: 800; letter-spacing: -0.02em; }
.section-head h2 small { font-size: var(--fs-sm); font-weight: 600; color: var(--ink-3); margin-left: 8px; letter-spacing: 0; }
.section-head .more { font-size: var(--fs-sm); color: var(--ink-2); font-weight: 600; white-space: nowrap; }

/* ── 카드 ────────────────────────────── */
.card { display: flex; flex-direction: column; border: 1px solid var(--line); background: var(--surface); height: 100%; }
.card:hover { border-color: var(--line-strong); }
.card a.cover { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.card a.cover:hover { text-decoration: none; }
.card .cover img { width: 100%; height: 100%; object-fit: cover; }
.fmt-block { width: 100%; height: 100%; display: flex; align-items: flex-end; padding: 16px; font-weight: 800; font-size: var(--fs-lg); line-height: 1.35; letter-spacing: -0.01em; color: var(--ink); }
.fmt-block.story { background: var(--fmt-story); } .fmt-block.explainer { background: var(--fmt-explainer); } .fmt-block.compare { background: var(--fmt-compare); } .fmt-block.dispatch { background: var(--fmt-dispatch); }
.fmt-block.trendread { background: var(--fmt-trendread); } .fmt-block.number { background: var(--fmt-number); } .fmt-block.column { background: var(--fmt-column); } .fmt-block.ours { background: var(--fmt-ours); }
.card .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.meta { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: var(--fs-xs); color: var(--ink-3); font-weight: 600; }
.meta .fmt { color: var(--accent-ink); }
.card h3 { margin: 0; font-size: var(--fs-lg); line-height: 1.4; font-weight: 750; letter-spacing: -0.015em; }
.card p.dek { margin: 0; font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card .date { margin-top: auto; font-size: var(--fs-xs); color: var(--ink-3); }
.card.compact .cover { display: none; }
.card.compact h3 { font-size: var(--fs-md); }
.list-plain { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--gap); }

/* 헤드라인 */
.lead-card { display: grid; grid-template-columns: 1fr; border: 1px solid var(--line-strong); background: var(--surface); height: 100%; }
.lead-card .cover { aspect-ratio: 16 / 9; display: block; overflow: hidden; background: var(--surface-2); }
.lead-card .cover img { width: 100%; height: 100%; object-fit: cover; }
.lead-card .body { padding: 20px 22px 22px; display: grid; gap: 10px; }
.lead-card h2 { margin: 0; font-size: var(--fs-3xl); line-height: 1.22; font-weight: 800; letter-spacing: -0.03em; }
.lead-card p.dek { margin: 0; font-size: var(--fs-lg); color: var(--ink-2); line-height: 1.6; }
.side-stack { display: grid; gap: var(--gap); align-content: start; }

/* 이번 주 한 문장 */
.quote-band { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; border: 1px solid var(--line-strong); background: var(--ink); color: var(--ink-inverse); padding: 22px var(--pad); }
.quote-band .label { font-size: var(--fs-xs); font-weight: 700; border: 1px solid currentColor; padding: 3px 8px; white-space: nowrap; }
.quote-band blockquote { margin: 0; font-size: var(--fs-xl); font-weight: 750; line-height: 1.45; letter-spacing: -0.02em; }
.quote-band a { font-size: var(--fs-sm); font-weight: 700; white-space: nowrap; text-decoration: underline; text-underline-offset: 4px; }

/* 운영 탭 */
.subtabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.subtabs button { border: 1px solid var(--line-strong); background: var(--surface); padding: 6px 12px; font-size: var(--fs-sm); cursor: pointer; min-height: 34px; }
.subtabs button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--ink-inverse); }

/* 숫자 하나 띠 */
.number-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
.number-card { scroll-snap-align: start; background: var(--highlight); border: 1px solid var(--ink); padding: 18px; display: grid; gap: 8px; align-content: start; min-height: 170px; }
.number-card:hover { text-decoration: none; outline: 2px solid var(--ink); }
.number-card strong { font-size: clamp(2rem, 1.6rem + 1.5vw, 2.75rem); font-weight: 850; line-height: 1; letter-spacing: -0.03em; }
.number-card span { font-size: var(--fs-sm); line-height: 1.5; font-weight: 600; }

/* 자료실 띠 */
.library-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.library-band a { border: 1px solid var(--line-strong); background: var(--surface); padding: 18px; display: grid; gap: 4px; }
.library-band a:hover { text-decoration: none; border-color: var(--ink); }
.library-band strong { font-size: var(--fs-2xl); font-weight: 850; line-height: 1.1; }
.library-band span { font-size: var(--fs-sm); color: var(--ink-2); font-weight: 600; }

/* 구독 */
.subscribe { display: grid; grid-template-columns: 1fr 1.2fr; gap: 24px; align-items: center; }
.subscribe h2 { margin: 0 0 6px; font-size: var(--fs-xl); }
.subscribe p { margin: 0; color: var(--ink-2); font-size: var(--fs-sm); }
.sub-form { display: grid; gap: 10px; }
.sub-form .row { display: flex; gap: 8px; }
.sub-form input[type="email"] { flex: 1; min-width: 0; height: 46px; border: 1px solid var(--line-strong); padding: 0 12px; background: var(--surface); }
.sub-form button { height: 46px; padding: 0 20px; border: 0; background: var(--ink); color: var(--ink-inverse); font-weight: 700; cursor: pointer; }
.consent { display: flex; gap: 8px; align-items: flex-start; font-size: var(--fs-xs); color: var(--ink-2); line-height: 1.55; }
.consent input { margin-top: 3px; width: 16px; height: 16px; flex: none; }
.form-msg { font-size: var(--fs-sm); font-weight: 600; min-height: 1.5em; }
.form-msg.err { color: var(--accent-ink); }

/* ── 목록 쪽 ─────────────────────────── */
.page-head { border-bottom: 2px solid var(--ink); padding: 12px 0 14px; margin-bottom: 18px; }
.page-head .crumb { font-size: var(--fs-sm); color: var(--ink-3); font-weight: 600; }
.page-head h1 { margin: 4px 0 4px; font-size: var(--fs-2xl); font-weight: 850; letter-spacing: -0.03em; line-height: 1.25; }
.page-head p { margin: 0; color: var(--ink-2); }
.subnav { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 20px; padding: 0; list-style: none; }
.subnav a { display: inline-block; border: 1px solid var(--line-strong); background: var(--surface); padding: 6px 12px; font-size: var(--fs-sm); font-weight: 600; }
.subnav a[aria-current="page"] { background: var(--ink); color: var(--ink-inverse); border-color: var(--ink); }
.subnav a:hover { text-decoration: none; border-color: var(--ink); }
.cards-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.empty { border: 1px dashed var(--line-strong); background: var(--surface); padding: 28px; text-align: center; color: var(--ink-2); }
.sub-block { margin-bottom: 30px; }
.sub-block h2 { font-size: var(--fs-lg); margin: 0 0 12px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.sub-block h2 a { font-size: var(--fs-sm); color: var(--ink-2); font-weight: 600; }

/* ── 기사 ────────────────────────────── */
.article { max-width: var(--readw); margin: 0 auto; }
.article-head { padding: 8px 0 18px; border-bottom: 1px solid var(--line-strong); }
.article-head .where { font-size: var(--fs-sm); font-weight: 700; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 6px 10px; }
.article-head .where .fmt { color: var(--accent-ink); }
.article-head h1 { margin: 10px 0 10px; font-size: var(--fs-3xl); line-height: 1.25; font-weight: 850; letter-spacing: -0.03em; }
.article-head .dek { margin: 0 0 14px; font-size: var(--fs-lg); color: var(--ink-2); line-height: 1.6; }
.byline { font-size: var(--fs-sm); color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 4px 12px; }
.byline b { color: var(--ink); }
.hero { margin: 22px 0 6px; }
.hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--line); }
.hero figcaption, .figure figcaption { font-size: var(--fs-xs); color: var(--ink-3); margin-top: 6px; }
.hero figcaption a, .figure figcaption a { text-decoration: underline; }
.number-hero { margin: 22px 0; background: var(--highlight); border: 1px solid var(--ink); padding: 26px; }
.number-hero strong { display: block; font-size: clamp(3rem, 2rem + 4vw, 5rem); font-weight: 850; line-height: 1; letter-spacing: -0.04em; }
.number-hero span { display: block; margin-top: 10px; font-weight: 700; font-size: var(--fs-lg); }
.prose { font-size: 1.125rem; line-height: 1.85; text-align: justify; text-justify: inter-word; }
.prose > * + * { margin-top: 1.1em; }
.prose p { margin: 0; }
.prose h2 { font-size: var(--fs-xl); line-height: 1.4; margin: 1.9em 0 0.4em; letter-spacing: -0.02em; text-align: left; }
.prose ul, .prose ol { padding-left: 1.3em; text-align: left; }
.prose li + li { margin-top: 0.35em; }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 18px; border-left: 4px solid var(--accent); font-size: var(--fs-xl); font-weight: 700; line-height: 1.55; text-align: left; }
.prose blockquote p { margin: 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); line-height: 1.55; text-align: left; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line-strong); padding: 8px 10px; vertical-align: top; min-width: 7em; }
.prose th { background: var(--surface-2); font-weight: 700; }
.prose strong { font-weight: 750; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
/* 형식별 본문 틀 */
.format-story .prose h2 { display: flex; align-items: center; gap: 10px; font-size: var(--fs-lg); color: var(--accent-ink); }
.format-story .prose h2::before { content: ''; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); flex: none; }
.format-story .prose { border-left: 2px solid var(--line-strong); padding-left: 20px; }
.format-explainer .prose h2 { border-top: 1px solid var(--line-strong); padding-top: 14px; }
.format-dispatch .prose h2 { font-size: var(--fs-lg); background: var(--fmt-dispatch); padding: 8px 12px; }
.format-compare .prose table:first-of-type { font-size: var(--fs-md); }
.format-column .prose { font-size: 1.1875rem; }
.format-trendread .prose { font-size: 1.125rem; }
.article-foot { margin-top: 36px; border-top: 2px solid var(--ink); padding-top: 16px; display: grid; gap: 18px; }
.refs h2, .lib-links h2 { font-size: var(--fs-md); margin: 0 0 8px; }
.refs ol { margin: 0; padding-left: 1.3em; font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.6; }
.refs a { text-decoration: underline; }
.lib-links ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.lib-links a { display: inline-block; border: 1px solid var(--line-strong); padding: 6px 12px; font-size: var(--fs-sm); font-weight: 600; background: var(--surface); }
.ai-note { font-size: var(--fs-sm); color: var(--ink-2); background: var(--surface-2); padding: 12px 14px; border: 1px solid var(--line); }
.share { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: var(--fs-sm); font-weight: 600; }
.share button { border: 1px solid var(--line-strong); background: var(--surface); padding: 6px 12px; cursor: pointer; min-height: 34px; }
.related { max-width: var(--maxw); margin: 40px auto 0; }

/* 자료실 표 */
.data-table { width: 100%; border-collapse: collapse; background: var(--surface); font-size: var(--fs-sm); }
.data-table th, .data-table td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; line-height: 1.55; }
.data-table th { background: var(--surface-2); }
.data-table td.num { font-weight: 800; font-size: var(--fs-lg); white-space: nowrap; }
.table-wrap { overflow-x: auto; }
.check-group { margin-bottom: 26px; }
.check-group h2 { font-size: var(--fs-lg); margin: 0 0 10px; }
.check-group h2 a { font-size: var(--fs-sm); font-weight: 600; color: var(--ink-3); margin-left: 8px; }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.check-list li { display: flex; gap: 10px; background: var(--surface); border: 1px solid var(--line); padding: 10px 14px; line-height: 1.6; }
.check-list li::before { content: ''; width: 16px; height: 16px; border: 2px solid var(--ink); flex: none; margin-top: 5px; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 16px; border-left: 2px solid var(--ink); display: grid; gap: 14px; }
.timeline li { position: relative; background: var(--surface); border: 1px solid var(--line); padding: 12px 14px; }
.timeline li::before { content: ''; position: absolute; left: -24px; top: 18px; width: 12px; height: 12px; background: var(--accent); border-radius: 50%; }
.timeline .when { font-size: var(--fs-xs); color: var(--ink-3); font-weight: 700; }
.timeline h3 { margin: 2px 0 4px; font-size: var(--fs-md); }
.timeline p { margin: 0; font-size: var(--fs-sm); color: var(--ink-2); }

/* 일반 쪽 */
.doc { max-width: 820px; margin: 0 auto; }
.doc h2 { font-size: var(--fs-xl); margin: 1.8em 0 0.5em; }
.doc h3 { font-size: var(--fs-lg); margin: 1.4em 0 0.4em; }
.doc p, .doc li { color: var(--ink-2); }
.doc table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); background: var(--surface); }
.doc th, .doc td { border: 1px solid var(--line); padding: 9px 11px; text-align: left; vertical-align: top; }
.doc th { background: var(--surface-2); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); margin-top: 14px; }
.service-grid > div { border: 1px solid var(--line); background: var(--surface); padding: 16px; }
.service-grid h3 { margin: 0 0 6px; font-size: var(--fs-md); }
.service-grid p { margin: 0; font-size: var(--fs-sm); }
.todo { background: var(--accent-soft); border: 1px solid var(--accent); padding: 10px 12px; font-size: var(--fs-sm); color: var(--accent-ink); font-weight: 600; }

/* 검색 */
.search-box { display: flex; gap: 8px; margin-bottom: 18px; }
.search-box input { flex: 1; height: 48px; border: 1px solid var(--line-strong); padding: 0 14px; background: var(--surface); font-size: var(--fs-md); }
.search-box button { height: 48px; padding: 0 20px; background: var(--ink); color: var(--ink-inverse); border: 0; font-weight: 700; }

/* ── 하단 ────────────────────────────── */
.site-footer { border-top: 2px solid var(--ink); background: var(--surface); padding: 26px 0 36px; font-size: var(--fs-sm); color: var(--ink-2); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; margin: 0; padding: 0; font-weight: 600; color: var(--ink); }
.footer-note { margin: 8px 0 0; font-size: var(--fs-xs); color: var(--ink-3); }

/* ── 문의 창 ─────────────────────────── */
.modal[hidden] { display: none; }
.modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(24, 24, 27, 0.55); }
.modal-panel { position: relative; background: var(--surface); border: 1px solid var(--ink); width: min(680px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; padding: 24px; }
.modal-panel h2 { margin: 0 0 4px; font-size: var(--fs-xl); }
.modal-panel .lead { margin: 0 0 16px; font-size: var(--fs-sm); color: var(--ink-2); }
.modal-close { position: absolute; top: 12px; right: 12px; }
.type-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.type-grid button { text-align: left; border: 1px solid var(--line-strong); background: var(--surface); padding: 12px 14px; cursor: pointer; display: grid; gap: 2px; }
.type-grid button:hover { border-color: var(--ink); }
.type-grid button b { font-size: var(--fs-md); }
.type-grid button span { font-size: var(--fs-xs); color: var(--ink-3); }
.inq-form { display: grid; gap: 12px; }
.inq-form .chosen { display: flex; justify-content: space-between; align-items: center; background: var(--surface-2); padding: 10px 12px; font-weight: 700; }
.inq-form .chosen button { border: 0; background: none; text-decoration: underline; cursor: pointer; font-size: var(--fs-sm); }
.field { display: grid; gap: 4px; }
.field > label, .field > legend { font-size: var(--fs-sm); font-weight: 700; padding: 0; }
.field .req { color: var(--accent-ink); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea { border: 1px solid var(--line-strong); padding: 9px 11px; background: var(--surface); min-height: 42px; width: 100%; }
.field textarea { min-height: 110px; resize: vertical; }
fieldset.field { border: 0; margin: 0; padding: 0; }
.checks { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: var(--fs-sm); }
.checks label { display: flex; gap: 6px; align-items: center; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.links-box { border: 1px solid var(--line-strong); padding: 12px 14px; font-size: var(--fs-sm); background: var(--bg); }
.links-box p { margin: 0 0 6px; color: var(--ink-2); }
.links-box ul { margin: 0; padding-left: 1.2em; }
.links-box a { text-decoration: underline; font-weight: 600; }
details.more-fields summary { cursor: pointer; font-size: var(--fs-sm); font-weight: 700; padding: 6px 0; }
.submit-row { display: flex; gap: 10px; align-items: center; }
.submit-row button { background: var(--accent); color: var(--ink-inverse); border: 0; height: 46px; padding: 0 24px; font-weight: 700; cursor: pointer; }
.submit-row button[disabled] { opacity: 0.6; cursor: wait; }
.done { text-align: center; padding: 20px 0; }
.done strong { display: block; font-size: var(--fs-xl); margin-bottom: 6px; }

/* ── 반응형 ──────────────────────────── */
@media (max-width: 1080px) {
  .gnb > li > a { padding: 0 10px; }
}
@media (max-width: 960px) {
  .gnb { display: none; }
  .menu-toggle { display: inline-flex; }
  .header-tools .search-link { display: none; }
  .drawer { display: block; position: fixed; inset: var(--header-h) 0 0 0; background: var(--surface); z-index: 60; overflow-y: auto; padding: 8px var(--gap) 40px; border-top: 1px solid var(--line-strong); }
  .drawer[hidden] { display: none; }
  .drawer h3 { font-size: var(--fs-lg); margin: 18px 0 6px; }
  .drawer h3 a { display: block; }
  .drawer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
  .drawer ul a { display: inline-block; border: 1px solid var(--line); padding: 6px 10px; font-size: var(--fs-sm); }
  .s8, .s7, .s6, .s5, .s4, .s3 { grid-column: span 12; }
  .cards-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .library-band { grid-template-columns: repeat(2, 1fr); }
  .subscribe { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .quote-band { grid-template-columns: 1fr; gap: 10px; }
  .chips { margin-left: 0; }
}
@media (max-width: 600px) {
  :root { --header-h: 56px; }
  .logo small { display: none; }
  .btn-inquiry { padding: 0 12px; height: 38px; }
  .cards-3 { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr; }
  .type-grid { grid-template-columns: 1fr; }
  .two { grid-template-columns: 1fr; }
  .prose { font-size: 1.0625rem; text-align: left; }
  .format-story .prose { padding-left: 14px; }
  .lead-card .body { padding: 16px; }
  .modal-panel { padding: 20px 16px; }
  .sub-form .row { flex-direction: column; }
  .home-ops .card:nth-child(n+4) { display: none; }
  .home-ops.show-all .card:nth-child(n+4) { display: flex; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
@media print { .site-header, .filterbar, .site-footer, .share, .related, .modal { display: none !important; } body { background: var(--surface); } }
.figure { margin: 1.6em 0; }
.figure img { width: 100%; border: 1px solid var(--line); background: var(--surface); }

/* ── 셀프진단·계산기·벤치마크 ── */
.benchmark { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; margin-bottom: 22px; }
.benchmark h2 { margin: 0 0 6px; font-size: var(--fs-lg); }
.benchmark p { margin: 0 0 6px; color: var(--ink-2); font-size: var(--fs-sm); }
.sc-summary { margin-bottom: 22px; }
.sc-summary h2 { margin: 0 0 10px; font-size: var(--fs-lg); }
.sc-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sc-bars li { display: grid; grid-template-columns: 9em 1fr 3.5em 4em; gap: 10px; align-items: center; font-size: var(--fs-sm); }
.sc-bars .bar { height: 10px; background: var(--surface-2); border: 1px solid var(--line); position: relative; }
.sc-bars .bar i { position: absolute; inset: 0 auto 0 0; background: var(--accent); }
.sc-bars b { text-align: right; }
.sc-bars small { color: var(--ink-3); }
.sc-area { margin-bottom: 26px; }
.sc-area h2 { font-size: var(--fs-lg); margin: 0 0 10px; display: flex; justify-content: space-between; gap: 8px; border-top: 2px solid var(--ink); padding-top: 10px; }
.sc-score { font-size: var(--fs-sm); color: var(--ink-3); font-weight: 700; }
.sc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sc-list li { display: flex; gap: 10px; justify-content: space-between; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); padding: 10px 14px; line-height: 1.6; }
.sc-list label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.sc-list input { width: 18px; height: 18px; margin-top: 4px; flex: none; }
.sc-src { font-size: var(--fs-xs); color: var(--ink-3); white-space: nowrap; text-decoration: underline; }
.sc-result { margin-top: 10px; border: 1px solid var(--accent); background: var(--accent-soft); padding: 12px 14px; display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.sc-result p { margin: 0; font-size: var(--fs-sm); }
.calc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.calc h2 { margin: 0 0 6px; font-size: var(--fs-lg); }
.calc-form { display: grid; gap: 10px; margin: 12px 0; }
.calc-form label { display: grid; gap: 4px; font-size: var(--fs-sm); font-weight: 600; }
.calc-form input { border: 1px solid var(--line-strong); padding: 8px 10px; min-height: 42px; background: var(--surface); font-size: var(--fs-md); }
.calc-out { display: block; background: var(--highlight); border: 1px solid var(--ink); padding: 12px; font-weight: 800; font-size: var(--fs-lg); line-height: 1.4; }
.calc-out small { display: block; font-weight: 600; font-size: var(--fs-sm); }
.calc-note { font-size: var(--fs-sm); color: var(--ink-2); margin: 0; }
.calc-note a { text-decoration: underline; }
@media (max-width: 960px) { .calc-grid { grid-template-columns: 1fr; } .benchmark { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .sc-bars li { grid-template-columns: 7em 1fr 3em; } .sc-bars small { display: none; } .sc-list li { flex-direction: column; } }

/* ── 시안 개선(2026-11-28): 로고 상징·한 줄 소개·배치 다양화·사진 없는 카드 ── */
.logo { flex-direction: row; align-items: center; gap: 9px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.logo-mark { width: 34px; height: 34px; flex: none; }
.logo-mark .lm-bg { fill: var(--accent); }
.logo-mark .lm-fg { fill: var(--ink-inverse); }
.logo-mark .lm-steam { fill: none; stroke: var(--ink-inverse); stroke-width: 1.8; stroke-linecap: round; }
.intro-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; background: var(--warm); border: 1px solid var(--line); padding: 14px var(--pad); margin-bottom: 18px; }
.intro-band p { margin: 0; color: var(--warm-ink); font-size: var(--fs-md); line-height: 1.6; flex: 1 1 520px; }
.intro-band b { color: var(--ink); }
.intro-side { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.issue-tag { font-size: var(--fs-sm); font-weight: 700; color: var(--ink); border: 1px solid var(--ink); padding: 3px 10px; background: var(--surface); white-space: nowrap; }
.intro-more { font-size: var(--fs-sm); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.feature { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--gap); }
.feature-main .card h3 { font-size: var(--fs-xl); }
.row-list, .text-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.row-item { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: start; }
.row-item:first-child { padding-top: 0; }
.row-item .thumb { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--surface-2); }
.row-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.row-item h3, .text-item h3 { margin: 3px 0 0; font-size: var(--fs-md); line-height: 1.45; font-weight: 750; letter-spacing: -0.01em; }
.text-item { padding: 12px 0; border-bottom: 1px solid var(--line); }
.text-item:first-child { padding-top: 0; }
.home-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.home-cols.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.home-cols .home-col .row-item { grid-template-columns: 88px minmax(0, 1fr); gap: 12px; }
.number-card strong { white-space: nowrap; font-size: clamp(1.75rem, 1.3rem + 1.2vw, 2.4rem); }
.number-strip { grid-auto-columns: minmax(200px, 1fr); }
/* 사진 없는 카드 — 형식 색 + 무늬 + 형식 이름 + 서브메뉴 */
.fmt-block { flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 4px; background-image: repeating-linear-gradient(135deg, transparent 0 9px, var(--pattern) 9px 10px); }
.fmt-block small { font-size: var(--fs-xs); font-weight: 700; color: var(--ink-2); border: 1px solid var(--line-strong); padding: 2px 8px; background: var(--surface); }
.fmt-block b { font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); font-weight: 850; letter-spacing: -0.02em; line-height: 1.2; }
.fmt-block.mini { display: block; width: 100%; height: 100%; padding: 0; }
@media (max-width: 960px) {
  .feature { grid-template-columns: 1fr; }
  .home-cols, .home-cols.two { grid-template-columns: 1fr; gap: 22px; }
}
@media (max-width: 600px) {
  .logo-mark { width: 30px; height: 30px; }
  .row-item { grid-template-columns: 96px minmax(0, 1fr); }
  .intro-band p { font-size: var(--fs-sm); }
}
.lead-card { align-content: start; }
.lead-card .body { align-content: start; }
.feature .row-list { align-content: start; }
.home-cols.one { grid-template-columns: 1fr; }

/* ── 광고(관계사 배너) · 자동 롤링 ── */
.ad { position: relative; margin: 0 0 18px; }
.ad-track { position: relative; }
.ad-slide { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 6px 18px; min-height: 92px; padding: 16px 20px 16px 22px; background: var(--adbg); color: var(--ink-inverse); border: 1px solid var(--line-strong); }
.ad-slide:hover { text-decoration: none; filter: brightness(1.08); }
.ad-slide[hidden] { display: none; }
.ad-slide .adlabel { position: absolute; top: 8px; right: 10px; font-size: var(--fs-xs); font-weight: 700; background: var(--surface); color: var(--ink-2); padding: 1px 7px; }
.ad-slide .adwho { font-size: var(--fs-sm); font-weight: 800; color: var(--adac); white-space: nowrap; }
.ad-slide .adtext { display: grid; gap: 2px; min-width: 0; }
.ad-slide .adtext b { font-size: var(--fs-lg); font-weight: 800; letter-spacing: -0.015em; line-height: 1.35; }
.ad-slide .adline { font-size: var(--fs-sm); opacity: 0.88; }
.ad-slide .adcta { background: var(--adac); color: var(--ink); font-weight: 800; font-size: var(--fs-sm); padding: 9px 16px; white-space: nowrap; }
.ad-dots { position: absolute; left: 22px; bottom: 8px; display: flex; gap: 6px; }
.ad-dots button { width: 18px; height: 6px; border: 0; padding: 0; background: var(--ink-inverse); opacity: 0.35; cursor: pointer; }
.ad-dots button[aria-pressed="true"] { opacity: 1; }
.ad-top .ad-slide { min-height: 76px; padding-top: 12px; padding-bottom: 18px; }
.ad-top .adtext b { font-size: var(--fs-md); }
.ad-home, .ad-article { margin-top: 28px; }
.ad-home .ad-slide, .ad-article .ad-slide { min-height: 120px; }
@media (max-width: 760px) {
  .ad-slide { grid-template-columns: 1fr; padding: 14px 16px 22px; }
  .ad-slide .adcta { justify-self: start; }
  .ad-top .adline { display: none; }
  .ad-dots { left: 16px; }
}
/* 기사 표지(사진 없을 때) · 카카오톡 공유 */
.hero-cover { aspect-ratio: 16 / 7; margin: 22px 0 6px; padding: 26px; border: 1px solid var(--line); }
.hero-cover b { font-size: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.btn-kakao { display: inline-flex; align-items: center; gap: 8px; background: var(--kakao); color: var(--kakao-ink); border: 0; font-weight: 800; padding: 10px 18px; min-height: 44px; cursor: pointer; }
.btn-kakao .kk { fill: var(--kakao-ink); }
.share-msg { font-size: var(--fs-sm); color: var(--ink-2); }
/* 고침: 카카오 버튼 색이 .share button 규칙에 덮이던 것 · 「광고」 표시가 버튼과 겹치던 것 */
.share .btn-kakao { background: var(--kakao); color: var(--kakao-ink); border: 0; }
.ad-slide { grid-template-columns: auto auto minmax(0, 1fr) auto; }
.ad-slide .adlabel { position: static; align-self: center; }
@media (max-width: 760px) { .ad-slide { grid-template-columns: auto minmax(0, 1fr); } .ad-slide .adtext, .ad-slide .adcta { grid-column: 1 / -1; } }
.ad-top .ad-slide { padding-bottom: 12px; }
.ad-slide { padding-bottom: 16px; }
/* 첫 화면 오른쪽 칸 아래 광고 — 좁은 칸이라 세로로 쌓는다 */
.ad-side { margin: 0; }
.ad-side .ad-slide { grid-template-columns: auto minmax(0, 1fr); gap: 8px 10px; min-height: 0; padding: 16px; align-items: start; }
.ad-side .adtext, .ad-side .adcta { grid-column: 1 / -1; }
.ad-side .adtext b { font-size: var(--fs-md); }
.ad-side .adcta { justify-self: start; }
/* 오른쪽 칸이 길어져도 헤드라인 카드가 빈 칸으로 늘어나지 않게 */
section[aria-label="헤드라인"] > .s8 { align-self: start; }
.lead-card { height: auto; }
/* 오른쪽 칸(서브 기사 2 + 광고)을 헤드라인 높이에 맞춘다 */
.side-stack .card a.cover { aspect-ratio: 16 / 7; }
.side-stack .card p.dek { -webkit-line-clamp: 2; }
.side-stack .card .body { padding: 12px 14px 14px; gap: 4px; }
.side-stack .card p.dek { display: none; }
.logo small { font-size: 0.75rem; font-weight: 700; color: var(--ink-2); letter-spacing: 0; }
/* 첫 화면 세 칸(트렌드·F&B·성과 관리): 제목이 한 줄이어도 두 줄 높이를 차지해 모든 줄 높이를 같게 */
.home-cols .row-item { min-height: 0; }
.home-cols .row-item h3 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: calc(2 * 1.45em); }
.home-cols .row-item .meta { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* ── 텍스트 내비게이션 바(현재 위치) — 모든 쪽 같은 자리·같은 모양 ── */
.crumbbar { border-bottom: 1px solid var(--line); background: var(--surface); }
.crumbbar ol { list-style: none; margin: 0; padding: 9px 0; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 0; font-size: var(--fs-sm); color: var(--ink-3); min-width: 0; }
.crumbbar li { display: flex; align-items: center; min-width: 0; }
.crumbbar li + li::before { content: '›'; margin: 0 8px; color: var(--ink-3); }
.crumbbar a { color: var(--ink-2); font-weight: 600; }
.crumbbar li[aria-current="page"] { color: var(--ink); font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46ch; }
.page-head .crumb { display: none; }
@media (max-width: 600px) { .crumbbar li[aria-current="page"] { max-width: 22ch; } }
/* 로고 밑 문구: 위와 4px 띄우고, 「푸드페스타넷」과 가로폭이 같도록 크기 맞춤(실측 101.3px) */
.logo-text { gap: 4px; }
.logo-text small { font-size: 0.82rem; line-height: 1.1; letter-spacing: 0; }

/* ── 기사 쪽: 왼쪽 본문 + 오른쪽 사이드바(스크롤 따라 내려옴) ── */
.article-layout { display: grid; grid-template-columns: minmax(0, 760px) 340px; justify-content: space-between; gap: 48px; align-items: start; }
.article-layout .article { max-width: none; margin: 0; }
.article-side { position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: 22px; padding-top: 10px; }
.side-box h2 { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: 0 0 10px; padding-top: 10px; border-top: 2px solid var(--ink); font-size: var(--fs-md); font-weight: 800; }
.side-box h2 a { font-size: var(--fs-xs); font-weight: 600; color: var(--ink-3); }
.side-list { list-style: none; margin: 0; padding: 0; counter-reset: side; }
.side-list li { counter-increment: side; display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 2px 6px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.side-list li::before { content: counter(side); grid-row: span 2; font-weight: 800; color: var(--accent); }
.side-list a { font-weight: 700; font-size: var(--fs-sm); line-height: 1.45; }
.side-list .meta { grid-column: 2; }
.article-side .row-item { grid-template-columns: 80px minmax(0, 1fr); gap: 10px; padding: 9px 0; }
.article-side .row-item h3 { font-size: var(--fs-sm); }
.side-check { display: grid; gap: 4px; border: 1px solid var(--accent); background: var(--accent-soft); padding: 14px 16px; }
.side-check:hover { text-decoration: none; border-color: var(--accent-ink); }
.side-check b { color: var(--accent-ink); font-size: var(--fs-sm); }
.side-check span { font-size: var(--fs-xs); color: var(--ink-2); }
.article-side .ad { margin: 0; }
.article-side .ad-slide { grid-template-columns: auto minmax(0, 1fr); gap: 8px 10px; min-height: 0; padding: 16px; align-items: start; }
.article-side .ad-slide .adtext, .article-side .ad-slide .adcta { grid-column: 1 / -1; }
.article-side .ad-slide .adtext b { font-size: var(--fs-md); }
.article-side .ad-slide .adcta { justify-self: start; }
@media (max-width: 1080px) { .article-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; } }
@media (max-width: 900px) { .article-layout { grid-template-columns: minmax(0, 1fr); } .article-side { position: static; } }

/* ── 참고 출처: 한 줄로 이어 쓰고, 넘치면 다음 줄로 ── */
.refs ol { list-style: none; margin: 0; padding: 0; line-height: 1.75; }
.refs li { display: inline; }
.refs li + li::before { content: ' · '; color: var(--ink-3); padding: 0 2px; }
/* 사이드바 전체가 아니라 아래 묶음(셀프진단·광고)만 스크롤을 따라온다 — 긴 목록이 화면 밖에 갇히지 않게 */
.article-side { position: static; }
.side-sticky { position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: 22px; }
@media (max-width: 900px) { .side-sticky { position: static; } }
/* 로고 「넷」 진회색 */
.logo b .net { color: var(--logo-net); font-style: normal; }
/* 「이번 주 한 문장」 — 첫 화면 맨 위, 검은 상자 대신 연회색 바탕 + 왼쪽 빨간 띠 */
.quote-band { background: var(--surface-2); color: var(--ink); border: 0; border-left: 6px solid var(--accent); }
.quote-band .label { color: var(--accent-ink); border-color: var(--accent); background: var(--surface); }
.quote-band blockquote { color: var(--ink); }
.quote-band a { color: var(--ink-2); }
.quote-top { margin: 0 0 18px; padding: 16px var(--pad); }
.quote-top blockquote { font-size: var(--fs-lg); }
