/* 이 파일은 tools/build-blog.mjs 가 생성한다 — 직접 수정하지 말 것 */
:root {
  --navy: #1B2A4A; --teal: #1FA99B; --teal-dark: #0f6f66; --teal-darker: #0a5c54;
  --ink: #1d2430; --muted: #5b6572; --line: #e6e9ee; --bg-soft: #f5f7fa;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: "Apple SD Gothic Neo", "Malgun Gothic", "Segoe UI", sans-serif; color: var(--ink); line-height: 1.75; }
a { color: var(--teal-dark); text-decoration: none; }
p a, li a, td a { text-decoration: underline; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.btn { display: inline-block; padding: 13px 28px; border-radius: 8px; font-weight: 700; font-size: 16px; }
.btn-primary { background: var(--teal-dark); color: #fff; }
.btn-primary:hover { background: var(--teal-darker); }

header.nav { position: sticky; top: 0; background: #fff; border-bottom: 1px solid var(--line); z-index: 10; }
header.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
header.nav img.logo { height: 52px; display: block; }
header.nav nav a { color: var(--muted); margin-left: 22px; font-size: 15px; }
header.nav nav a[aria-current] { color: var(--navy); font-weight: 700; }
header.nav .cta { color: #fff; background: var(--navy); padding: 8px 16px; border-radius: 6px; }

.blog-head { background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: 56px 0 48px; }
.blog-head h1 { font-size: 32px; color: var(--navy); }
.blog-head p { color: var(--muted); margin-top: 10px; max-width: 720px; }
.blog-head .feed { display: inline-block; margin-top: 16px; font-size: 14px; }

.post-list { padding: 48px 0 72px; }
.post-list article { border-bottom: 1px solid var(--line); padding: 26px 0; }
.post-list article:last-child { border-bottom: 0; }
.post-list h2 { font-size: 22px; color: var(--navy); line-height: 1.45; }
.post-list h2 a { color: inherit; }
.post-list h2 a:hover { color: var(--teal-dark); }
.post-list p { color: var(--muted); margin-top: 8px; font-size: 15.5px; }
.post-meta { color: var(--muted); font-size: 13.5px; margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.tag { background: rgba(31,169,155,.10); color: var(--teal-dark); border-radius: 999px; padding: 3px 10px; font-size: 12.5px; font-weight: 700; }
.empty { color: var(--muted); padding: 40px 0; }

.post { padding: 44px 0 72px; }
.post .crumb { font-size: 13.5px; color: var(--muted); margin-bottom: 18px; }
.post h1 { font-size: 34px; line-height: 1.4; color: var(--navy); max-width: 780px; }
.post .post-meta { margin: 14px 0 0; }
.post .lead { margin-top: 18px; font-size: 17px; color: var(--muted); max-width: 780px; }
.post-body { max-width: 780px; margin-top: 32px; font-size: 16.5px; }
.post-body h2 { font-size: 25px; color: var(--navy); margin: 44px 0 14px; scroll-margin-top: 92px; }
.post-body h3 { font-size: 19px; color: var(--navy); margin: 30px 0 10px; scroll-margin-top: 92px; }
.post-body h4 { font-size: 17px; color: var(--navy); margin: 22px 0 8px; }
.post-body p { margin: 14px 0; }
.post-body ul, .post-body ol { margin: 14px 0 14px 22px; }
.post-body li { margin: 7px 0; }
.post-body blockquote { border-left: 3px solid var(--teal); background: var(--bg-soft); padding: 14px 20px; margin: 22px 0; color: var(--muted); border-radius: 0 8px 8px 0; }
.post-body code { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; font-size: .9em; }
.post-body pre { background: #0f1726; color: #e6edf6; border-radius: 10px; padding: 16px 18px; overflow-x: auto; margin: 22px 0; }
.post-body pre code { background: none; border: 0; padding: 0; color: inherit; font-size: 14px; }
.post-body img { max-width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); }
.post-body hr { border: 0; border-top: 1px solid var(--line); margin: 34px 0; }
.table-scroll { overflow-x: auto; margin: 22px 0; }
.post-body table { width: 100%; border-collapse: collapse; font-size: 15px; }
.post-body th, .post-body td { border: 1px solid var(--line); padding: 10px 13px; text-align: left; vertical-align: top; }
.post-body th { background: var(--bg-soft); color: var(--navy); white-space: nowrap; }

.toc { max-width: 780px; border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px; margin-top: 30px; background: #fff; }
.toc strong { color: var(--navy); font-size: 14px; }
.toc ol { margin: 10px 0 0 20px; color: var(--muted); font-size: 14.5px; }
.toc li { margin: 5px 0; }

.post-foot { max-width: 780px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--muted); }

section.cta-band { background: var(--navy); color: #fff; text-align: center; padding: 64px 0; }
section.cta-band h2 { color: #fff; font-size: 28px; margin-bottom: 10px; }
section.cta-band p { color: #cfd8e6; margin-bottom: 24px; }
/* 네이비 배경 위에서는 진한 틸이 묻힌다 — 브랜드 틸 배경 + 네이비 글씨 */
section.cta-band .btn-primary { background: var(--teal); color: var(--navy); }
section.cta-band .btn-primary:hover { background: #4ec6b9; }

footer { border-top: 1px solid var(--line); padding: 36px 0; font-size: 13.5px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center; justify-content: space-between; }

@media (max-width: 860px) {
  header.nav nav a:not(.cta) { display: none; }
  .post h1 { font-size: 26px; }
  .blog-head h1 { font-size: 26px; }
  .post-body { font-size: 16px; }
}
