/* nb-skin.css — NB Food Tools (nb17.mhna98.com) 사이트 전용 스킨. 생성: _shared/skins/make_skins.py — 직접 고치지 말고 생성기를 고친다 */
/* 콘셉트: 레시피 카드 — 밝은 버터 바탕 + 포스터 띠 + 번호 레시피 카드 | hero=poster card=index sect=panel win=page motif=dots */
:root { --sk-head: "Jua", Pretendard, "Malgun Gothic", sans-serif; --sk-r: 24px; }
:root { --sk-on: #c0480a; --sk-onA: #65591c; --sk-txd: #f29b6d; --sk-txl: #9a3a08; } /* 대비 안전 색(흰 글자 면·다크/라이트 글자) — 생성기가 브랜드색에서 계산 */
html:not([data-theme="light"]) { --dark: #0d0905; }
.hero h1, .tools-head h2, .channel-hub > h2, .nb-channel-intro h2, .deals-head 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; }
.hero h1, .tools-head h2, .channel-hub > h2, .nb-channel-intro h2, .deals-head 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-weight: 400 !important; letter-spacing: -0.005em !important; }
html:not([data-theme="light"]) body { background: radial-gradient(color-mix(in srgb, var(--text), transparent 88%) 1.1px, transparent 1.5px) 0 0/22px 22px, 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: radial-gradient(color-mix(in srgb, var(--text), transparent 88%) 1.1px, transparent 1.5px) 0 0/22px 22px, radial-gradient(1100px 520px at 85% -5%, color-mix(in srgb, var(--brand), transparent 86%), transparent 60%), #fff8ec !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 { grid-template-columns: minmax(0, 1fr) !important; text-align: center; gap: 30px; }
body .hero .hero-copy { max-width: 820px; margin: 0 auto; }
body .hero .hero-copy > p:not(.eyebrow) { margin-left: auto; margin-right: auto; }
body .hero .hero-actions, body .hero .hero-stats { justify-content: center; }
body .hero .hero-art { width: min(100%, 980px); margin: 0 auto; min-height: 330px; }

/* 포스터: 히어로 전체를 액센트 색 띠로 */
body .hero {
  margin-top: 8px; padding: clamp(40px, 6vw, 72px) 0 clamp(32px, 5vw, 56px);
  background:
    radial-gradient(700px 360px at 80% 10%, rgba(255, 255, 255, 0.07), transparent 70%),
    linear-gradient(140deg, color-mix(in srgb, var(--sk-on, var(--brand)), #000 6%), color-mix(in srgb, var(--sk-onA, var(--accent)), #000 42%));
  border-block: 1px solid rgba(255, 255, 255, 0.12);
}
body .hero h1, html[data-theme="light"] body .hero h1 { color: #fff !important; -webkit-text-fill-color: #fff; }
body .hero .hero-grid h1.nbk .nbk-hl, html[data-theme="light"] body .hero .hero-grid h1.nbk .nbk-hl {
  background: linear-gradient(100deg, #fff, color-mix(in srgb, var(--brand), #fff 72%));
  -webkit-background-clip: text; background-clip: text;
}
body .hero .nbk::after { background: #fff; }
body .hero .hero-copy > p, body .hero .eyebrow, body .hero .hero-stats span { color: #fff !important; }
html body .hero .hero-grid .hero-copy > p.eyebrow { color: #fff !important; } /* 공용 라벨 색 규칙(:is 안 최고 우선순위 0,4,2)보다 높게 */
body .hero .hero-stats b { -webkit-text-fill-color: #fff; color: #fff; background: none; }
body .hero .hero-stats { border-top-color: rgba(255, 255, 255, 0.22); }
body .hero .btn.ghost { color: #fff; border-color: rgba(255, 255, 255, 0.5); background: rgba(0, 0, 0, 0.22); }
body .hero .hero-actions .btn.primary { background: #fff !important; color: var(--sk-on, var(--brand)) !important; }
/* 번호 카드: 위 액센트 선 + 큰 번호 */
body .tool-grid { counter-reset: nbtool; }
body .tool-grid > .tool-card { counter-increment: nbtool; border-top: 3px solid var(--brand) !important; }
@media (min-width: 641px) { body .tool-grid > .tool-card { padding-right: 58px !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; } }
/* 종이 한 장: 밝은 지면 + 줄 */
.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; }
body .tool-grid > .tool-card { border-style: dashed !important; }
.hero .eyebrow { letter-spacing: 0.06em; }
@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; }
