/* nb-skin.css — NB Blog Tools (nb8.mhna98.com) 사이트 전용 스킨. 생성: _shared/skins/make_skins.py — 직접 고치지 말고 생성기를 고친다 */
/* 콘셉트: 매거진 지면 — 명조 대형 제목 + 번호 붙은 목차 카드 | hero=editorial card=index sect=open win=page motif=lines */
:root { --sk-head: "Nanum Myeongjo", Pretendard, "Malgun Gothic", sans-serif; --sk-r: 14px; }
html:not([data-theme="light"]) { --dark: #0b0907; }
.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: repeating-linear-gradient(0deg, color-mix(in srgb, var(--text), transparent 94%) 0 1px, transparent 1px 32px), 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: repeating-linear-gradient(0deg, color-mix(in srgb, var(--text), transparent 94%) 0 1px, transparent 1px 32px), radial-gradient(1100px 520px at 85% -5%, color-mix(in srgb, var(--brand), transparent 86%), transparent 60%), #f5f6f9 !important; }
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, 1.2fr) minmax(320px, 0.8fr);
    grid-template-areas: "eb eb" "h1 h1" "p art" "act art" "st art";
    column-gap: 56px; row-gap: 0; align-items: start;
  }
  body .hero .hero-copy { display: contents; }
  body .hero .hero-copy > .eyebrow { grid-area: eb; }
  body .hero .hero-grid h1 { grid-area: h1; font-size: clamp(44px, 6.4vw, 88px) !important; line-height: 1.04 !important; margin-bottom: 28px; }
  body .hero .hero-copy > p:not(.eyebrow) { grid-area: p; }
  body .hero .hero-actions { grid-area: act; }
  body .hero .hero-stats { grid-area: st; }
  body .hero .hero-art { grid-area: art; min-height: 300px; align-self: stretch; }
}
/* 번호 카드: 위 액센트 선 + 큰 번호 */
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 { font-family: var(--sk-head); letter-spacing: 0.2em; }
body .hero .hero-grid h1 { font-weight: 800 !important; }
.blog-mini > .blog-thumb strong { font-size: 17px !important; }
@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; }
