﻿
* { box-sizing: border-box; }
body { margin: 0; font-family: 'Noto Sans KR', 'Apple SD Gothic Neo', -apple-system, sans-serif; background: #fafafa; color: #222; line-height: 1.75; -webkit-font-smoothing: antialiased; }
a { color: #1a3a6c; text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: 1fr 240px; gap: 40px; }
@media (max-width: 760px) { .wrap { grid-template-columns: 1fr; } }
header.site { background: #16233a; color: #fff; padding: 36px 20px; margin-bottom: 36px; }
header.site .inner { max-width: 980px; margin: 0 auto; }
header.site h1 { margin: 0 0 6px; font-size: 24px; font-weight: 400; letter-spacing: 2px; }
header.site h1 a { color: #fff; }
header.site .desc { font-size: 13px; opacity: 0.6; letter-spacing: 1px; }
header.site nav { margin-top: 18px; }
header.site nav a { color: #e8ecf2; font-size: 13px; margin-right: 18px; letter-spacing: 0.5px; }
header.site nav a:hover { color: #fff; }
main { min-width: 0; }
aside { font-size: 13px; }
aside .widget { margin-bottom: 36px; padding-bottom: 24px; border-bottom: 1px solid #eee; }
aside h3 { font-size: 11px; letter-spacing: 2px; color: #888; margin: 0 0 14px; text-transform: uppercase; font-weight: 600; }
aside ul { list-style: none; padding: 0; margin: 0; }
aside li { margin-bottom: 6px; }
aside li a { color: #444; }
aside li a:hover { color: #1a3a6c; }
aside .count { color: #999; font-size: 11px; margin-left: 4px; }
article { background: #fff; padding: 36px 40px; margin-bottom: 20px; border: 1px solid #eee; }
article h2 { margin: 0 0 8px; font-size: 20px; font-weight: 500; }
article h2 a { color: #16233a; }
article .meta { font-size: 12px; color: #888; margin-bottom: 20px; letter-spacing: 0.5px; }
article .meta .cat { color: #1a3a6c; font-weight: 500; }
article .body { font-size: 15px; word-break: break-word; }

/* ⭐ 줄바꿈 수정 핵심 ⭐ */
article .body p { margin: 0 0 1.2em; }
article .body p:last-child { margin-bottom: 0; }
article .body img { display: block; max-width: 100%; height: auto; margin: 1em 0; }
article .body br { content: ''; display: block; margin: 0.3em 0; }
article .body a img { display: block; margin: 1em 0; }

article.full h2 { font-size: 26px; margin-bottom: 14px; }
article.full .body { font-size: 15.5px; }
.list-item { background: #fff; padding: 24px 32px; margin-bottom: 10px; border: 1px solid #eee; transition: border-color .2s; }
.list-item:hover { border-color: #1a3a6c; }
.list-item h3 { margin: 0 0 6px; font-size: 16px; font-weight: 500; }
.list-item h3 a { color: #16233a; }
.list-item .meta { font-size: 11px; color: #999; letter-spacing: 0.3px; }
.pagination { text-align: center; padding: 30px 0 60px; font-size: 13px; }
.pagination a, .pagination span { padding: 8px 14px; margin: 0 2px; display: inline-block; border: 1px solid #ddd; color: #444; }
.pagination a:hover { background: #16233a; color: #fff; border-color: #16233a; text-decoration: none; }
.pagination .current { background: #16233a; color: #fff; border-color: #16233a; }
footer.site { text-align: center; padding: 40px 20px; color: #999; font-size: 12px; margin-top: 60px; border-top: 1px solid #eee; }
.post-nav { display: flex; justify-content: space-between; padding: 20px 0; margin-bottom: 40px; font-size: 13px; }
.post-nav a { color: #666; }
h1.page-title { font-size: 22px; font-weight: 400; margin: 0 0 24px; color: #16233a; letter-spacing: 0.5px; }
