/* ===== 지식베이스 첫 화면 (2026 리뉴얼) ===== */
.nc-kb-hero { padding: 56px 0 60px; }
.nc-kb-search { display: flex; margin-top: 28px; max-width: 720px; background: #fff; border-radius: 6px; overflow: hidden; box-shadow: 0 16px 36px -18px rgba(0,0,0,.6); }
.nc-kb-search input { flex: 1; min-width: 0; border: 0; font: inherit; font-size: 17px; color: var(--nc-ink); padding: 17px 20px; outline: none; background: none; }
.nc-kb-search input::placeholder { color: #8a93aa; }
.nc-kb-search button { border: 0; background: var(--nc-gold); color: #1b1405; font: inherit; font-size: 16px; font-weight: 700; padding: 0 28px; cursor: pointer; }
.nc-kb-search button:hover { background: var(--nc-gold-hi); }
.nc-kb-search:focus-within { box-shadow: 0 0 0 3px rgba(212,166,74,.45), 0 16px 36px -18px rgba(0,0,0,.6); }

.nc-kb-err { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.nc-kb-err label { font-size: 14px; color: var(--nc-on-night-sub); }
.nc-kb-err input { width: 120px; font-family: var(--nc-mono); font-size: 15px; color: #fff; background: var(--nc-night-2); border: 1px solid var(--nc-night-line); border-radius: 4px; padding: 7px 10px; outline: none; }
.nc-kb-err input:focus { border-color: var(--nc-gold); }
.nc-kb-err input::placeholder { color: #6f7c9c; }
.nc-kb-err button { font: inherit; font-size: 14px; font-weight: 500; color: var(--nc-gold-hi); background: none; border: 1px solid rgba(212,166,74,.55); border-radius: 4px; padding: 7px 14px; cursor: pointer; }
.nc-kb-err button:hover { border-color: var(--nc-gold-hi); color: #fff; }

.nc-kb { background: var(--nc-mist); padding: 48px 0 72px; }
.nc-kb-sec + .nc-kb-sec, .nc-kb-lists { margin-top: 40px; }
.nc-kb-h2 { font-family: var(--nc-serif); font-size: 24px; font-weight: 700; color: var(--nc-ink); margin-bottom: 16px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.nc-kb-h2 .nc-link { font-family: var(--nc-sans); font-size: 14px; }

/* 상황별로 찾기 */
.nc-kb-topics { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.nc-kb-topic { background: #fff; border: 1px solid var(--nc-line); border-radius: 6px; display: flex; flex-direction: column; overflow: hidden; }
.nc-kb-topic-head { display: block; padding: 20px 22px 16px; color: var(--nc-ink); text-decoration: none; border-bottom: 1px solid var(--nc-line); }
.nc-kb-topic-head:hover { text-decoration: none; background: #fafbfd; }
.nc-kb-topic-head h3 { font-size: 18px; font-weight: 700; color: var(--nc-ink); }
.nc-kb-topic-head p { font-size: 14px; color: var(--nc-sub); margin-top: 4px; }
.nc-kb-topic ul { list-style: none; padding: 6px 0; }
.nc-kb-topic li a { display: flex; justify-content: space-between; align-items: center; padding: 10px 22px; font-size: 15px; color: var(--nc-ink); }
.nc-kb-topic li a::after { content: ""; width: 7px; height: 7px; border-top: 1.5px solid #9aa3b7; border-right: 1.5px solid #9aa3b7; transform: rotate(45deg); flex-shrink: 0; }
.nc-kb-topic li a:hover { background: var(--nc-mist); color: var(--nc-navy); text-decoration: none; }
.nc-kb-topic-manual { background: var(--nc-night); border-color: var(--nc-night); text-decoration: none; }
.nc-kb-topic-manual:hover { text-decoration: none; }
.nc-kb-topic-manual .nc-kb-topic-head { border-bottom-color: var(--nc-night-line); }
.nc-kb-topic-manual .nc-kb-topic-head:hover { background: none; }
.nc-kb-topic-manual h3 { color: #fff; }
.nc-kb-topic-manual p { color: var(--nc-on-night-sub); }
.nc-kb-topic-platforms { display: block; padding: 14px 22px; font-size: 14px; color: var(--nc-gold-hi); margin-top: auto; }
.nc-kb-topic-manual:hover .nc-kb-topic-platforms { color: #fff; }

/* 문서 목록 */
.nc-kb-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.nc-kb-lists .nc-kb-sec + .nc-kb-sec { margin-top: 0; }
.nc-kb-list { list-style: none; background: #fff; border: 1px solid var(--nc-line); border-radius: 6px; counter-reset: rank; }
.nc-kb-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 13px 20px; border-bottom: 1px solid var(--nc-line); counter-increment: rank; }
.nc-kb-list li:last-child { border-bottom: 0; }
.nc-kb-list a { color: var(--nc-ink); font-size: 15px; }
.nc-kb-list a:hover { color: var(--nc-navy); }
.nc-kb-list.is-ranked li { justify-content: flex-start; }
.nc-kb-list.is-ranked li::before { content: counter(rank); font-family: var(--nc-mono); font-size: 13px; color: #9a7522; min-width: 18px; }
.nc-kb-date { font-family: var(--nc-mono); font-size: 13px; color: var(--nc-sub); flex-shrink: 0; font-variant-numeric: tabular-nums; }
.nc-kb-empty { color: var(--nc-sub); }

/* ===== 분류 페이지 (/kb/category/…) ===== */
.nc-kbc-hero { padding: 40px 0 48px; }
.nc-kbc-crumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--nc-on-night-sub); }
.nc-kbc-crumb a { color: var(--nc-gold-hi); }
.nc-kbc-crumb a:hover { color: #fff; text-decoration: none; }
.nc-kbc-hero .nc-kb-search { margin-top: 24px; max-width: 560px; }
.nc-kbc-hero .nc-kb-search input { font-size: 16px; padding: 14px 18px; }

.nc-kbc-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.nc-kbc-tabs a { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; color: var(--nc-ink); background: #fff; border: 1px solid var(--nc-line); border-radius: 999px; padding: 8px 16px; }
.nc-kbc-tabs a:hover { border-color: var(--nc-navy); color: var(--nc-navy); text-decoration: none; }
.nc-kbc-tabs a span { font-family: var(--nc-mono); font-size: 12.5px; color: var(--nc-sub); }
.nc-kbc-tabs a.is-current { background: var(--nc-night); border-color: var(--nc-night); color: #fff; font-weight: 700; }

.nc-kb .nc-kb-sec { scroll-margin-top: calc(var(--nc-header-h) + 16px); }
.nc-kbc-h2-link { color: var(--nc-ink); }
.nc-kbc-h2-link:hover { color: var(--nc-navy); text-decoration: none; }

.nc-kbc-docs { list-style: none; background: #fff; border: 1px solid var(--nc-line); border-radius: 6px; }
.nc-kbc-docs li + li { border-top: 1px solid var(--nc-line); }
.nc-kbc-docs a { display: grid; grid-template-columns: 1fr auto; column-gap: 16px; align-items: center; padding: 15px 20px; color: var(--nc-ink); }
.nc-kbc-docs a::after { content: ""; grid-column: 2; grid-row: 1 / span 2; width: 7px; height: 7px; border-top: 1.5px solid #9aa3b7; border-right: 1.5px solid #9aa3b7; transform: rotate(45deg); }
.nc-kbc-docs a:hover { background: #fafbfd; text-decoration: none; }
.nc-kbc-docs a:hover .nc-kbc-doc-title { color: var(--nc-navy); }
.nc-kbc-doc-title { font-size: 16px; font-weight: 500; }
.nc-kbc-doc-sum { grid-column: 1; font-size: 14px; color: var(--nc-sub); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nc-kbc-pin { display: inline-block; font-size: 12px; font-weight: 700; color: #1b1405; background: var(--nc-gold); border-radius: 3px; padding: 1px 7px; margin-right: 6px; vertical-align: 2px; }

/* ===== 검색 · 기기별 · 태그별 (/kb/search) ===== */
.nc-kbs-hero h1 { overflow-wrap: anywhere; }
.nc-kbs-manual { display: flex; justify-content: space-between; align-items: center; gap: 16px; background: var(--nc-night); border-radius: 6px; padding: 18px 24px; margin-bottom: 36px; color: #fff; }
.nc-kbs-manual:hover { text-decoration: none; background: var(--nc-night-2); }
.nc-kbs-manual strong { display: block; font-size: 16.5px; }
.nc-kbs-manual strong + span { display: block; font-size: 14px; color: var(--nc-on-night-sub); margin-top: 2px; }
.nc-kbs-manual-go { flex-shrink: 0; font-size: 14.5px; font-weight: 700; color: var(--nc-gold-hi); }
.nc-kbs-manual-go::after { content: " →"; }
.nc-kbs-cat { grid-column: 1; font-size: 12.5px; font-weight: 500; color: #9a7522; margin-bottom: 1px; }
.nc-kbs-results a::after { grid-row: 1 / span 3; }
.nc-kbs-results mark { background: rgba(212,166,74,.28); color: inherit; border-radius: 2px; padding: 0 1px; }
.nc-kbs-note { color: var(--nc-sub); font-size: 16px; }
.nc-kbs-empty { background: #fff; border: 1px solid var(--nc-line); border-radius: 6px; padding: 28px; }
.nc-kbs-empty h2 { font-size: 18px; font-weight: 700; color: var(--nc-ink); overflow-wrap: anywhere; }
.nc-kbs-empty p { color: var(--nc-sub); margin-top: 6px; }
.nc-kbs-empty + .nc-kb-sec, .nc-kbs-note + .nc-kb-sec { margin-top: 40px; }

/* ===== 문서 본문 (/kb/{id}) ===== */
.nc-kba-hero h1 { font-size: clamp(26px, 3vw, 36px); max-width: 24em; }
.nc-kba-internal { display: inline-block; margin-top: 16px; font-size: 12.5px; font-weight: 700; color: #1b1405; background: var(--nc-gold-hi); border-radius: 3px; padding: 2px 9px; }
.nc-kba-internal + h1 { margin-top: 8px; }
.nc-kba-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 20px; font-size: 14px; color: var(--nc-on-night-sub); }
.nc-kba-date { font-family: var(--nc-mono); font-size: 13.5px; font-variant-numeric: tabular-nums; }
.nc-kba-platforms { display: flex; flex-wrap: wrap; gap: 6px; }
.nc-kba-platforms a { font-size: 13px; color: var(--nc-on-night); border: 1px solid var(--nc-night-line); border-radius: 999px; padding: 2px 11px; }
.nc-kba-platforms a:hover { border-color: var(--nc-gold); color: #fff; text-decoration: none; }
.nc-kba-copy { margin-left: auto; font: inherit; font-size: 13px; color: var(--nc-gold-hi); background: none; border: 1px solid rgba(212,166,74,.55); border-radius: 4px; padding: 5px 12px; cursor: pointer; }
.nc-kba-copy:hover { background: none; border-color: var(--nc-gold-hi); color: #fff; }

.nc-kba-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: start; }
.nc-kba { background: #fff; border: 1px solid var(--nc-line); border-radius: 6px; padding: 36px 40px; min-width: 0; }

/* 본문 글자 (TOAST UI 뷰어 기본값 덮어쓰기) */
.nc-kba-body .toastui-editor-contents { font-size: 16.5px !important; line-height: 1.85; color: var(--nc-ink); word-break: keep-all; overflow-wrap: anywhere; }
.nc-kba-body .toastui-editor-contents > :first-child { margin-top: 0 !important; }
.nc-kba-body .toastui-editor-contents h1,
.nc-kba-body .toastui-editor-contents h2 { font-size: 22px; font-weight: 700; color: var(--nc-ink); border-bottom: 0; padding-bottom: 0; margin: 1.8em 0 .6em !important; line-height: 1.4; }
.nc-kba-body .toastui-editor-contents h3 { font-size: 19px; font-weight: 700; color: var(--nc-ink); margin: 1.6em 0 .5em !important; }
.nc-kba-body .toastui-editor-contents p { margin: .9em 0 !important; color: var(--nc-ink); }
.nc-kba-body .toastui-editor-contents a { color: var(--nc-navy); text-decoration: underline; text-underline-offset: 3px; }
.nc-kba-body .toastui-editor-contents ul,
.nc-kba-body .toastui-editor-contents ol { margin: .9em 0; padding-left: 1.4em; }
.nc-kba-body .toastui-editor-contents li { margin: .35em 0; color: var(--nc-ink); }
.nc-kba-body .toastui-editor-contents ol > li::before { color: #9a7522; font-weight: 700; }
.nc-kba-body .toastui-editor-contents ul > li::before { background-color: #9aa3b7; }
.nc-kba-body .toastui-editor-contents blockquote { margin: 1.2em 0; padding: 14px 20px; background: var(--nc-mist); border-left: 3px solid var(--nc-gold); border-radius: 0 4px 4px 0; color: var(--nc-ink); }
.nc-kba-body .toastui-editor-contents blockquote p,
.nc-kba-body .toastui-editor-contents blockquote li { color: var(--nc-ink); }
.nc-kba-body .toastui-editor-contents blockquote > :first-child { margin-top: 0 !important; }
.nc-kba-body .toastui-editor-contents blockquote > :last-child { margin-bottom: 0 !important; }
.nc-kba-body .toastui-editor-contents hr { border: 0; border-top: 1px solid var(--nc-line); margin: 2em 0; }
.nc-kba-body .toastui-editor-contents img { max-width: 100%; height: auto; vertical-align: middle; }
.nc-kba-body .toastui-editor-contents img:not([width]) { border: 1px solid var(--nc-line); border-radius: 4px; margin: 8px 0; }
.nc-kba-body .toastui-editor-contents table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: 1.2em 0; }
.nc-kba-body .toastui-editor-contents th { background: var(--nc-mist); color: var(--nc-ink); font-weight: 700; }
.nc-kba-body .toastui-editor-contents th,
.nc-kba-body .toastui-editor-contents td { border: 1px solid var(--nc-line); padding: 8px 12px; }
.nc-kba-body .toastui-editor-contents pre { overflow-x: auto; }

.nc-kba-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.nc-kba-tags a { font-size: 13.5px; color: var(--nc-sub); background: var(--nc-mist); border-radius: 3px; padding: 3px 10px; }
.nc-kba-tags a:hover { color: var(--nc-navy); text-decoration: none; }

.nc-kba-helpful { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--nc-line); text-align: left; background: none; border-radius: 0; }
.nc-kba-helpful .nc-kba-helpful-q { font-size: 17px; font-weight: 700; color: var(--nc-ink); margin-bottom: 12px; }
.nc-kba-helpful .kb-helpful-buttons { justify-content: flex-start; gap: 10px; }
.nc-kba-helpful .btn-helpful { font: inherit; font-size: 15px; font-weight: 500; color: var(--nc-ink); background: #fff; border: 1px solid #c3cad8; border-radius: 4px; padding: 9px 18px; }
.nc-kba-helpful .btn-helpful:not([disabled]):hover { border-color: var(--nc-navy); color: var(--nc-navy); }
.nc-kba-helpful .btn-helpful[disabled] { opacity: .55; cursor: default; }
.nc-kba-helpful .btn-helpful.is-chosen { opacity: 1; border-color: var(--nc-navy); color: var(--nc-navy); font-weight: 700; }
.nc-kba-helpful .kb-helpful-msg { margin: 12px 0 0; font-size: 14.5px; font-weight: 500; }
.nc-kba-helpful-next { margin-top: 14px; padding: 14px 18px; background: var(--nc-mist); border-radius: 4px; font-size: 15px; color: var(--nc-ink); }
.nc-kba-helpful-next a { color: var(--nc-navy); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

.nc-kba-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: calc(var(--nc-header-h) + 24px); }
.nc-kba-side > section { background: #fff; border: 1px solid var(--nc-line); border-radius: 6px; padding: 20px 22px; }
.nc-kba-side-h { font-size: 15px; font-weight: 700; color: var(--nc-ink); margin-bottom: 8px; }
.nc-kba-related { list-style: none; margin-bottom: 14px; }
.nc-kba-related li + li { border-top: 1px solid var(--nc-line); }
.nc-kba-related a { display: block; padding: 10px 0; font-size: 14.5px; line-height: 1.5; color: var(--nc-ink); }
.nc-kba-related a:hover { color: var(--nc-navy); text-decoration: none; }
.nc-kba-side .nc-link { font-size: 13.5px; }
.nc-kba-manual { display: block; background: var(--nc-night); border-radius: 6px; padding: 18px 22px; color: #fff; }
.nc-kba-manual:hover { text-decoration: none; background: var(--nc-night-2); }
.nc-kba-manual strong { display: block; font-size: 15.5px; }
.nc-kba-manual span { display: block; font-size: 13.5px; color: var(--nc-gold-hi); margin-top: 2px; }

@media (max-width: 960px) {
    .nc-kba-grid { grid-template-columns: minmax(0, 1fr); }
    .nc-kba-side { position: static; }
}
@media (max-width: 760px) {
    .nc-kb-lists { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .nc-kbc-hero { padding: 32px 0 36px; }
    .nc-kbc-tabs { flex-wrap: nowrap; overflow-x: auto; margin: 0 -18px 28px; padding: 0 18px; scrollbar-width: none; }
    .nc-kbc-tabs a { flex-shrink: 0; }
    .nc-kbc-doc-sum { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
    .nc-kbs-manual { flex-direction: column; align-items: flex-start; gap: 8px; padding: 16px 18px; margin-bottom: 28px; }
    .nc-kba-page .nc-wrap { padding: 0 12px; }
    .nc-kba { padding: 24px 18px; }
    .nc-kba-body .toastui-editor-contents { font-size: 16px !important; }
    .nc-kba-copy { margin-left: 0; }
}
@media (max-width: 560px) {
    .nc-kb-hero { padding: 40px 0 44px; }
    .nc-kb-search input { font-size: 16px; padding: 15px 14px; }
    .nc-kb-search button { padding: 0 18px; }
    .nc-kb { padding: 32px 0 56px; }
}
