/* ClaimxArk 블로그 — 정적 페이지 공용 스타일(2026-10-07).
   색은 앱 tokens.css 의 값과 같다(정적 페이지라 토큰 파일을 읽지 않고 같은 값을 적었다).
   랜딩의 "종이 문서" 톤: 흰 면 + 연청 틴트 + 남색 1색. */

:root {
  --navy: #002f66;          /* brand-800 */
  --navy-2: #004899;        /* brand-700 */
  --blue: #007aff;          /* brand-500 */
  --tint: #f6faff;          /* brand-50 = blue-100 45% + white */
  --tint-2: #ebf4ff;        /* brand-100 */
  --blue-soft: #b0d5ff;     /* brand-200 */
  --ink: #212529;           /* neutral-900 */
  --text: #495057;          /* neutral-700 */
  --muted: #6c757d;         /* neutral-600 */
  --line: #dee2e6;          /* neutral-300 */
  --surface: #ffffff;
  --ok-bg: #d1fae5;         /* success-100 */
  --ok: #047857;            /* success-700 */
  --draft-bg: #f3e3d8;      /* orange-100 */
  --radius: 16px;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--navy-2); }
a:hover { color: var(--navy); }
img { max-width: 100%; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

/* ── 상단 메뉴 (랜딩과 같은 모양) ── */
.nav-bar { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 32px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--navy); text-decoration: none; }
.brand-shield { width: 26px; height: 30px; background: currentColor; -webkit-mask: url("/media/ClaimArk_Logo (W).png") center / contain no-repeat; mask: url("/media/ClaimArk_Logo (W).png") center / contain no-repeat; }
.brand-word { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.brand-x { font-size: 0.5em; vertical-align: -0.12em; margin: 0 0.04em; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--text); text-decoration: none; font-weight: 500; transition: color .3s var(--ease); }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--navy); }
.nav-links a[aria-current] { font-weight: 600; }
.nav-cta { margin-left: auto; display: inline-flex; align-items: center; height: 40px; padding: 0 20px; border-radius: 999px; background: var(--navy); color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; transition: background .3s var(--ease); }
.nav-cta:hover { background: var(--navy-2); color: #fff; }

/* ── 머리 ── */
.page-head { background: var(--tint); border-bottom: 1px solid var(--tint-2); padding: 56px 0 48px; }
.crumbs { display: flex; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--navy); }
.eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.kind { padding: 3px 10px; border-radius: 999px; background: var(--navy); color: #fff; letter-spacing: .08em; }
.draft { padding: 3px 10px; border-radius: 999px; background: var(--draft-bg); color: var(--ink); letter-spacing: .08em; }
h1 { margin: 0; font-size: clamp(32px, 4.4vw, 48px); line-height: 1.12; letter-spacing: -0.025em; color: var(--ink); font-weight: 700; }
.lead { margin: 16px 0 0; font-size: 19px; color: var(--text); max-width: 680px; }
.disclaimer { margin: 14px 0 0; font-size: 14px; color: var(--muted); max-width: 680px; }

/* ── 글 ── */
.article { padding: 48px 0 24px; }
.answer { position: relative; margin: 0 0 40px; padding: 24px 28px 24px 32px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--blue-soft); box-shadow: 0 10px 30px rgba(0, 47, 102, 0.06); }
.answer::before { content: ""; position: absolute; left: 0; top: 20px; bottom: 20px; width: 4px; border-radius: 0 4px 4px 0; background: var(--navy); }
.answer .answer-label { margin: 0 0 8px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--navy); }
.answer p { margin: 0; font-size: 18px; color: var(--ink); }
.answer p + p { margin-top: 10px; }

