/* 내 손안에 복지 — 디자인 시안 C: 모던 미니멀형
   레퍼런스: Cal.com 디자인 시스템(무채색 절제·타입 스케일·헤어라인·플랫),
   CyberAgent Spindle(순백 캔버스·잉크색 텍스트·그림자 없음·필 버튼),
   오픈소스 Spacious 시스템(8pt 그리드·여백 우선 구분)
   원칙: 무채색 기반 + 비비드 블루 1색, 그림자 없음, 카드는 여백과 헤어라인으로 구분,
   큰 제목 ↔ 작은 캡션의 타이포 대비, 섹션 간격 넉넉히.
   기능 하한: 본문 18px · 줄간격 1.75 · 버튼 56px · 터치 48px · 대비 4.5:1 이상 · 360px 넘침 0 */
:root {
  --bg: #ffffff;
  --surface: #fafbfc;          /* 요약 박스 등 옅은 중성 면 */
  --ink: #101418;              /* 제목·강조 잉크 */
  --text: #1b1f26;             /* 본문 (대비 약 15:1) */
  --secondary: #3d4652;        /* 보조 본문 (대비 약 9.4:1) */
  --muted: #5c6672;            /* 캡션 (대비 약 5.9:1) */
  --accent: #2563eb;           /* 비비드 블루 — 유일한 포인트 색 (대비 5.17:1) */
  --accent-ink: #1d4ed8;       /* 옅은 면 위 작은 글자용 진한 블루 */
  --accent-soft: #f2f6fe;      /* 블루 틴트 면 */
  --line: #e8eaee;             /* 헤어라인 */
  --line-strong: #d4d8de;
  --t-display: 33px;
  --t-h1: 30px;
  --t-h2: 23px;
  --t-body: 18px;
  --t-sm: 15.5px;
  --t-cap: 13.5px;
  --lh-body: 1.75;
  --btn-h: 56px;
  --touch: 48px;
  --sp: 8px;
  --maxw: 720px;
  --r-lg: 20px;
  --r-md: 14px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: hidden; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Spoqa Han Sans Neo", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: var(--t-body);
  line-height: var(--lh-body);
  letter-spacing: -0.01em;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--accent-soft); }
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
img { max-width: 100%; height: auto; }

