/* 제휴팜 칼럼 — 백서형 콘텐츠 스타일 (보험백서101 구조를 제휴팜 그린으로 이식) */

:root {
  --ink: #16241c;
  --ink-soft: #45564c;
  --ink-faint: #869187;
  --paper: #f6f8f6;
  --card: #ffffff;
  --line: #e2e8e3;
  --accent: #15803d;
  --accent-soft: #dcfce7;
  --accent-deep: #14532d;
  --good: #157a4a;
  --warn: #b45309;
  --warn-soft: #fef6e7;
  --radius: 14px;
  --maxw: 960px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
[hidden] { display: none !important; }

/* 헤더 */
.site-header { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.site-header .inner { max-width: var(--maxw); margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { font-size: 1.15rem; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand .dot { color: var(--accent); }
.site-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.site-nav a { color: var(--ink-soft); font-size: 0.92rem; font-weight: 600; padding: 6px 10px; border-radius: 8px; }
.site-nav a:hover { background: var(--accent-soft); color: var(--accent-deep); text-decoration: none; }
.site-nav a.active { background: var(--accent-soft); color: var(--accent-deep); }
.nav-cta { background: var(--accent); color: #fff !important; border-radius: 99px; padding: 8px 16px !important; font-weight: 700; }
.nav-cta:hover { background: var(--accent-deep) !important; color: #fff !important; }

/* 밝은 히어로 */
.hero-light {
  position: relative; overflow: hidden; text-align: center; padding: 84px 20px 72px;
  background:
    radial-gradient(600px 300px at 15% 10%, rgba(21, 128, 61, 0.10), transparent 70%),
    radial-gradient(600px 300px at 85% 15%, rgba(120, 200, 140, 0.16), transparent 70%),
    linear-gradient(180deg, #fdfefc 0%, #f6f8f6 100%);
  border-bottom: 1px solid var(--line);
}
.hero-light .inner { max-width: 720px; margin: 0 auto; position: relative; z-index: 2; }
.hero-light .eyebrow { display: inline-block; font-size: 0.8rem; font-weight: 700; color: var(--accent-deep); background: var(--accent-soft); border: 1px solid #bbf0cd; padding: 5px 14px; border-radius: 99px; margin-bottom: 20px; }
.hero-light h1 { font-size: clamp(1.8rem, 5vw, 2.8rem); line-height: 1.32; letter-spacing: -0.03em; margin: 0 0 16px; color: var(--ink); }
.hero-light h1 .hl { color: var(--accent); }
.hero-light .sub { color: var(--ink-soft); font-size: 1.02rem; max-width: 560px; margin: 0 auto 26px; }

.hero-search { position: relative; max-width: 520px; margin: 0 auto 22px; }
.hero-search input { width: 100%; padding: 14px 18px 14px 46px; border-radius: 14px; border: 1px solid var(--line); background: #fff; font-size: 0.95rem; font-family: inherit; color: var(--ink); box-shadow: 0 4px 16px rgba(16, 60, 30, 0.06); }
.hero-search input:focus { outline: 2px solid var(--accent); border-color: transparent; }
.hero-search .icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--ink-faint); font-size: 1rem; pointer-events: none; }
.hero-stats { display: flex; gap: 8px 24px; justify-content: center; flex-wrap: wrap; font-size: 0.85rem; color: var(--ink-faint); }
.hero-stats b { color: var(--ink); }
.hero-stats span::before { content: "· "; color: var(--line); }
.hero-stats span:first-child::before { content: ""; }

.float-card { position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; font-size: 0.78rem; font-weight: 600; color: var(--ink-soft); box-shadow: 0 8px 24px rgba(16, 60, 30, 0.08); z-index: 1; }
.float-card .q { color: var(--accent); font-weight: 800; margin-right: 4px; }
.fc-1 { top: 18%; left: 4%; transform: rotate(-4deg); }
.fc-2 { top: 55%; left: 2%; transform: rotate(3deg); }
.fc-3 { top: 20%; right: 4%; transform: rotate(4deg); }
.fc-4 { top: 58%; right: 2%; transform: rotate(-3deg); }
@media (max-width: 900px) { .float-card { display: none; } }

/* 본문 레이아웃 */
main { max-width: var(--maxw); margin: 0 auto; padding: 40px 20px 64px; }
.home-section { margin-top: 64px; }
.home-section:first-child { margin-top: 40px; }
.home-section > .kicker { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.08em; color: var(--accent); margin-bottom: 6px; }
.home-section > h2 { font-size: 1.5rem; margin: 0 0 6px; letter-spacing: -0.01em; }
.home-section > .sec-desc { color: var(--ink-faint); font-size: 0.93rem; margin-bottom: 20px; }
.btn { display: inline-block; border-radius: 12px; padding: 12px 22px; font-weight: 700; font-size: 0.95rem; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(21, 128, 61, 0.25); }
.btn-primary:hover { background: var(--accent-deep); text-decoration: none; }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-deep); text-decoration: none; }
.hero-ctas { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 26px; }

/* 백서 카드 그리드 */
.paper-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.paper-grid .paper-card.featured { grid-column: span 2; }
@media (max-width: 820px) { .paper-grid { grid-template-columns: 1fr 1fr; } .paper-grid .paper-card.featured { grid-column: span 2; } }
@media (max-width: 560px) { .paper-grid { grid-template-columns: 1fr; } .paper-grid .paper-card.featured { grid-column: span 1; } }
.paper-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; color: inherit; display: flex; flex-direction: column; gap: 8px; transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s; }
a.paper-card:hover { text-decoration: none; border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(16, 60, 30, 0.08); }
.paper-card .badges { display: flex; gap: 6px; flex-wrap: wrap; }
.badge { font-size: 0.72rem; font-weight: 800; padding: 3px 9px; border-radius: 6px; }
.badge-step1 { background: var(--accent-soft); color: var(--accent-deep); }
.badge-step2 { background: #fef1e3; color: #b45309; }
.badge-step3 { background: #e0f2f1; color: #0f766e; }
.badge-guide { background: #f0eafd; color: #6b3fd4; }
.badge-new { background: #fee2e2; color: #b91c1c; }
.paper-card h3 { margin: 0; font-size: 1rem; line-height: 1.5; }
.paper-card.featured h3 { font-size: 1.25rem; }
.paper-card p { margin: 0; font-size: 0.87rem; color: var(--ink-soft); flex: 1; }
.paper-card .date { font-size: 0.76rem; color: var(--ink-faint); }
.paper-card.more-card { align-items: center; justify-content: center; text-align: center; background: var(--accent-soft); border-color: #bbf0cd; }
.paper-card.more-card b { font-size: 1.3rem; color: var(--accent-deep); }
.paper-card.more-card span { font-size: 0.85rem; color: var(--accent-deep); font-weight: 700; }

.chip-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.chip { font-size: 0.82rem; font-weight: 600; color: var(--ink-soft); background: var(--card); border: 1px solid var(--line); border-radius: 99px; padding: 6px 14px; cursor: pointer; }
.chip:hover { border-color: var(--accent); color: var(--accent-deep); text-decoration: none; }

/* STEP 고민순서 */
.step-section { margin-top: 56px; }
.step-badge { display: inline-block; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.06em; color: var(--accent-deep); background: var(--accent-soft); border-radius: 99px; padding: 4px 12px; margin-bottom: 8px; }
.step-section h2 { font-size: 1.35rem; margin: 0 0 4px; letter-spacing: -0.01em; }
.step-section .step-desc { font-size: 0.93rem; color: var(--ink-faint); margin-bottom: 16px; }
.q-list { display: grid; gap: 10px; }
.q-item { display: flex; align-items: baseline; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; color: inherit; transition: border-color 0.15s, box-shadow 0.15s; }
.q-item:hover { text-decoration: none; border-color: var(--accent); box-shadow: 0 4px 14px rgba(16, 60, 30, 0.08); }
.q-item .q-mark { color: var(--accent); font-weight: 800; flex-shrink: 0; }
.q-item .q-body b { display: block; color: var(--ink); font-size: 0.98rem; margin-bottom: 2px; }
.q-item .q-body span { font-size: 0.85rem; color: var(--ink-faint); }
.no-result { display: none; text-align: center; color: var(--ink-faint); padding: 32px 0; font-size: 0.92rem; }

/* CTA */
.consult-cta { background: linear-gradient(135deg, var(--accent-soft) 0%, #f2fbf5 100%); border: 1px solid #bbf0cd; border-radius: var(--radius); padding: 22px 24px; margin-top: 40px; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.consult-cta b { display: block; font-size: 1.05rem; color: var(--ink); margin-bottom: 4px; }
.consult-cta p { margin: 0; font-size: 0.88rem; color: var(--ink-soft); max-width: 480px; }
.consult-cta .btn { flex-shrink: 0; }

/* ===== 아티클 본문 ===== */
.page-head { padding: 40px 0 8px; }
.page-head .crumb { font-size: 0.85rem; color: var(--ink-faint); margin-bottom: 8px; }
.page-head h1 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); margin: 0 0 10px; letter-spacing: -0.02em; }
.article-meta { font-size: 0.82rem; color: var(--ink-faint); margin-top: 10px; }
.article-meta .tag { display: inline-block; background: var(--accent-soft); color: var(--accent-deep); font-weight: 700; border-radius: 6px; padding: 2px 8px; margin-right: 8px; }
.answer-box { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 18px 20px; margin: 24px 0 8px; }
.answer-box .label { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.06em; color: var(--accent); display: block; margin-bottom: 6px; }
.answer-box p { margin: 0; color: var(--ink); font-weight: 600; font-size: 1.02rem; }

.article-body section { margin-top: 40px; }
.article-body h2 { font-size: 1.3rem; letter-spacing: -0.01em; margin: 0 0 16px; padding-bottom: 10px; border-bottom: 2px solid var(--line); }
.article-body h3 { font-size: 1.05rem; margin: 24px 0 8px; }
.article-body p { margin: 0 0 14px; color: var(--ink-soft); }
.article-body li { color: var(--ink-soft); margin-bottom: 6px; }
.article-body strong { color: var(--ink); }
.article-body a { color: var(--accent); font-weight: 600; }

.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin: 16px 0; }
.article-body table { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 520px; }
.article-body th, .article-body td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.article-body thead th { background: var(--accent-soft); color: var(--accent-deep); font-weight: 700; white-space: nowrap; }
.article-body tbody tr:last-child td { border-bottom: none; }
.article-body td { color: var(--ink-soft); }
.article-body td:first-child, .article-body th:first-child { font-weight: 700; color: var(--ink); }

.note, .warn-box { border-radius: var(--radius); padding: 16px 18px; margin: 18px 0; font-size: 0.92rem; }
.note { background: var(--accent-soft); border: 1px solid #bbf0cd; color: var(--accent-deep); }
.note strong { color: var(--accent-deep); }
.warn-box { background: var(--warn-soft); border: 1px solid #f3dcb0; color: var(--warn); }
.warn-box strong { color: var(--warn); }

.check-list { list-style: none; padding: 0; margin: 16px 0; counter-reset: check; }
.check-list > li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px 16px 56px; margin-bottom: 10px; position: relative; counter-increment: check; }
.check-list > li::before { content: counter(check); position: absolute; left: 16px; top: 16px; width: 26px; height: 26px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-deep); font-weight: 800; font-size: 0.85rem; display: flex; align-items: center; justify-content: center; }
.check-list > li b { display: block; color: var(--ink); margin-bottom: 2px; }
.check-list > li span { font-size: 0.9rem; }

.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; padding: 0 18px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; position: relative; padding-right: 28px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 2px; top: 50%; transform: translateY(-50%); color: var(--accent); font-size: 1.2rem; font-weight: 800; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-bottom: 16px; margin: 0; font-size: 0.93rem; color: var(--ink-soft); }

.basis { font-size: 0.85rem; color: var(--ink-faint); border-top: 1px dashed var(--line); margin-top: 32px; padding-top: 14px; }
.basis b { color: var(--ink-soft); }

.next-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.next-links a { flex: 1 1 220px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; font-weight: 700; font-size: 0.92rem; color: var(--ink); }
.next-links a small { display: block; font-weight: 500; color: var(--ink-faint); font-size: 0.78rem; margin-bottom: 2px; }
.next-links a:hover { text-decoration: none; border-color: var(--accent); }

/* 푸터 */
.big-footer { background: var(--card); border-top: 1px solid var(--line); padding: 40px 20px; margin-top: 64px; }
.big-footer .inner { max-width: var(--maxw); margin: 0 auto; }
.big-footer .brand { font-size: 1.1rem; }
.big-footer .about { font-size: 0.85rem; color: var(--ink-faint); margin: 8px 0 16px; max-width: 520px; }
.big-footer .disclaimer { font-size: 0.82rem; color: var(--ink-faint); border: 1px dashed var(--line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 14px; }
.big-footer .foot-links a { color: var(--ink-soft); font-size: 0.85rem; margin-right: 14px; }
.big-footer .copy { font-size: 0.8rem; color: var(--ink-faint); margin-top: 12px; }

.float-consult { position: fixed; right: 18px; bottom: 18px; z-index: 50; background: var(--accent); color: #fff; font-weight: 700; font-size: 0.92rem; padding: 13px 20px; border-radius: 99px; box-shadow: 0 8px 24px rgba(21, 128, 61, 0.35); transition: transform 0.15s, box-shadow 0.15s; }
.float-consult:hover { text-decoration: none; color: #fff; transform: translateY(-2px); }
@media print { .float-consult { display: none; } }

.loading, .empty-state { text-align: center; color: var(--ink-faint); padding: 48px 0; }

@media (max-width: 640px) {
  .hero-light { padding: 56px 20px 52px; }
  .site-header .inner { flex-direction: column; align-items: flex-start; gap: 8px; }
}