.toc { margin: 0 0 40px; padding: 20px 24px; border-radius: var(--radius); background: var(--tint); }
.toc-title { margin: 0 0 8px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.toc ol { margin: 0; padding-left: 22px; }
.toc li { margin: 4px 0; }
.toc a { text-decoration: none; color: var(--ink); }
.toc a:hover { color: var(--navy); text-decoration: underline; }

.qa { margin: 0 0 20px; padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); scroll-margin-top: 88px; transition: border-color .4s var(--ease), box-shadow .4s var(--ease); }
.qa:target { border-color: var(--navy); box-shadow: 0 0 0 3px var(--tint-2); }
.qa-q { display: flex; gap: 14px; align-items: flex-start; margin: 0 0 14px; }
.qa-badge { flex: none; display: inline-grid; place-items: center; width: 32px; height: 32px; margin-top: 2px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 15px; font-weight: 700; }
.qa h2 { margin: 0; font-size: 22px; line-height: 1.35; letter-spacing: -0.01em; color: var(--ink); font-weight: 700; }
.qa h2 a { color: inherit; text-decoration: none; }
.qa h2 a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.qa-a { padding-left: 46px; }
.qa-a > :first-child { margin-top: 0; }
.qa-a > :last-child { margin-bottom: 0; }
.qa-a p, .qa-a ul, .qa-a ol { margin: 0 0 12px; }
.qa-a li { margin: 6px 0; }
.qa-a strong { color: var(--ink); }