/* ---------- 헤더: 얇고 조용하게 ---------- */
.site-header {
  padding: 22px 20px 6px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.site-name {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 19px; font-weight: 700; letter-spacing: -0.02em;
  color: var(--ink); text-decoration: none; line-height: 1.3; min-height: var(--touch);
}
.site-name::before {
  content: ""; width: 11px; height: 11px; border-radius: 3.5px;
  background: var(--accent); flex: 0 0 auto;
}
main { max-width: var(--maxw); margin: 0 auto; padding: 6px 20px 72px; }

/* ---------- 타이포 위계 ---------- */
h1 { font-size: var(--t-h1); font-weight: 700; line-height: 1.38; letter-spacing: -0.028em; color: var(--ink); margin: 14px 0 20px; }
h2 { font-size: var(--t-h2); font-weight: 700; line-height: 1.45; letter-spacing: -0.022em; color: var(--ink); margin: calc(var(--sp) * 7) 0 calc(var(--sp) * 2); }
p { margin: calc(var(--sp) * 1.75) 0; }
.headline { font-size: var(--t-display); font-weight: 700; line-height: 1.34; letter-spacing: -0.03em; color: var(--ink); margin: 30px 0 10px; }

/* ---------- 첫 화면 3주제: 박스 없이 헤어라인 행 ---------- */
.topic-buttons { margin: calc(var(--sp) * 4) 0 calc(var(--sp) * 2); border-top: 1px solid var(--line); }
.topic-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 76px; padding: 18px 2px;
  border-bottom: 1px solid var(--line);
  color: var(--text); text-decoration: none;
}
.topic-btn .t { display: block; font-size: 21px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.topic-btn .s { display: block; font-size: var(--t-sm); color: var(--muted); margin-top: 3px; line-height: 1.5; }
.topic-btn::after { content: "→"; font-size: 20px; color: var(--muted); flex: 0 0 auto; }
.topic-btn:active .t, .topic-btn:hover .t { color: var(--accent); }

/* ---------- 검색: 채운 필 + 잉크색 필 버튼 ---------- */
.search-box { display: flex; gap: 10px; margin: calc(var(--sp) * 4) 0; }
.search-box input {
  flex: 1; min-width: 0; min-height: var(--btn-h); font-size: 17px; font-family: inherit;
  padding: 0 20px; border: 0; border-radius: 999px; background: #f2f3f5; color: var(--ink);
}
.search-box input::placeholder { color: var(--muted); }
.search-box button {
  min-height: var(--btn-h); font-size: 16.5px; font-weight: 700; font-family: inherit;
  background: var(--ink); color: #fff; border: 0; border-radius: 999px; padding: 0 24px; cursor: pointer;
}

/* ---------- 판단 한 줄: 바 대신 타이포로 ---------- */
.judgment { font-size: 20.5px; font-weight: 700; line-height: 1.62; letter-spacing: -0.015em; color: var(--ink); margin: 26px 0 8px; }
.judgment::before { content: ""; display: block; width: 30px; height: 3.5px; border-radius: 2px; background: var(--accent); margin-bottom: 16px; }

/* ---------- 요약 박스: 테두리 없는 옅은 면 ---------- */
.summary-box { background: var(--surface); border-radius: var(--r-lg); padding: 28px 24px; margin: calc(var(--sp) * 4) 0; }
.summary-box h2 {
  margin: 30px 0 10px; font-size: 14.5px; font-weight: 700; line-height: 1.4;
  letter-spacing: 0.05em; color: var(--accent-ink);
}
.summary-box h2:first-child { margin-top: 0; }
.summary-box ul, .summary-box ol { margin: 6px 0; padding-left: 22px; }
.summary-box li { margin: 5px 0; }
.summary-box li::marker { color: var(--accent); font-weight: 700; }
.official-btn {
  display: block; min-height: var(--btn-h); margin-top: 12px;
  padding: 15px 24px;
  background: var(--accent); color: #fff; border-radius: 999px;
  font-size: 17.5px; font-weight: 700; line-height: 1.4; text-align: center; text-decoration: none;
}
.official-btn.sub { background: var(--bg); color: var(--accent-ink); border: 1px solid var(--accent); }

/* 버튼 주변 여백 (광고 오인 클릭 방지) */
.btn-gap { margin: calc(var(--sp) * 3) 0 4px; }

/* ---------- 표: 겉 테두리 없이 헤어라인만 ---------- */
.table-wrap { overflow-x: auto; margin: calc(var(--sp) * 3) 0; }
table { border-collapse: collapse; width: 100%; font-size: 17px; line-height: 1.6; }
th, td { padding: 13px 10px; text-align: left; vertical-align: top; }
th { font-size: 15px; font-weight: 700; color: var(--ink); border-bottom: 2px solid var(--ink); }
td { border-bottom: 1px solid var(--line); }
@media (max-width: 480px) {
  table, tbody, tr, td { display: block; width: 100%; }
  thead { display: none; }
  tr { border-bottom: 1px solid var(--line-strong); padding: 8px 0; }
  td { border: 0; padding: 5px 0; }
  td::before { content: attr(data-th); display: block; font-weight: 700; font-size: 13.5px; letter-spacing: 0.03em; color: var(--accent-ink); margin-bottom: 2px; }
}

/* ---------- 글 목록 (허브·검색): 박스 대신 행 ---------- */
.post-list { list-style: none; padding: 0; margin: calc(var(--sp) * 2) 0; }
.post-list li { border-bottom: 1px solid var(--line); }
.post-list a { display: block; padding: 20px 0; color: var(--text); text-decoration: none; min-height: var(--touch); }
.post-list .pt { display: block; font-weight: 700; font-size: 19.5px; line-height: 1.45; letter-spacing: -0.015em; color: var(--ink); }
.post-list .pd { display: block; color: var(--muted); font-size: var(--t-sm); margin-top: 5px; line-height: 1.55; }

/* ---------- 메인 화면 섹션 + 카드: 그림자·테두리 없이 ---------- */
.home-section { margin-top: calc(var(--sp) * 8); border-top: 1px solid var(--line); padding-top: calc(var(--sp) * 3.5); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.section-head h2 { margin: 0; font-size: 22px; }
.more-link { font-size: 14.5px; font-weight: 500; color: var(--muted); text-decoration: none; white-space: nowrap; min-height: var(--touch); display: inline-flex; align-items: center; }
.more-link::after { content: " →"; }
.card-list { display: flex; flex-direction: column; margin-top: calc(var(--sp) * 3); }
.card { background: var(--bg); }
.card a { display: block; color: var(--text); text-decoration: none; }
.card-thumb { display: block; overflow: hidden; background: var(--accent-soft); border-radius: var(--r-md); }
.card-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.card-lg .card-thumb { aspect-ratio: 16 / 9; }
.card-thumb-none {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 8px;
  color: var(--accent-ink); padding: 20px; height: 100%;
}
.card-thumb-none svg { width: 34px; height: 34px; fill: currentColor; }
.card-thumb-none .thumb-topic { font-size: 19px; font-weight: 700; letter-spacing: -0.015em; }
.card-lg .card-thumb-none { aspect-ratio: 16 / 9; }
.card-body { display: block; padding: 18px 0 6px; min-width: 0; }
.card-title { display: block; font-weight: 700; font-size: 21px; line-height: 1.45; letter-spacing: -0.018em; color: var(--ink); }
.card-desc {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
  margin-top: 7px; font-size: 16.5px; line-height: 1.6; color: var(--secondary);
}
.card-note { display: block; margin-top: 9px; font-size: var(--t-cap); font-weight: 500; letter-spacing: 0.02em; color: var(--muted); }
.card-sm { border-top: 1px solid var(--line); margin-top: calc(var(--sp) * 3); padding-top: calc(var(--sp) * 3); }
.card-sm a { display: flex; gap: 18px; }
.card-sm .card-thumb { flex: 0 0 104px; width: 104px; height: 104px; border-radius: 12px; }
.card-sm .card-thumb-none { padding: 12px; align-items: flex-start; justify-content: flex-end; }
.card-sm .card-thumb-none svg { width: 22px; height: 22px; }
.card-sm .card-thumb-none .thumb-topic { font-size: 13.5px; }
.card-sm .card-body { flex: 1; padding: 2px 0 0; }
.card-sm .card-title { font-size: 18.5px; }
.card-sm .card-desc { font-size: 15.5px; }

/* ---------- 복귀 링크·공유 ---------- */
.back-link { display: inline-flex; align-items: center; min-height: var(--touch); padding: 6px 0; font-size: 15px; font-weight: 500; color: var(--muted); text-decoration: none; }
.share-btn { display: block; width: 100%; min-height: var(--btn-h); font-size: 17.5px; font-weight: 700; font-family: inherit; background: #fee500; color: #191600; border: 0; border-radius: 999px; margin: calc(var(--sp) * 4) 0; cursor: pointer; }

/* ---------- 관련 안내 ---------- */
.related { background: var(--surface); border-radius: var(--r-md); padding: 24px; margin-top: calc(var(--sp) * 6); }
.related h2 { margin-top: 0; }

/* ---------- 출처·기준일 ---------- */
.sources { margin-top: calc(var(--sp) * 7); border-top: 1px solid var(--line); padding-top: calc(var(--sp) * 3); font-size: var(--t-sm); color: var(--secondary); line-height: 1.65; }
.sources h2 { font-size: 17px; margin: 0 0 10px; }
.sources a { overflow-wrap: anywhere; word-break: break-all; }
.checked-date { font-size: var(--t-cap); font-weight: 500; letter-spacing: 0.02em; color: var(--muted); margin: 20px 0 0; }

/* ---------- 초안·자리표시 ---------- */
.draft-banner { background: #fff8e1; border-radius: var(--r-md); padding: 16px 18px; margin: 18px 0; font-size: var(--t-sm); font-weight: 500; line-height: 1.6; color: #6d5410; }
.placeholder-box { border: 1px dashed var(--line-strong); border-radius: var(--r-md); padding: calc(var(--sp) * 3); text-align: center; margin: calc(var(--sp) * 2) 0; color: var(--muted); }

/* ---------- 푸터 ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: calc(var(--sp) * 4); padding: 40px 20px 56px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 26px; max-width: var(--maxw); margin: 0 auto; }
.site-footer a { display: inline-flex; align-items: center; min-height: var(--touch); color: var(--secondary); font-size: 15px; font-weight: 500; text-decoration: none; }
.site-footer .fine { max-width: var(--maxw); margin: 14px auto 0; font-size: var(--t-cap); color: var(--muted); line-height: 1.6; }
