/* nb-skin.css — NB Document Tools (nb12.mhna98.com) 사이트 전용 스킨. 생성: _shared/skins/make_skins.py — 직접 고치지 말고 생성기를 고친다 */
/* 콘셉트: 종이 문서 — 밝은 종이 바탕 + 모눈 + 번호 카드 | hero=split card=index sect=open win=page motif=grid */
:root { --sk-head: "Noto Serif KR", Pretendard, "Malgun Gothic", sans-serif; --sk-r: 14px; }
html:not([data-theme="light"]) { --dark: #0a0a0b; }
.hero h1, .tools-head h2, .channel-hub > h2, .ws-head h3, .site-blueprint h2, .brand strong, .ft-brand strong, main.latest-posts > article > h1, main.latest-posts > article h2, .affiliate-deals .section-head > span, .latest-posts > .section-head > span, .blog-thumb strong, .nbp-win b { font-family: var(--sk-head) !important; }
html:not([data-theme="light"]) body { background: linear-gradient(color-mix(in srgb, var(--text), transparent 94%) 1px, transparent 1px) 0 0/34px 34px, linear-gradient(90deg, color-mix(in srgb, var(--text), transparent 94%) 1px, transparent 1px) 0 0/34px 34px, radial-gradient(1100px 520px at 85% -5%, color-mix(in srgb, var(--brand), transparent 80%), transparent 60%), var(--dark) !important; }
html[data-theme="light"] body { background: linear-gradient(color-mix(in srgb, var(--text), transparent 94%) 1px, transparent 1px) 0 0/34px 34px, linear-gradient(90deg, color-mix(in srgb, var(--text), transparent 94%) 1px, transparent 1px) 0 0/34px 34px, radial-gradient(1100px 520px at 85% -5%, color-mix(in srgb, var(--brand), transparent 86%), transparent 60%), #f6f4ef !important; }
html[data-theme="light"] .hero-art .art-card { background: #fff; }
html[data-theme="light"] :is(.latest-posts, .channel-hub, .tools-section, .affiliate-deals) { background: rgba(255, 255, 255, 0.72); }
body:has(.site-header) :is(.latest-posts, .channel-hub, .tools-section, .affiliate-deals) { border-radius: calc(var(--sk-r) + 6px) !important; }
body .tool-grid > .tool-card, body .blog-mini, body .workspace-panel { border-radius: var(--sk-r) !important; }
body .hero .hero-grid { text-align: left; }
body .hero .hero-copy { max-width: none; margin: 0; }
body .hero .hero-copy > p:not(.eyebrow) { margin-left: 0; margin-right: 0; }
body .hero .hero-actions, body .hero .hero-stats { justify-content: flex-start; }

@media (min-width: 861px) { body .hero .hero-grid { grid-template-columns: minmax(0, 0.95fr) minmax(340px, 1fr); } }
/* 번호 카드: 위 액센트 선 + 큰 번호 */
body .tool-grid { counter-reset: nbtool; }
body .tool-grid > .tool-card { counter-increment: nbtool; border-top: 3px solid var(--brand) !important; }
body .tool-grid > .tool-card::after {
  content: counter(nbtool, decimal-leading-zero); position: absolute; right: 14px; bottom: 6px;
  font: 400 32px/1 var(--sk-head); color: color-mix(in srgb, var(--text), transparent 86%); pointer-events: none;
}
@media (max-width: 640px) { body .tool-grid > .tool-card::after { font-size: 22px; right: 8px; bottom: 4px; } }
/* 열린 섹션: 상자 없이 굵은 위 선 + 왼쪽 정렬 머리글 */
body:has(.site-header) :is(.latest-posts, .channel-hub, .tools-section, .affiliate-deals) {
  background: transparent !important; border: 0 !important; border-top: 2px solid color-mix(in srgb, var(--text), transparent 70%) !important;
  border-radius: 0 !important; box-shadow: none !important; padding-left: 0 !important; padding-right: 0 !important;
}
body:has(.site-header) .tools-section::before { display: none !important; }
body:has(.site-header) .tools-head { text-align: left !important; }
body:has(.site-header) .tools-head h2 { margin-top: 12px; }
/* 종이 한 장: 밝은 지면 + 줄 */
.nbp-art .art-card.one { background: #fbfaf7 !important; border-color: transparent !important; color: #17181b; }
.nbp-art .art-card.one .nbp-win b { color: #17181b !important; }
.nbp-art .art-card.one .nbp-win > i { display: none; }
.nbp-art .art-card.one .nbp-win b { margin-left: 0; }
.nbp-art .art-card.one .nbp-rows span { background: #dedbd2 !important; height: 6px; }
.nbp-art .art-card.one .nbp-rows span:first-child { background: color-mix(in srgb, var(--brand), #fff 35%) !important; }
.nbp-art .art-card.one .nbp-bars span { opacity: 0.35; background: #cfcabd !important; box-shadow: none !important; }
.nbp-art .art-card.one .nbp-bars span:nth-child(4) { opacity: 1; background: var(--brand) !important; }
.nbp-art .art-card.one .nbp-bars { border-bottom-color: #e4e0d6; }
.hero .eyebrow::before { width: 14px; height: 18px; border-radius: 2px; background: none; border: 2px solid var(--brand); }
@media (prefers-reduced-motion: reduce) { .nbp-art .nbp-rows::before, .hero .eyebrow::before { animation: none !important; } }
html.perf-lite .nbp-art .nbp-rows::before, html.perf-lite .hero .eyebrow::before { animation: none !important; }