.sources { margin: 40px 0 0; padding: 24px 28px; border-radius: var(--radius); background: var(--tint); }
.sources h2 { margin: 0 0 10px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.sources ul { margin: 0; padding-left: 20px; }
.sources li { margin: 6px 0; font-size: 15px; }

.meta-line { margin: 28px 0 0; font-size: 14px; color: var(--muted); }

/* ── 글(article) 절 — 2026-10-07: 질문이 아닌 제목·번호 절·표·체크리스트 ──
   편집 지면 결: 머리선 1px·그림자 없음·숫자는 고정폭 남색. 색은 위 토큰 값만 쓴다. */
.intro-rest { margin: -12px 0 40px; }
.intro-rest p { margin: 0 0 14px; }

.sec { margin: 0 0 8px; padding: 36px 0 32px; border-top: 1px solid var(--line); scroll-margin-top: 88px; }
.sec h2 { margin: 0 0 16px; font-size: 26px; line-height: 1.3; letter-spacing: -0.015em; color: var(--ink); font-weight: 700; }
.sec h2 a { color: inherit; text-decoration: none; }
.sec h2 a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.sec-head { display: flex; align-items: baseline; gap: 16px; margin: 0 0 16px; }
.sec-head h2 { margin: 0; }
.sec-no { flex: none; font-family: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace; font-size: 15px; font-weight: 500; letter-spacing: .04em; color: var(--navy); padding: 3px 8px; border: 1px solid var(--blue-soft); border-radius: 6px; background: var(--tint); transform: translateY(-3px); }
.sec-body > :first-child { margin-top: 0; }
.sec-body > :last-child { margin-bottom: 0; }
.sec-body p, .sec-body ul, .sec-body ol { margin: 0 0 16px; }
.sec-body li { margin: 8px 0; }
.sec-body strong { color: var(--ink); }
.sec:target h2 { color: var(--navy); }

/* 표 — 머리선만, 좁은 화면은 상자 안에서 가로 스크롤 */
.table-wrap { margin: 8px 0 24px; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; -webkit-overflow-scrolling: touch; }
.table-wrap table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.table-wrap th, .table-wrap td { text-align: left !important; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.table-wrap th { background: var(--tint); color: var(--ink); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.table-wrap tr:last-child td { border-bottom: 0; }
.table-wrap td:first-child { color: var(--ink); font-weight: 500; width: 46%; }

/* 체크리스트 — ☐ 대신 그린 네모 */
.sec-check .sec-body { padding: 24px 28px; border-radius: var(--radius); background: var(--tint); }
.sec-check ul { list-style: none; padding: 0; margin: 0; }
li.check { position: relative; padding-left: 34px; margin: 0; padding-top: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--tint-2); }
li.check:last-child { border-bottom: 0; }
/* FAQ 판 — 체크리스트 판과 같은 연청 면, 문답 하나 = 줄 하나 */
.sec-faq .sec-body { padding: 6px 28px; border-radius: var(--radius); background: var(--tint); }
.sec-faq .sec-body p { margin: 0; padding: 18px 0; border-bottom: 1px solid var(--tint-2); }
.sec-faq .sec-body p:last-child { border-bottom: 0; }
.sec-faq .sec-body p > strong:first-child { font-size: 17px; }
li.check::before { content: ""; position: absolute; left: 0; top: 13px; width: 18px; height: 18px; border: 1.5px solid var(--navy); border-radius: 5px; background: var(--surface); }

/* 스크롤 등장 — reveal-on 은 JS·IntersectionObserver 가 있고 '움직임 줄이기' 가 아닐 때만 붙는다 */
.reveal-on .reveal { opacity: 0; transform: translateY(12px); transition: opacity .6s cubic-bezier(0.16, 1, 0.3, 1), transform .6s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal-on .reveal.in { opacity: 1; transform: none; }

/* ── 행동 유도 ── */
.cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin: 48px 0; padding: 32px; border-radius: var(--radius); background: var(--navy); color: #fff; }
.cta .cta-title { margin: 0 0 6px; font-size: 24px; line-height: 1.25; font-weight: 700; color: #fff; }
.cta p { margin: 0; color: rgba(255, 255, 255, 0.82); font-size: 16px; }
.cta a { display: inline-flex; align-items: center; height: 48px; padding: 0 24px; border-radius: 999px; background: #fff; color: var(--navy); font-weight: 600; text-decoration: none; transition: transform .3s var(--ease); }
.cta a:hover { transform: translateY(-1px); color: var(--navy); }

/* ── 관련 글·목록 카드 ── */
.related { padding: 8px 0 64px; }
.section-title { margin: 0 0 16px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.card { display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); color: var(--text); text-decoration: none; transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease); }
.card:hover { transform: translateY(-3px); border-color: var(--blue-soft); box-shadow: 0 14px 36px rgba(0, 47, 102, 0.10); color: var(--text); }
.card .eyebrow { margin: 0; font-size: 12px; }
.card h3 { margin: 0; font-size: 20px; line-height: 1.3; color: var(--ink); }
.card p { margin: 0; font-size: 15px; }
.card .more { margin-top: auto; padding-top: 6px; font-size: 15px; font-weight: 600; color: var(--navy); }

/* 목록: 종류 거르기 */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; }
.filter { appearance: none; border: 1px solid var(--blue-soft); background: var(--surface); color: var(--text); font: inherit; font-size: 15px; font-weight: 600; padding: 8px 18px; border-radius: 999px; cursor: pointer; transition: background .3s var(--ease), color .3s var(--ease); }
.filter[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.filter:focus-visible { outline: 3px solid #b9c4ff; outline-offset: 2px; }
.list { padding: 40px 0 72px; }
.empty { padding: 40px; border-radius: var(--radius); background: var(--tint); text-align: center; color: var(--muted); }

/* ── 바닥 ── */
.footer { border-top: 1px solid var(--line); padding: 24px 0 40px; font-size: 14px; color: var(--muted); }
.footer-row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer a { color: var(--muted); }

/* ── 좁은 화면 ── */
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .nav { gap: 16px; height: 60px; }
  .nav-links { display: none; }
  .brand-word { font-size: 20px; }
  .brand-shield { width: 22px; height: 26px; }
  .page-head { padding: 36px 0 32px; }
  .lead { font-size: 17px; }
  .qa { padding: 20px; }
  .qa-a { padding-left: 0; }
  .qa h2 { font-size: 19px; }
  .sec h2 { font-size: 21px; }
  .sec-head { gap: 12px; }
  .sec-check .sec-body { padding: 16px 18px; }
  .sec-faq .sec-body { padding: 4px 18px; }
  /* 표 → 줄마다 카드처럼 쌓는다(가로 스크롤 없이). 첫 칸 = 굵게, 둘째 칸부터 위에 머리글 이름표 */
  .table-wrap { overflow: visible; }
  .table-wrap table { min-width: 0; }
  .table-wrap thead { display: none; }
  .table-wrap tr { display: block; padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .table-wrap tr:last-child { border-bottom: 0; }
  .table-wrap td { display: block; width: auto !important; padding: 0; border: 0; }
  .table-wrap td + td { margin-top: 8px; }
  .table-wrap td + td::before { content: attr(data-label); display: block; margin-bottom: 2px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
  .answer { padding: 20px 20px 20px 24px; }
  .cta { padding: 24px; }
  .cta a { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
