:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --text: #1a1f2b;
  --muted: #5d6676;
  --line: #e4e8ef;
  --brand: #2f6fed;
  --brand-soft: #eaf1ff;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 4px 14px rgba(16, 24, 40, .05);
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.65; word-break: keep-all; overflow-wrap: anywhere; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* 헤더 */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 60px; }
.logo { font-weight: 800; font-size: 19px; letter-spacing: -.3px; color: var(--text); white-space: nowrap; }
.logo span { color: var(--brand); margin-left: 2px; }
.main-nav { display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; flex: 1; justify-content: flex-end; }
.main-nav::-webkit-scrollbar { display: none; }
.main-nav a { font-size: 14px; color: var(--muted); white-space: nowrap; padding: 4px 0; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a.on { color: var(--text); border-color: var(--brand); }
.search-btn { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: var(--text); flex-shrink: 0; }
.search-btn:hover { background: var(--bg); }

/* 히어로 / 페이지 머리 */
.hero, .page-head { text-align: center; padding: 56px 0 28px; }
.hero h1, .page-head h1 { margin: 0 0 10px; font-size: clamp(30px, 5vw, 44px); letter-spacing: -1px; color: var(--brand); line-height: 1.25; }
.hero h1 { color: var(--text); }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero p, .page-head p { margin: 0; color: var(--muted); }
.sample-note { display: inline-block; background: #fff4d6; color: #7a5600 !important; border-radius: 999px; padding: 4px 14px; font-size: 13px; margin-bottom: 16px !important; }
.hero-search { display: flex; max-width: 560px; margin: 24px auto 0; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px; box-shadow: var(--shadow); }
.hero-search input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; padding: 8px 16px; background: transparent; color: var(--text); }
.hero-search button { border: 0; background: var(--brand); color: #fff; font: inherit; font-weight: 700; padding: 8px 22px; border-radius: 999px; cursor: pointer; }

/* 칩 */
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 12px 0; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.chip small { color: var(--muted); font-weight: 500; font-size: 12px; }
.chip:hover { border-color: var(--brand); }
.chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip.on small { color: rgba(255,255,255,.8); }
.section .chips { justify-content: flex-start; }

/* 카드 그리드 */
.section { margin: 40px 0; }
.section h2 { font-size: 21px; letter-spacing: -.4px; margin: 0 0 16px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 20px 0; }
.card { display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(16,24,40,.1); }
.thumb { position: relative; aspect-ratio: 16 / 9; display: flex; flex-direction: column; justify-content: flex-end; padding: 18px 20px; color: #fff;
  background: radial-gradient(circle at 85% 20%, rgba(255,255,255,.28), transparent 40%), linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 55%, #0b1220)); }
.thumb-icon { position: absolute; top: 14px; right: 18px; font-size: 40px; filter: drop-shadow(0 4px 8px rgba(0,0,0,.2)); }
.thumb-title { font-size: 20px; font-weight: 800; line-height: 1.3; letter-spacing: -.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-shadow: 0 1px 6px rgba(0,0,0,.15); padding-right: 40px; }
.card-body { padding: 16px 18px 20px; }
.meta { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.tag { color: var(--c, var(--brand)); font-weight: 800; letter-spacing: .2px; }
.card h3 { margin: 0 0 6px; font-size: 17px; line-height: 1.45; letter-spacing: -.3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card p { margin: 0; font-size: 14px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* 배너 */
.finder-banner { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 28px 0; padding: 22px 26px; border-radius: var(--radius); background: linear-gradient(120deg, var(--brand), #6a4cf0); color: #fff; box-shadow: var(--shadow); }
.finder-banner strong { display: block; font-size: 19px; margin-bottom: 2px; }
.finder-banner span { opacity: .9; font-size: 14px; }
.finder-banner .arrow { font-size: 26px; opacity: 1; }

/* 버튼 */
.btn, .btn-outline { display: inline-block; padding: 11px 22px; border-radius: 12px; font-weight: 700; font-size: 15px; border: 1px solid var(--brand); cursor: pointer; font-family: inherit; }
.btn { background: var(--brand); color: #fff; }
.btn-outline { background: var(--surface); color: var(--brand); }
.more { text-align: center; margin-top: 24px; }

/* 페이지네이션 */
.pager { display: flex; justify-content: center; align-items: center; gap: 18px; margin: 32px 0 48px; color: var(--muted); }
.pager a { padding: 8px 16px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); color: var(--text); font-weight: 600; }

/* 상세 페이지 */
.article { max-width: 760px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px 36px 40px; margin-top: 28px; margin-bottom: 28px; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.crumbs a:hover { color: var(--brand); }
.article h1 { font-size: clamp(26px, 4vw, 34px); letter-spacing: -.8px; line-height: 1.3; margin: 6px 0 6px; }
.org { color: var(--muted); margin: 0 0 22px; font-size: 14px; }
.article h2 { font-size: 21px; letter-spacing: -.4px; margin: 36px 0 12px; padding-top: 4px; }
.article ul, .article ol { padding-left: 22px; margin: 0; }
.article li { margin: 6px 0; }
.summary-box { background: var(--brand-soft); border-radius: 14px; padding: 18px 20px; }
.summary-box strong { color: var(--brand); font-size: 14px; }
.summary-box p { margin: 6px 0 0; font-size: 16px; }
.cond-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.cond-tags span { background: #fff; border: 1px solid #cddcfb; color: #2552b8; border-radius: 999px; padding: 2px 10px; font-size: 13px; font-weight: 600; }
.facts { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 15px; }
.facts th { width: 110px; text-align: left; color: var(--muted); font-weight: 600; vertical-align: top; }
.facts th, .facts td { padding: 10px 4px; border-bottom: 1px solid var(--line); }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 8px; }
ul.check { list-style: none; padding-left: 0; }
ul.check li { position: relative; padding-left: 28px; }
ul.check li::before { content: "✓"; position: absolute; left: 4px; color: var(--brand); font-weight: 800; }
ol.steps { list-style: none; counter-reset: s; padding-left: 0; }
ol.steps li { counter-increment: s; position: relative; padding-left: 40px; min-height: 28px; }
ol.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 13px; font-weight: 800; display: grid; place-items: center; }
ul.warn li::marker { content: "⚠️ "; }
.faq details, .original details { border: 1px solid var(--line); border-radius: 12px; padding: 0 16px; margin: 8px 0; background: var(--surface); }
.faq summary, .original summary { cursor: pointer; padding: 13px 0; font-weight: 700; }
.faq p { margin: 0 0 14px; color: var(--muted); }
.original details > div { padding: 0 0 14px; color: var(--muted); font-size: 14px; }
.disclaimer { font-size: 13px; color: var(--muted); background: var(--bg); border-radius: 12px; padding: 14px 16px; margin-top: 32px; }
.prose p { margin: 0 0 14px; }

/* 광고 */
.ad-slot { margin: 28px 0; min-height: 100px; }
.ad-placeholder { display: grid; place-items: center; background: repeating-linear-gradient(45deg, #eef1f6, #eef1f6 10px, #e6eaf1 10px, #e6eaf1 20px); border-radius: 12px; color: #8a93a3; font-size: 13px; }

/* 지원금 찾기 / 검색 */
.panel { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.finder .row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.finder label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.finder input[type=number], .finder select { font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--text); }
.finder fieldset { border: 0; padding: 0; margin: 20px 0; }
.finder legend { font-weight: 700; margin-bottom: 10px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.check-chip input { position: absolute; opacity: 0; }
.check-chip span { display: inline-block; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); font-weight: 600; cursor: pointer; background: #fff; }
.check-chip input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.check-chip input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.result-count { margin: 24px 0 8px; font-weight: 700; }
.result-list { list-style: none; padding: 0; margin: 0 0 40px; display: grid; gap: 10px; }
.result-list a { display: block; background: var(--surface); border-radius: 14px; padding: 16px 18px; box-shadow: var(--shadow); }
.result-list a:hover { outline: 2px solid var(--brand-soft); }
.result-list strong { display: block; font-size: 16px; }
.result-list small { color: var(--brand); font-weight: 700; font-size: 12px; }
.result-list span { color: var(--muted); font-size: 14px; }

/* 푸터 */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding: 28px 0 40px; margin-top: 40px; font-size: 13px; color: var(--muted); }
.site-footer p { margin: 6px 0; }
.foot-links a:hover { color: var(--brand); }

/* 반응형 */
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .finder .row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .header-inner { gap: 12px; }
  .main-nav { gap: 16px; }
  .grid { grid-template-columns: 1fr; gap: 14px; }
  .hero, .page-head { padding: 36px 0 18px; }
  .article { padding: 22px 16px 28px; border-radius: 0; margin: 0; box-shadow: none; }
  .finder .row { grid-template-columns: 1fr; }
  .finder-banner { padding: 18px; }
  .thumb-title { font-size: 18px; }
}
