/* 잘로 — 기획서(2026-10) 색: 짙은 청록 바탕, 청록 강조, 민트 면, 살구 보조 */
:root {
  --ink: #17303a;
  --ink-2: #3d5560;
  --muted: #6b7f87;
  --line: #dfe7e8;
  --bg: #ffffff;
  --soft: #f4f7f7;
  --mint: #e5f4f1;
  --teal: #00897b;
  --teal-dark: #00695f;
  --teal-light: #7fd8c9;
  --peach: #fdf3ea;
  --orange: #e8845a;
  --radius: 18px;
  --wrap: 1080px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: break-word;
}
a { color: var(--teal-dark); }
img { max-width: 100%; height: auto; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 10; }

/* 머리 */
.top { background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 5; }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.logo { color: #fff; text-decoration: none; font-weight: 700; font-size: 18px; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.logo-mark { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--teal-light); position: relative; flex: none; }
.logo-mark::after { content: ''; position: absolute; inset: 4px; border-radius: 50%; background: var(--teal); }
.nav { display: flex; gap: 4px; }
.nav a { color: #cfe3e2; text-decoration: none; font-size: 15px; padding: 8px 10px; border-radius: 10px; white-space: nowrap; }
.nav a:hover, .nav a[aria-current] { color: #fff; background: rgba(255, 255, 255, 0.1); }
@media (max-width: 420px) {
  .logo { font-size: 16px; }
  .nav a { font-size: 14px; padding: 8px 6px; }
}
@media (max-width: 340px) {
  .wrap { padding: 0 14px; }
  .logo-mark { display: none; }
  .nav { gap: 0; }
  .nav a { padding: 8px 5px; }
}

.crumbs { font-size: 13px; color: var(--muted); padding-top: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a::after, .crumbs span::before { content: ''; }
.crumbs > * + *::before { content: '›'; margin-right: 6px; color: #b5c3c7; }

main { padding-bottom: 56px; }
h1, h2, h3 { line-height: 1.35; letter-spacing: -0.01em; }
h1 { font-size: clamp(26px, 6vw, 38px); margin: 0 0 12px; }
h2 { font-size: clamp(20px, 4.5vw, 24px); margin: 40px 0 14px; }
h3 { font-size: 17px; margin: 0 0 6px; }
.lead { color: var(--ink-2); font-size: 16px; margin: 0 0 8px; }
.eyebrow { color: var(--teal); font-size: 13px; font-weight: 600; letter-spacing: 0.04em; margin: 0 0 8px; }
.page-head { padding: 28px 0 8px; }

/* 첫 화면 */
.hero { background: var(--mint); border-radius: 24px; padding: 36px 28px; margin-top: 24px; position: relative; overflow: hidden; }
.hero::after { content: ''; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; border: 1.5px solid rgba(0, 137, 123, 0.25); box-shadow: 0 0 0 26px rgba(0, 137, 123, 0.05); pointer-events: none; }
.hero h1 { max-width: 15em; position: relative; z-index: 1; }
.hero p { position: relative; z-index: 1; }
.search { display: flex; gap: 8px; margin-top: 20px; position: relative; z-index: 1; }
.search input { flex: 1; min-width: 0; font: inherit; font-size: 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); }
.search button { font: inherit; font-weight: 600; padding: 0 18px; border: 0; border-radius: 14px; background: var(--ink); color: #fff; cursor: pointer; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; position: relative; z-index: 1; }
.chips a, .chips span { font-size: 14px; background: #fff; border-radius: 999px; padding: 6px 12px; text-decoration: none; color: var(--ink-2); border: 1px solid var(--line); }

/* 카드 */
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.grid-2 { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.card { display: block; background: var(--soft); border-radius: var(--radius); padding: 20px; text-decoration: none; color: var(--ink); border: 1px solid transparent; transition: border-color 0.15s; }
a.card:hover { border-color: var(--teal-light); }
.card p { margin: 0; color: var(--muted); font-size: 14px; }
.card .tag { display: inline-block; font-size: 12px; font-weight: 600; color: var(--teal-dark); background: var(--mint); border-radius: 8px; padding: 2px 8px; margin-bottom: 10px; }
.card ul { margin: 8px 0 0; padding-left: 18px; color: var(--ink-2); font-size: 14px; }
.card.tool { background: #fff; border: 1px solid var(--line); }
.card.tool:hover { border-color: var(--teal); }
.card .go { display: inline-block; margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--teal-dark); }

.note { background: var(--mint); border-left: 4px solid var(--teal); border-radius: 12px; padding: 14px 16px; font-size: 14px; color: var(--ink-2); margin: 20px 0; }
.note.warm { background: var(--peach); border-left-color: var(--orange); }
.note p { margin: 0; }
.note p + p { margin-top: 6px; }

/* 도구 폼 */
.tool-box { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 22px; margin-top: 18px; }
.field { margin-bottom: 18px; border: 0; padding: 0; min-width: 0; }
.field > label, .field > legend { display: block; font-weight: 600; font-size: 15px; margin-bottom: 8px; padding: 0; }
.field .hint { font-size: 13px; color: var(--muted); margin: -4px 0 8px; }
.row { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 130px), 1fr)); }
input[type='number'], select { width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); }
.unit { position: relative; }
.unit span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 14px; pointer-events: none; }
.unit input { padding-right: 44px; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: inline-block; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 15px; background: #fff; cursor: pointer; }
.seg input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.seg input:focus-visible + span { outline: 2px solid var(--teal); outline-offset: 2px; }
.days span { min-width: 44px; text-align: center; padding: 9px 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; margin-bottom: 8px; }
.check input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--teal); flex: none; }
.btn { display: inline-block; font: inherit; font-weight: 700; font-size: 16px; border: 0; border-radius: 14px; padding: 14px 22px; background: var(--teal); color: #fff; cursor: pointer; text-decoration: none; text-align: center; }
.btn:hover { background: var(--teal-dark); }
.btn.block { display: block; width: 100%; }
.btn.ghost { background: var(--mint); color: var(--teal-dark); }
.errors { color: #b3412a; font-size: 14px; margin: 0 0 12px; padding-left: 18px; }

/* 결과 */
.result { margin-top: 22px; }
.result[hidden] { display: none; }
.big { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); margin: 14px 0; }
.stat { background: var(--mint); border-radius: 16px; padding: 16px 18px; }
.stat b { display: block; font-size: 26px; color: var(--teal-dark); line-height: 1.2; }
.stat span { font-size: 14px; color: var(--ink-2); }
table.simple { width: 100%; border-collapse: collapse; font-size: 15px; margin: 8px 0; }
table.simple th, table.simple td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.simple th { color: var(--muted); font-weight: 600; font-size: 13px; }
.week { display: grid; gap: 10px; }
.day { border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; display: grid; grid-template-columns: 48px 1fr; gap: 12px; background: #fff; }
.day .d { font-weight: 700; font-size: 18px; color: var(--ink); }
.day .kind { font-size: 13px; font-weight: 700; border-radius: 8px; padding: 2px 8px; display: inline-block; margin-bottom: 4px; }
.day.strength .kind { background: var(--mint); color: var(--teal-dark); }
.day.cardio .kind { background: var(--peach); color: #b4562e; }
.day.recovery .kind, .day.rest .kind { background: var(--soft); color: var(--muted); }
.day.rest { background: var(--soft); border-color: transparent; }
.day ul { margin: 6px 0 0; padding-left: 18px; font-size: 14px; color: var(--ink-2); }
.day p { margin: 0; font-size: 14px; color: var(--ink-2); }

.sources { font-size: 13px; color: var(--muted); margin-top: 28px; border-top: 1px solid var(--line); padding-top: 14px; }
.sources ol { padding-left: 18px; margin: 6px 0 0; }
.sources a { color: var(--muted); }

.empty { background: var(--soft); border-radius: var(--radius); padding: 22px; color: var(--ink-2); }
.empty p { margin: 0; }
.lane { border-radius: var(--radius); padding: 20px; }
.lane.online { background: var(--mint); }
.lane.local { background: var(--peach); }

.prose { max-width: 720px; }
.prose p, .prose li { font-size: 16px; }
.prose h2 { font-size: 21px; }

/* 꼬리 */
.foot { background: var(--soft); padding: 32px 0 40px; font-size: 14px; color: var(--muted); }
.foot-brand { font-weight: 700; color: var(--ink); margin: 0 0 6px; }
.foot-brand span { font-weight: 400; color: var(--muted); font-size: 13px; }
.foot-note { margin: 0 0 14px; max-width: 640px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.foot-links a { color: var(--ink-2); text-decoration: none; }

@media print {
  .top, .foot, .tool-box form, .crumbs, .no-print { display: none; }
  .day, .meal { break-inside: avoid; }
}
.result { scroll-margin-top: 76px; }
.day li .meta { display: block; font-size: 13px; color: var(--muted); }
.meta-line { font-size: 13px; color: var(--muted); margin: 8px 0 0; }
.photo { margin: 18px 0 8px; }
.photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 18px; background: var(--soft); display: block; }
.photo figcaption { font-size: 12px; color: var(--muted); margin-top: 6px; }
.photo figcaption a { color: var(--muted); }
.card.art { padding: 0 0 18px; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.card.art img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; margin-bottom: 14px; background: var(--soft); }
.card.art h3, .card.art p { padding: 0 18px; }
.faq details { border-bottom: 1px solid var(--line); padding: 12px 0; }
.faq summary { font-weight: 600; cursor: pointer; }
.faq details p { margin: 8px 0 0; color: var(--ink-2); }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 8px; text-align: left; vertical-align: top; }
.prose th { background: var(--soft); white-space: nowrap; }

/* 계정·관리자 */
.narrow { max-width: 560px; }
input[type='email'], input[type='text'], input[type='tel'], input:not([type]), textarea { width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); }
textarea.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; line-height: 1.6; }
.hint { font-size: 13px; color: var(--muted); font-weight: 400; }
.btn:disabled { opacity: 0.55; cursor: default; }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.tabs button { font: inherit; font-size: 15px; background: none; border: 0; padding: 10px 14px; color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; white-space: nowrap; }
.tabs button[aria-selected='true'] { color: var(--ink); font-weight: 700; border-bottom-color: var(--teal); }
.admin-list { display: grid; gap: 8px; }
.admin-row { display: grid; grid-template-columns: 32px 1fr; gap: 10px; align-items: start; text-align: left; font: inherit; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; cursor: pointer; color: var(--ink); }
.admin-row:hover { border-color: var(--teal); }
.admin-row .n { font-weight: 700; color: var(--teal-dark); }
.admin-row small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.admin-row em { color: #b4562e; font-style: normal; }
.admin-head { margin: 8px 0 12px; }
.admin-head .tag, .tag { display: inline-block; font-size: 12px; font-weight: 600; color: var(--teal-dark); background: var(--mint); border-radius: 8px; padding: 2px 8px; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.admin-actions textarea { margin: 8px 0; }
.admin-photo { width: 100%; max-width: 360px; border-radius: 12px; display: block; }
.photo-grid { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); margin-top: 12px; }
.photo-grid button { font: inherit; border: 2px solid transparent; border-radius: 12px; padding: 0; background: none; cursor: pointer; text-align: left; }
.photo-grid button:hover { border-color: var(--teal); }
.photo-grid img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; display: block; }
.photo-grid small { display: block; font-size: 12px; color: var(--muted); padding: 2px 4px; }
#toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 15px; z-index: 20; max-width: calc(100% - 32px); }
#toast.bad { background: #b3412a; }
#toast[hidden] { display: none; }
.note p.notes { white-space: pre-line; }
.need { display: inline-block; font-size: 12px; font-weight: 600; color: #b4562e; background: var(--peach); border-radius: 8px; padding: 1px 8px; }
.center-cta { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 6px; }
.center-cta .btn { padding: 12px 16px; font-size: 15px; }
.prose table.simple { display: table; }
.prose table.simple th { white-space: nowrap; width: 84px; background: none; }
.tick-wrap { overflow-x: auto; margin: 12px 0; }
table.ticks { border-collapse: collapse; font-size: 14px; min-width: 100%; }
table.ticks th, table.ticks td { padding: 6px 3px; text-align: center; border-bottom: 1px solid var(--line); }
table.ticks thead th { font-weight: 600; font-size: 12px; color: var(--muted); line-height: 1.3; }
table.ticks thead th.today { color: var(--teal-dark); }
table.ticks tbody th { text-align: left; font-weight: 600; font-size: 14px; min-width: 120px; padding-right: 8px; }
.tick { width: 34px; height: 34px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; font-size: 16px; font-weight: 700; color: #fff; cursor: pointer; }
.tick.on { background: var(--teal); border-color: var(--teal); }
.tick:disabled { background: var(--soft); border-style: dashed; cursor: default; }

/* 첫 화면 (기획서 표지: 짙은 청록 + 동심원) */
.hero-dark { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.hero-dark .rings { position: absolute; right: -120px; top: -90px; width: 520px; height: 520px; pointer-events: none; opacity: 0.9; }
.hero-in { position: relative; z-index: 1; padding-top: 48px; padding-bottom: 40px; }
.hero-dark .eyebrow { color: var(--teal-light); }
.hero-dark h1 { font-size: clamp(30px, 7.2vw, 46px); max-width: 12em; margin-bottom: 14px; }
.hero-dark .lead { color: #cfe3e2; max-width: 30em; }
.hero-dark .search { max-width: 620px; margin-top: 24px; }
.hero-dark .search input { border: 0; font-size: 15px; }
.hero-dark .search button { background: var(--teal); }
.hero-dark .search button:hover { background: var(--teal-dark); }
.quick { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; margin-top: 14px; font-size: 14px; }
.quick span { color: #9fbcbc; margin-right: 2px; }
.quick a { color: #e6f4f1; text-decoration: none; border: 1px solid rgba(127, 216, 201, 0.45); border-radius: 999px; padding: 4px 11px; }
.quick a:hover { background: rgba(127, 216, 201, 0.15); }
@media (max-width: 560px) {
  .hero-dark .rings { right: -220px; top: -150px; opacity: 0.55; }
  .hero-in { padding-top: 34px; padding-bottom: 30px; }
}

.cat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: -22px; position: relative; z-index: 2; }
.cat-row a { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; text-decoration: none; color: var(--ink); box-shadow: 0 6px 18px rgba(23, 48, 58, 0.08); }
.cat-row a:hover { border-color: var(--teal); }
.cat-row b { display: block; font-size: 16px; }
.cat-row span { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
@media (max-width: 760px) { .cat-row { grid-template-columns: 1fr 1fr; } }

h2 small { font-size: 14px; font-weight: 500; color: var(--muted); margin-left: 6px; }
.tool-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 1000px) and (min-width: 761px) { .tool-row { grid-template-columns: 1fr 1fr; } }
.tool-card { display: flex; flex-direction: column; gap: 4px; padding: 20px; border-radius: 18px; background: var(--mint); text-decoration: none; color: var(--ink); border: 1px solid transparent; }
.tool-card:hover { border-color: var(--teal); }
.tool-card b { font-size: 17px; margin-top: 8px; }
.tool-card span { font-size: 14px; color: var(--ink-2); }
.ico { width: 30px; height: 30px; color: var(--teal-dark); }
@media (max-width: 760px) {
  .tool-row { grid-template-columns: 1fr; gap: 8px; }
  .tool-card { display: grid; grid-template-columns: 34px 1fr; column-gap: 12px; padding: 14px 16px; align-items: center; }
  .tool-card .ico { grid-row: span 2; }
  .tool-card b { margin-top: 0; }
}

.topic-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.topic { background: var(--soft); border-radius: 18px; padding: 18px 20px; }
.topic-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; text-decoration: none; color: var(--ink); margin-bottom: 6px; }
.topic-head b { font-size: 17px; }
.topic-head span { font-size: 13px; color: var(--teal-dark); font-weight: 600; white-space: nowrap; }
.topic p { margin: 0; font-size: 14px; color: var(--muted); }
.topic ul { margin: 8px 0 0; padding-left: 18px; font-size: 14px; color: var(--ink-2); }
.minis { display: grid; gap: 8px; margin-top: 8px; }
.mini { display: grid; grid-template-columns: 72px 1fr; gap: 10px; align-items: center; text-decoration: none; color: var(--ink); font-size: 14px; font-weight: 600; line-height: 1.4; }
.mini img, .mini-ph { width: 72px; height: 46px; object-fit: cover; border-radius: 8px; background: var(--line); display: block; }
@media (max-width: 640px) { .topic-grid { grid-template-columns: 1fr; } }

.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 40px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 0; }
.trust div { display: grid; grid-template-columns: 30px 1fr; column-gap: 10px; }
.trust .ico { grid-row: span 2; width: 26px; height: 26px; }
.trust b { font-size: 15px; }
.trust span { font-size: 13px; color: var(--muted); }
@media (max-width: 760px) { .trust { grid-template-columns: 1fr; gap: 14px; } }

.near { margin-top: 8px; }
.near .lead { font-size: 15px; }
.near-panel { margin-top: 14px; }
.near-panel[hidden] { display: none; }

.goals7 { display: grid; gap: 14px; margin: 14px 0; }
.goal-row { border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.goal-row b { display: block; font-size: 15px; margin-bottom: 6px; }
.days7 { display: grid; grid-template-columns: repeat(7, minmax(0, 40px)); gap: 4px; }
.days7 span { font-size: 11px; line-height: 1.25; color: var(--muted); text-align: center; }
.days7 span.today { color: var(--teal-dark); font-weight: 700; }
.days7 .tick { width: 100%; height: auto; aspect-ratio: 1; max-width: 40px; margin-top: 4px; }

/* T5 식단 계획 */
.day-tabs { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin: 14px 0 10px; }
.day-tabs button { font: inherit; font-weight: 700; font-size: 15px; padding: 9px 0; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); cursor: pointer; }
.day-tabs button[aria-selected='true'] { background: var(--ink); border-color: var(--ink); color: #fff; }
.meals .day[hidden] { display: none; }
@media print { .meals .day[hidden] { display: grid; } .meals .day .d { display: block; } .meals .day { grid-template-columns: 36px 1fr; } }
.meals .day { grid-template-columns: 1fr; padding: 0; border: 0; background: none; }
.meals .day .d { display: none; }
.meal-list { display: grid; gap: 8px; grid-template-columns: 1fr; }
@media (min-width: 480px) { .meal-list { grid-template-columns: 1fr 1fr; } }
.meal { background: var(--soft); border-radius: 12px; padding: 10px 12px; font-size: 14px; }
.meal > b { font-size: 13px; color: var(--muted); }
.meal.out { background: var(--peach); }
.meal.snack { background: var(--mint); }
.meal ul { list-style: none; padding: 0; margin: 4px 0 0; }
.meal li { margin: 2px 0; color: var(--ink); display: grid; grid-template-columns: 44px 1fr; align-items: baseline; }
.meal li .meta { grid-column: 2; font-size: 12px; color: var(--muted); }
.meal .tip { font-size: 13px; margin-top: 6px; color: #8a4a2c; }
.role { font-size: 11px; font-weight: 700; color: var(--muted); }
.role.protein { color: var(--teal-dark); }
.role.veg { color: #3b7d3a; }
.shop { display: grid; gap: 12px 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); }
.shop h3 { font-size: 15px; margin: 0 0 6px; }
.shop .check { margin-bottom: 4px; }
.shop .meta { margin-left: auto; font-size: 13px; color: var(--muted); }

/* 우리 동네 조건 찾기 */
.match-box { margin-bottom: 14px; }
.match-box .field { margin-bottom: 14px; }
.match-item { display: flex; flex-direction: column; gap: 8px; }
.match-item[hidden] { display: none; }
.match-checks { list-style: none; margin: 0; padding: 0 4px; font-size: 14px; display: grid; gap: 4px; }
.match-checks li span { display: inline-block; font-size: 12px; font-weight: 700; border-radius: 6px; padding: 1px 6px; margin-right: 8px; }
.match-checks .m-ok span { background: var(--mint); color: var(--teal-dark); }
.match-checks .m-no span { background: var(--soft); color: var(--muted); }
.match-checks .m-need span { background: var(--peach); color: #b4562e; }

/* 상담 신청 */
.req { font-size: 12px; font-weight: 600; color: #b3412a; margin-left: 4px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { background: var(--soft); border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; }
.consent .check { font-size: 14px; }

/* 관리자 소식 */
.news-list { display: grid; gap: 8px; }
.news-row { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: grid; gap: 4px; }
.news-row a b { color: var(--ink); font-size: 15px; }
.news-row small { color: var(--muted); font-size: 13px; }
.news-act { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.news-act button { font: inherit; font-size: 13px; padding: 5px 10px; border-radius: 8px; border: 1px solid var(--line); background: #fff; cursor: pointer; }

/* 잘로 로고 글자 */
.logo-word { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.logo-dot { color: var(--teal-light); }

/* 제품 찾기·상세·비교 */
.p-search input { width: 100%; font: inherit; font-size: 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); }
.p-filters { display: grid; gap: 10px; margin: 12px 0 6px; }
.p-filter-row { display: flex; flex-wrap: wrap; gap: 8px; }
.p-filter-row select { width: auto; flex: 1 1 140px; padding: 10px 12px; font-size: 15px; }
.p-filter-row.checks { gap: 2px 16px; }
.p-filter-row .check { margin: 0; font-size: 14px; }
.p-list { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.p-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; }
.p-card[hidden] { display: none; }
.p-main { display: flex; flex-direction: column; gap: 3px; padding: 16px 18px 10px; text-decoration: none; color: var(--ink); flex: 1; }
.p-main:hover .p-name { color: var(--teal-dark); }
.p-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }
.tag { display: inline-block; font-size: 12px; font-weight: 600; color: var(--teal-dark); background: var(--mint); border-radius: 8px; padding: 2px 8px; }
.tag.soft { background: var(--soft); color: var(--ink-2); }
.p-brand { font-size: 13px; color: var(--muted); }
.p-name { font-size: 17px; line-height: 1.4; }
.p-key { font-size: 14px; color: var(--ink-2); }
.p-meta { font-size: 12px; color: var(--muted); margin-top: 4px; }
.p-acts { display: flex; gap: 8px; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding: 8px 12px 8px 18px; }
.p-cmp { display: inline-flex; gap: 6px; align-items: center; font-size: 14px; font-weight: 600; cursor: pointer; }
.p-cmp input { width: 18px; height: 18px; accent-color: var(--teal); margin: 0; }
.p-save { font: inherit; font-size: 14px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); border-radius: 10px; padding: 6px 12px; cursor: pointer; }
.p-save[aria-pressed='true'] { background: var(--mint); border-color: var(--teal-light); color: var(--teal-dark); font-weight: 600; }
.p-acts.big { border: 0; padding: 0; justify-content: flex-start; flex-wrap: wrap; margin: 4px 0 8px; }
.p-acts.big .btn { padding: 11px 16px; font-size: 15px; }
.p-acts.big .p-save { border: 0; background: var(--mint); color: var(--teal-dark); font-weight: 700; border-radius: 14px; }
.p-acts.big .p-save[aria-pressed='true'] { background: var(--ink); color: #fff; }
.p-brand-lg { color: var(--muted); font-weight: 600; margin: 0 0 2px; }
.src-ref { font-size: 12px; text-decoration: none; vertical-align: super; }
.tbl-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.prose table.simple.ing th { width: auto; white-space: normal; }
.prose table.simple.ing thead th { white-space: nowrap; }
ol.sources { padding-left: 0; list-style: none; font-size: 14px; }
ol.sources li { margin-bottom: 6px; }
.offers { padding-left: 18px; }
.cmp-tray { position: fixed; left: 0; right: 0; bottom: 0; background: var(--ink); color: #fff; z-index: 6; padding: 10px 0; box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.12); }
.cmp-tray[hidden] { display: none; }
.cmp-in { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 15px; }
.cmp-btns { display: flex; gap: 8px; }
.btn.sm { padding: 9px 14px; font-size: 14px; border-radius: 12px; }
.btn.off { opacity: 0.55; }
body:has(.cmp-tray:not([hidden])) .foot { padding-bottom: 80px; }
.cmp-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 8px 0; border: 1px solid var(--line); border-radius: 14px; }
table.cmp { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 14px; }
table.cmp th, table.cmp td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.cmp thead th { background: var(--soft); font-size: 14px; }
.cmp-lines { margin: 0; padding: 0; list-style: none; font-size: 14px; }
.cmp-lines li + li { margin-top: 4px; }
table.cmp thead a { color: var(--ink); text-decoration: none; }
table.cmp tbody th { color: var(--ink-2); font-weight: 600; width: 120px; position: sticky; left: 0; background: #fff; }
table.cmp tr.grp th { background: var(--mint); color: var(--teal-dark); font-size: 13px; position: static; }
table.cmp details summary { cursor: pointer; color: var(--teal-dark); }
table.cmp details ul { padding-left: 16px; margin: 6px 0 0; }
.linkish { font: inherit; font-size: 13px; background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; padding: 0; margin-top: 4px; }
.cmp-share { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
table.spec-edit th { width: 40%; white-space: normal; }
table.spec-edit td { padding: 6px 4px; }
table.spec-edit input { padding: 8px 10px; }
.cat-row.p-cats { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 480px) { .cat-row.p-cats a { padding: 12px 10px; } .cat-row.p-cats b { font-size: 14px; } }
.cat-row.p-cats { margin: 16px 0 14px; }

/* 제품 사진(제조사·공식몰 핫링크) */
.p-main { flex-direction: row; align-items: flex-start; gap: 14px; }
.p-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.p-thumb { flex: none; width: 84px; height: 84px; border-radius: 12px; background: var(--soft); overflow: hidden; display: flex; align-items: center; justify-content: center; position: relative; }
.p-thumb img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.p-thumb:empty::after { content: attr(data-type); font-size: 12px; font-weight: 600; color: var(--muted); text-align: center; padding: 4px; }
.p-photo { margin: 6px 0 14px; }
.p-photo img { display: block; width: 100%; max-width: 360px; max-height: 360px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.p-photo figcaption { font-size: 12px; color: var(--muted); margin-top: 6px; }
.cmp-img { display: block; width: 64px; height: 64px; object-fit: contain; margin: 0 0 6px; background: #fff; border-radius: 8px; }
@media (max-width: 380px) { .p-thumb { width: 68px; height: 68px; } }

/* 첫 화면 — 잡지형: 얇은 머리, 새 정보가 첫 화면에 */
.masthead { background: var(--ink); color: #fff; padding: 22px 0 18px; }
.mh-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.masthead h1 { font-size: clamp(20px, 4.6vw, 30px); margin: 0; letter-spacing: -0.02em; }
.mh-date { font-size: 13px; color: var(--teal-light); white-space: nowrap; }
.masthead .search { max-width: 620px; margin-top: 14px; }
.masthead .search input { border: 0; font-size: 15px; }
.masthead .search button { background: var(--teal); }
.masthead .quick { margin-top: 10px; }
.shortcuts { border-bottom: 1px solid var(--line); background: #fff; }
.shortcuts .wrap { display: flex; gap: 6px; overflow-x: auto; padding-top: 10px; padding-bottom: 10px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.shortcuts .wrap::-webkit-scrollbar { display: none; }
.shortcuts a { flex: none; font-size: 14px; font-weight: 600; color: var(--ink-2); text-decoration: none; background: var(--soft); border-radius: 999px; padding: 6px 13px; }
.shortcuts a:hover { background: var(--mint); color: var(--teal-dark); }
h2.sec { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-size: 20px; }
h2.sec a { margin-left: auto; font-size: 14px; font-weight: 600; text-decoration: none; }
.front { padding-top: 22px; }
.front-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 22px; align-items: start; }
@media (max-width: 760px) { .front-grid { grid-template-columns: 1fr; gap: 6px; } }
.lead-story { display: block; text-decoration: none; color: var(--ink); }
.ls-img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); background: var(--soft); }
.ls-txt { display: flex; flex-direction: column; gap: 4px; padding-top: 12px; }
.ls-txt b { font-size: clamp(20px, 5vw, 26px); line-height: 1.35; letter-spacing: -0.02em; }
.lead-story:hover b { color: var(--teal-dark); }
.ls-sum { color: var(--ink-2); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kicker { font-size: 13px; font-weight: 700; color: var(--teal-dark); display: flex; align-items: center; gap: 6px; }
.new-dot { font-style: normal; font-size: 11px; font-weight: 700; color: #fff; background: #e4572e; border-radius: 6px; padding: 1px 6px; }
.new-dot[hidden] { display: none; }
.when { font-size: 12px; color: var(--muted); }
.row-list { list-style: none; margin: 0; padding: 0; }
.row-list li + li { border-top: 1px solid var(--line); }
.row-story { display: grid; grid-template-columns: 1fr 96px; gap: 14px; align-items: center; padding: 12px 0; text-decoration: none; color: var(--ink); }
.row-story > span { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.row-story b { font-size: 16px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.row-story:hover b { color: var(--teal-dark); }
.rs-img { grid-column: 2; grid-row: 1; width: 96px; height: 68px; object-fit: cover; border-radius: 10px; background: var(--soft); }
.rs-img.ph { display: block; }
.picks > li:nth-child(n + 4) { display: none; }
.prod-strip { list-style: none; margin: 0; padding: 2px 0 6px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 1fr); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
@media (min-width: 1000px) { .prod-strip { grid-auto-columns: calc((100% - 36px) / 4); } }
.prod-strip li { scroll-snap-align: start; }
.prod-tile { display: flex; flex-direction: column; gap: 3px; text-decoration: none; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; height: 100%; }
.prod-tile:hover { border-color: var(--teal); }
.pt-img { display: block; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: #fff; margin-bottom: 6px; }
.pt-img img { width: 100%; height: 100%; object-fit: contain; }
.prod-tile b { font-size: 15px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.news-list li { border-bottom: 1px solid var(--line); }
.news-list a { display: flex; flex-direction: column; gap: 2px; padding: 11px 0; text-decoration: none; color: var(--ink); }
.news-list b { font-size: 15px; font-weight: 600; line-height: 1.45; }
.news-list a:hover b { color: var(--teal-dark); }
.front { padding-top: 0; }
.front h2.sec { margin-top: 18px; }
h2.sec { margin-top: 32px; }
.masthead .quick { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.masthead .quick::-webkit-scrollbar { display: none; }
.masthead .quick a, .masthead .quick span { flex: none; }
@media (max-width: 760px) { .ls-img { aspect-ratio: 16 / 9; } }
@media (min-width: 1000px) { .split { display: grid; grid-template-columns: 1fr 1fr; gap: 0 36px; align-items: start; } }
.card.rel-prod { display: flex; gap: 14px; align-items: flex-start; }
.rp-txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.rp-txt .tag { align-self: flex-start; }
.rp-txt b { font-size: 16px; line-height: 1.4; }
.spark { display: inline-flex; align-items: flex-end; gap: 2px; height: 18px; }
.spark i { display: block; width: 5px; background: var(--teal); border-radius: 1px; }
