/* 포털 블로그형 — 회색 바탕 위 흰 판, 나눔고딕 작은 글씨, 남색·밤색 포인트(특정 포털 브랜드색은 쓰지 않음) */
:root {
  --bg: #ECEAE6; --panel: #FFFFFF; --ink: #2B2B2B; --ink2: #555; --muted: #8E8E8E; --line: #E2E0DB; --line2: #CFCCC5;
  --navy: #34466B; --navy-d: #26344F; --brown: #8A5A3C; --soft: #F6F5F2;
  --font: 'Nanum Gothic', -apple-system, BlinkMacSystemFont, 'Malgun Gothic', sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 13.5px/1.6 var(--font); word-break: keep-all; overflow-wrap: anywhere; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, table { margin: 0; }

/* 위쪽 얇은 띠 */
.nb-top { background: var(--panel); border-bottom: 1px solid var(--line); }
.nb-top__in { max-width: 980px; margin: 0 auto; padding: 0 10px; height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.nb-top__brand { display: flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 800; font-size: 14px; white-space: nowrap; }
.nb-top__brand .brand__mark { width: 20px; height: 20px; color: var(--navy); }
.nb-top__nav { display: flex; }
.nb-top__nav a { padding: 4px 10px; font-size: 13px; text-decoration: none; color: var(--ink2); white-space: nowrap; border-left: 1px solid var(--line); }
.nb-top__nav a:first-child { border-left: 0; }
.nb-top__nav a:hover { text-decoration: underline; }
.nb-top__nav a.is-on { font-weight: 800; color: var(--navy); }

.nb-btn { display: inline-flex; align-items: center; justify-content: center; padding: 5px 10px; border: 1px solid var(--line2); border-radius: 2px; background: #fff; font-size: 12.5px; text-decoration: none; cursor: pointer; white-space: nowrap; }
.nb-btn:hover { background: var(--soft); }
.nb-btn--ink { background: var(--navy); border-color: var(--navy); color: #fff; }
.nb-btn--ink:hover { background: var(--navy-d); }
.nb-btn--big { padding: 10px 22px; font-size: 14px; font-weight: 700; }
.nb-empty { padding: 26px 0; text-align: center; color: var(--muted); }

/* 타이틀 띠 */
.nb-page { max-width: 980px; margin: 0 auto; padding: 0 10px 40px; }
.nb-title { position: relative; height: 170px; margin-top: 10px; overflow: hidden; background: #3A3A3A; }
.nb-title img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; opacity: .62; }
.nb-title__in { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding: 0 26px 22px; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.35); }
.nb-title__t { font-size: 27px; font-weight: 800; letter-spacing: -0.03em; }
.nb-title__s { font-size: 13.5px; opacity: .92; }

/* 2단 */
.nb-body { display: grid; grid-template-columns: 196px minmax(0, 1fr); gap: 10px; margin-top: 10px; align-items: start; }
.nb-side { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; min-width: 0; }
.nb-side > * { min-width: 0; background: var(--panel); border: 1px solid var(--line); padding: 14px; }
.nb-side__h { margin-bottom: 8px; padding-bottom: 6px; border-bottom: 1px solid var(--line); font-size: 12.5px; font-weight: 800; color: var(--ink2); }
.nb-prof__pic { width: 100%; aspect-ratio: 1; display: grid; place-items: center; background: var(--soft); border: 1px solid var(--line); }
.nb-prof__pic .brand__mark { width: 84px; height: 84px; color: var(--navy); }
.nb-prof__n { margin-top: 10px; font-size: 15px; font-weight: 800; }
.nb-prof__id { font-size: 12px; color: var(--muted); }
.nb-prof__bio { margin-top: 8px; font-size: 12.5px; color: var(--ink2); line-height: 1.6; }
.nb-prof__btns { display: flex; gap: 4px; margin-top: 10px; }
.nb-prof__btns .nb-btn { flex: 1; padding: 6px 2px; white-space: normal; }
.nb-cat__all { display: block; padding: 3px 0; font-weight: 800; text-decoration: none; }
.nb-cat ul { list-style: none; padding: 0 0 0 4px; margin: 2px 0 0; }
.nb-cat li a { display: block; padding: 3px 0 3px 12px; position: relative; text-decoration: none; color: var(--ink2); }
.nb-cat li a::before { content: ''; position: absolute; left: 2px; top: 6px; width: 5px; height: 6px; border-left: 1px solid var(--line2); border-bottom: 1px solid var(--line2); }
.nb-cat li a span { font-size: 11.5px; color: var(--brown); }
.nb-cat a:hover { text-decoration: underline; }
.nb-cat a.is-on { font-weight: 800; color: var(--navy); }
.nb-find { display: flex; gap: 4px; }
.nb-find input { flex: 1; width: 0; min-width: 0; padding: 5px 6px; border: 1px solid var(--line2); border-radius: 2px; font-size: 12.5px; outline: 0; }
.nb-find input:focus { border-color: var(--navy); }
.nb-tagcloud { display: flex; flex-wrap: wrap; gap: 3px 8px; font-size: 12.5px; }
.nb-tagcloud a { text-decoration: none; color: var(--ink2); }
.nb-tagcloud a:nth-child(3n+1) { font-size: 14px; font-weight: 700; }
.nb-tagcloud a:hover { text-decoration: underline; }
.nb-tagcloud a.is-on { color: var(--navy); font-weight: 800; }
.nb-visit p:not(.nb-side__h) { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--ink2); }
.nb-visit b { color: var(--brown); }

.nb-main { display: grid; gap: 10px; min-width: 0; }
.nb-filter { padding: 10px 14px; background: var(--soft); border: 1px solid var(--line); font-size: 13px; }
.nb-filter a { margin-left: 10px; color: var(--navy); }

/* 접히는 글 목록 */
.nb-list { background: var(--panel); border: 1px solid var(--line); }
.nb-list__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 16px; }
.nb-list__head b { font-size: 14px; }
.nb-list__head span { color: var(--brown); font-size: 12.5px; }
.nb-list__toggle { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border: 1px solid var(--line2); border-radius: 2px; background: #fff; font-size: 12px; cursor: pointer; white-space: nowrap; }
.nb-list__arrow { width: 7px; height: 7px; border-right: 1.5px solid var(--ink2); border-bottom: 1.5px solid var(--ink2); transform: rotate(45deg) translateY(-2px); }
.nb-list.is-open .nb-list__arrow { transform: rotate(-135deg) translateY(-1px); }
.nb-list__body { display: none; padding: 0 16px 12px; }
.nb-list.is-open .nb-list__body { display: block; }
.nb-table { width: 100%; border-collapse: collapse; border-top: 2px solid var(--ink2); font-size: 13px; }
.nb-table th { padding: 7px 6px; font-weight: 700; font-size: 12px; color: var(--muted); border-bottom: 1px solid var(--line); text-align: left; }
.nb-table td { padding: 7px 6px; border-bottom: 1px solid var(--line); }
.nb-table .nb-c { width: 92px; text-align: center; color: var(--muted); font-size: 12px; white-space: nowrap; }
.nb-table td a { text-decoration: none; }
.nb-table td a:hover { text-decoration: underline; }
.nb-table tr.is-cur td a { font-weight: 800; color: var(--navy); }
.nb-table small { font-size: 11px; color: var(--brown); }
.nb-pages { display: flex; justify-content: center; gap: 2px; margin-top: 10px; font-size: 13px; }
.nb-pages a, .nb-pages strong { min-width: 26px; padding: 2px 6px; text-align: center; text-decoration: none; border: 1px solid transparent; }
.nb-pages strong { border-color: var(--line2); color: var(--navy); }
.nb-pages a:hover { text-decoration: underline; }

/* 글 전문 */
.nb-post { background: var(--panel); border: 1px solid var(--line); padding: 34px 48px 30px; }
.nb-post__cat { display: inline-block; font-size: 12.5px; color: var(--brown); text-decoration: none; }
.nb-post__cat:hover { text-decoration: underline; }
.nb-post__t { margin-top: 6px; font-size: 25px; font-weight: 800; line-height: 1.4; letter-spacing: -0.03em; }
.nb-post__t a { text-decoration: none; }
.nb-post__by { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 10px; padding-bottom: 16px; border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.nb-post__by b { color: var(--ink); }
.nb-post__img { display: block; width: 100%; max-width: 600px; height: auto; margin: 28px auto 0; }
.nb-prose { margin-top: 26px; font-size: 15px; line-height: 1.95; text-align: center; color: #333; }
.nb-prose p, .nb-prose ul, .nb-prose ol { margin: 0 0 1.4em; }
.nb-prose h2 { margin: 1.8em 0 .7em; font-size: 18px; font-weight: 800; color: var(--navy); }
.nb-prose h2::before, .nb-prose h2::after { content: ''; display: inline-block; width: 18px; height: 1px; margin: 0 10px; vertical-align: middle; background: var(--line2); }
.nb-prose h3 { margin: 1.4em 0 .5em; font-size: 16px; font-weight: 800; }
.nb-prose ul, .nb-prose ol { display: table; margin-left: auto; margin-right: auto; text-align: left; padding-left: 1.3em; }
.nb-prose strong { font-weight: 800; background: #FBEFD9; }
.nb-prose a { color: var(--navy); }
.nb-orn { display: flex; justify-content: center; gap: 8px; margin: 20px 0; }
.nb-orn span { width: 5px; height: 5px; border-radius: 50%; background: var(--line2); }
.nb-post__tags { display: flex; flex-wrap: wrap; gap: 4px 10px; justify-content: center; font-size: 13px; }
.nb-post__tags a { color: var(--navy); text-decoration: none; }
.nb-post__tags a:hover { text-decoration: underline; }
.nb-post__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 22px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.nb-like, .nb-act { display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px; border: 1px solid var(--line2); border-radius: 2px; background: #fff; font-size: 12.5px; cursor: pointer; text-decoration: none; }
.nb-like:hover, .nb-act:hover { background: var(--soft); }
.nb-like b { color: var(--brown); }
.nb-like__ic::before { content: '\2661'; color: var(--brown); font-size: 14px; line-height: 1; }
.nb-like.is-on { border-color: var(--brown); background: #F8EEE6; }
.nb-like.is-on .nb-like__ic::before { content: '\2665'; }
.nb-act--cta { margin-left: auto; color: var(--navy); font-weight: 700; }
.nb-cta { display: flex; align-items: center; gap: 14px; margin-top: 16px; padding: 14px 16px; background: var(--soft); border: 1px solid var(--line); font-size: 13px; color: var(--ink2); }
.nb-cta p { flex: 1; }
.nb-cta b { color: var(--ink); }
.nb-same { margin-top: 22px; }
.nb-same__h { font-size: 13px; margin-bottom: 6px; }
.nb-same__h b { color: var(--navy); }
.nb-same ul { list-style: none; padding: 0; border-top: 1px solid var(--ink2); }
.nb-same li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 4px; border-bottom: 1px solid var(--line); font-size: 13px; }
.nb-same li a { text-decoration: none; }
.nb-same li a:hover { text-decoration: underline; }
.nb-same li.is-cur span { font-weight: 800; }
.nb-same small { color: var(--muted); white-space: nowrap; }
.nb-pn { display: grid; background: var(--panel); border: 1px solid var(--line); }
.nb-pn a { display: flex; gap: 14px; padding: 10px 16px; font-size: 13px; text-decoration: none; border-bottom: 1px solid var(--line); }
.nb-pn a:last-child { border-bottom: 0; }
.nb-pn a:hover { text-decoration: underline; }
.nb-pn small { width: 46px; flex: none; color: var(--muted); }
.nb-pn > span { display: none; }

/* 상담 */
.nb-from { margin-top: 14px; padding: 9px 12px; background: var(--soft); font-size: 13px; }
.nb-from a { color: var(--navy); font-weight: 700; }
.nb-form { width: 100%; margin-top: 20px; border-collapse: collapse; border-top: 2px solid var(--ink2); }
.nb-form th { width: 120px; padding: 10px 12px; background: var(--soft); border-bottom: 1px solid var(--line); text-align: left; font-size: 13px; font-weight: 700; vertical-align: top; }
.nb-form td { padding: 8px 12px; border-bottom: 1px solid var(--line); }
.nb-form input, .nb-form select, .nb-form textarea { width: 100%; padding: 7px 8px; border: 1px solid var(--line2); border-radius: 2px; font-size: 14px; outline: 0; background: #fff; }
.nb-form textarea { resize: vertical; }
.nb-form input:focus, .nb-form select:focus, .nb-form textarea:focus { border-color: var(--navy); }
.nb-err { margin-top: 10px; color: #B23B2E; font-size: 13px; text-align: center; }
.nb-err:empty { display: none; }
.nb-form__btns { display: flex; justify-content: center; gap: 6px; margin-top: 20px; flex-wrap: wrap; }
.nb-hint { margin-top: 10px; text-align: center; font-size: 12px; color: var(--muted); }
.nb-thanks { text-align: center; }
.nb-thanks .nb-post__by { justify-content: center; }

/* 바닥글 */
.nb-foot__in { max-width: 980px; margin: 0 auto; padding: 18px 10px 30px; display: flex; align-items: center; gap: 16px; font-size: 12px; color: var(--muted); }
.nb-foot__in p { flex: 1; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); padding: 9px 16px; border-radius: 2px; background: #333; color: #fff; font-size: 13px; opacity: 0; pointer-events: none; transition: .2s; z-index: 50; white-space: nowrap; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 760px) {
  .nb-page { padding: 0 0 30px; }
  .nb-title { height: 120px; margin-top: 0; }
  .nb-title__in { padding: 0 16px 14px; }
  .nb-title__t { font-size: 21px; }
  .nb-body { grid-template-columns: minmax(0, 1fr); gap: 8px; margin-top: 0; }
  .nb-side { gap: 0; }
  .nb-side > * { border-left: 0; border-right: 0; border-top: 0; padding: 12px 16px; }
  .nb-prof { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 4px 12px; }
  .nb-prof__pic { width: 64px; height: 64px; }
  .nb-prof__pic .brand__mark { width: 36px; height: 36px; }
  .nb-prof__n { margin-top: 2px; }
  .nb-prof__bio { display: none; }
  .nb-prof__btns { grid-column: 1 / -1; }
  .nb-cat .nb-side__h { display: none; }
  .nb-cat { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
  .nb-cat::-webkit-scrollbar { display: none; }
  .nb-cat ul { display: flex; gap: 6px; padding: 0; margin: 0; }
  .nb-cat__all, .nb-cat li a { padding: 5px 11px; border: 1px solid var(--line2); border-radius: 99px; white-space: nowrap; font-size: 12.5px; }
  .nb-cat li a::before { display: none; }
  .nb-cat a.is-on { background: var(--navy); border-color: var(--navy); color: #fff; }
  .nb-cat a.is-on span { color: #fff; }
  .nb-widget { display: none; }
  .nb-main { gap: 8px; }
  .nb-list, .nb-post, .nb-pn, .nb-filter { border-left: 0; border-right: 0; }
  .nb-list__head { padding: 10px 16px; }
  .nb-table thead { display: none; }
  .nb-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 0 8px; padding: 8px 2px; border-bottom: 1px solid var(--line); }
  .nb-table td { padding: 0; border: 0; }
  .nb-table td:first-child { grid-column: 1 / -1; }
  .nb-table .nb-c { width: auto; text-align: left; }
  .nb-post { padding: 24px 16px; }
  .nb-post__t { font-size: 21px; }
  .nb-prose { font-size: 14.5px; }
  .nb-act--cta { margin-left: 0; }
  .nb-cta { flex-direction: column; align-items: stretch; }
  .nb-form th, .nb-form td { display: block; width: auto; }
  .nb-form th { padding: 8px 10px 4px; border-bottom: 0; }
  .nb-foot__in { flex-direction: column; align-items: flex-start; padding: 18px 16px 30px; }
}
