/* ==========================================================================
   nb-polish.css — NB 25사이트 공용 (2026-10-19 개편)
   모든 사이트에 같은 파일이 들어간다. 원본: E:\NB_WORKSPACE_2026-07-15\_shared\nb-polish.css
   (사이트별 styles.css / nb-readability.css 는 팔레트가 달라 그대로 두고, 이 파일을 마지막에 덧붙인다)

   2026-10-19 전수 측정(375/768/1366, E:\YN_AUTO\site_audit_2026-10-19) 근거:
   1. 모바일 상단 메뉴(.nav 7개)가 가로 스크롤로 40% 가려지고 스크롤 표시가 없어 "잘린" 것처럼 보임
   2. 도구 카드·블로그·채널 줄도 같은 가로 스크롤 → 모바일에서 감싸는 그리드로
   3. 도구 페이지 계산식(pre.tool-formula)이 375 에서 57% 잘림 → 줄바꿈
   4. A형(nb·nb1~4) 슬라이더 화살표가 카드 아래로 떨어짐 → nb-readability.css 의
      768 이하 position:relative 가 absolute 를 덮어쓴 것. absolute 로 되돌린다(히트영역 ::after 는 그대로 동작)
   ========================================================================== */

/* ---- 4. 슬라이더 화살표 위치 복구 ---- */
.promo-arrow,
.rec-arrow {
  position: absolute;
}

/* ---- 3. 계산식 박스 줄바꿈 ---- */
/* 도구 페이지 HTML 에 인라인 style="white-space:pre" 가 있어 !important 로 이긴다(재측정에서 확인) */
pre.tool-formula,
.tool-formula {
  max-width: 100%;
  white-space: pre-wrap !important;
  overflow-wrap: anywhere !important;
  word-break: keep-all;
}

/* 도구 검색칸 안내문이 말줄임 없이 잘리던 문제(nb·nb4 #toolSearch) */
#toolSearch,
.tool-search {
  text-overflow: ellipsis;
}

#toolSearch::placeholder,
.tool-search::placeholder {
  font-size: 13px;
}

/* ---- 공통 다듬기: 글자 잘림 방지 ---- */
.tool-card,
.blog-mini,
.channel-item {
  min-width: 0;
}

input::placeholder,
textarea::placeholder {
  text-overflow: ellipsis;
}

@media (max-width: 640px) {
  /* ---- 1. 상단 메뉴: 가로 스크롤 대신 4칸 그리드로 전부 보이게 ---- */
  .site-header .nav {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px !important;
    overflow: visible !important;
    padding: 6px !important;
    white-space: normal !important;
  }

  .site-header .nav > a,
  .site-header .nav > button,
  .site-header .nav > div,
  .site-header .nav > span {
    min-width: 0 !important;
    justify-content: center;
    padding-left: 6px !important;
    padding-right: 6px !important;
    font-size: 13px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .site-header .nav svg {
    flex: none;
  }

  /* 둘째 줄: 언어 선택은 2칸, 테마·로그인은 1칸씩 → 글자가 잘리지 않게 */
  .site-header .nav > select {
    grid-column: span 2;
    width: 100% !important;
  }

  /* ---- 2. 도구 카드: 가로 스크롤(6개 중 1개만 보임) → 2열 컴팩트 그리드(아이콘+이름)
     2026-09-30 의 '작업 패널을 첫 스크롤에' 의도는 유지: 카드에서 설명을 숨겨 3줄(약 190px)로 끝낸다 ---- */
  .tools-section .tool-grid,
  .tool-grid {
    display: grid !important;
    grid-auto-flow: row !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-columns: auto !important;
    overflow: visible !important;
    grid-template-rows: none !important;
    overflow-x: visible !important;
    scroll-snap-type: none !important;
    padding: 0 !important;
    gap: 8px !important;
  }

  .tool-grid > .tool-card {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    min-height: 56px !important;
    padding: 10px !important;
    align-items: center !important;
  }

  .tool-grid > .tool-card p,
  .tool-grid > .tool-card small,
  .tool-grid > .tool-card .t-desc {
    display: none !important;
  }

  .tool-grid > .tool-card {
    position: relative;
    gap: 8px !important;
    padding-right: 26px !important;
  }

  .tool-grid > .tool-card .t-ico {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    border-radius: 10px !important;
  }

  .tool-grid > .tool-card .t-ico svg {
    width: 18px !important;
    height: 18px !important;
  }

  .tool-grid > .tool-card .tool-star {
    position: absolute !important;
    top: 4px;
    right: 4px;
    width: 22px !important;
    height: 22px !important;
    font-size: 12px !important;
  }

  .tool-grid > .tool-card strong,
  .tool-grid > .tool-card .t-name {
    display: block;
    font-size: 13.5px !important;
    line-height: 1.3 !important;
    word-break: keep-all;
    overflow-wrap: break-word;
  }

  /* 메뉴가 2줄이 되므로 모바일에서는 헤더가 화면을 계속 차지하지 않게 스크롤과 함께 올라간다 */
  .site-header {
    position: relative !important;
    top: auto !important;
  }

  /* ---- 2. 블로그 줄: 세로 목록 ---- */
  .blog-strip {
    display: grid !important;
    grid-auto-flow: row !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-auto-columns: auto !important;
    overflow: visible !important;
    scroll-snap-type: none !important;
  }

  .blog-strip > .blog-mini {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
  }

  /* ---- 2. 채널 줄: 3열 그리드 ---- */
  .channel-strip {
    display: grid !important;
    grid-auto-flow: row !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    grid-auto-columns: auto !important;
    overflow: visible !important;
    scroll-snap-type: none !important;
  }

  .channel-strip > .channel-item {
    width: auto !important;
    min-width: 0 !important;
  }

  /* nb3·nb4: styles.css 의 .social-hub .channel-thumb{min-height:104px} 가 16:9 와 겹쳐 썸네일이 185px 로
     넓어지며 3열에서 겹치던 문제(재측정에서 발견) */
  .channel-strip > .channel-item {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto auto !important;
    align-content: start !important;
    gap: 6px !important;
  }

  .channel-strip .channel-thumb {
    min-height: 0 !important;
    width: auto !important;
    max-width: 100% !important;
    height: 64px !important;
    aspect-ratio: auto !important;
  }

  /* ---- A형(nb·nb1~4): 상단 메뉴 #mainNav 가로 스크롤 → 줄바꿈 ---- */
  #mainNav {
    flex-wrap: wrap !important;
    justify-content: center;
    overflow: visible !important;
  }

  /* ---- A형 블로그 줄(.lp-strip) 가로 스크롤 → 세로 목록(최대 6개) ---- */
  .lp-strip {
    display: grid !important;
    grid-auto-flow: row !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-auto-columns: auto !important;
    overflow: visible !important;
    scroll-snap-type: none !important;
  }

  .lp-strip > * {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
  }

  .lp-strip > :nth-child(n + 7) {
    display: none !important;
  }

  .channel-strip > .channel-item > span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}


/* ==========================================================================
   2026-10-20 디자인 개편 — 깨짐이 아니라 "품질" 자체를 올린다
   - 사이트별 액센트(--brand/--accent, A형 --brand-grad/--brand-rgb-*)는 그대로 쓴다. 색을 새로 정하지 않는다
   - 모션은 transform/opacity 만, blur·backdrop-filter 애니메이션 없음. 무한 장식은 히어로가 화면 밖이면
     nb-polish.js 가 .hero.nbp-off 로 멈춘다. prefers-reduced-motion·html.perf-lite 면 끈다(맨 아래)
   - 공장형(20곳)은 body:has(.site-header) 또는 공장형 전용 클래스(.hero-grid .hero-art .workspace-panel .blog-thumb),
     A형(5곳)은 .hero-title .hero-visual 로 범위를 나눈다(.tool-card 같은 이름이 두 계열에 다 있어서)
   - 광고 슬롯(.ad-slot, ins.adsbygoogle)·자동광고·앵커는 건드리지 않는다
   ========================================================================== */

/* ---- 공통 1. 키네틱 제목 (nb-polish.js 가 단어를 .nbk-w 로 감싼다) ---- */
.nbk .nbk-w {
  display: inline-block;
  transform-origin: 50% 85%;
  animation: nbkRise 0.56s cubic-bezier(0.2, 1.3, 0.35, 1) both;
  animation-delay: calc(min(var(--i, 0), 7) * 42ms);
}
@keyframes nbkRise {
  0% { opacity: 0; transform: translate3d(0, 0.45em, 0) rotate(4deg); }
  45% { opacity: 1; }
  100% { opacity: 1; transform: none; }
}
/* 제목 아래를 쓸고 지나가는 액센트 막대 */
.nbk::after {
  content: "";
  display: block;
  width: clamp(56px, 8vw, 112px);
  height: 5px;
  margin-top: 0.34em;
  border-radius: 999px;
  background: var(--brand-grad);
  transform-origin: 0 50%;
  animation: nbkBar 0.7s 0.42s cubic-bezier(0.2, 1.25, 0.3, 1) both;
}
.nbk.nbk-center::after { margin-left: auto; margin-right: auto; transform-origin: 50% 50%; }
@keyframes nbkBar { from { transform: scaleX(0); opacity: 0; } to { transform: none; opacity: 1; } }

/* 공장형 h1 은 h1 전체에 background-clip:text 그라데이션 → 자식이 transform 되면 글자가 사라진다.
   h1 그라데이션을 풀고 강조 단어(.nbk-hl)에만 액센트 그라데이션을 준다 */
html .hero-grid h1.nbk {
  background: none;
  -webkit-text-fill-color: currentColor;
  letter-spacing: -0.035em;
}
.hero-grid h1.nbk .nbk-hl {
  background: linear-gradient(100deg, color-mix(in srgb, var(--brand), #fff 46%), color-mix(in srgb, var(--accent), #fff 24%));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-bottom: 0.06em;
}
html[data-theme="light"] .hero-grid h1.nbk .nbk-hl {
  background: linear-gradient(100deg, var(--brand), color-mix(in srgb, var(--brand), #000 28%));
  -webkit-background-clip: text;
  background-clip: text;
}
/* A형: 흰 배경이라 진한 쪽 액센트(--brand-rgb-b)를 주인공으로 */
.hero-title.nbk .nbk-hl {
  background: linear-gradient(100deg, rgb(var(--brand-rgb-b, 124, 58, 237)), color-mix(in srgb, rgb(var(--brand-rgb-b, 124, 58, 237)), rgb(var(--brand-rgb-a, 167, 139, 250)) 38%));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-bottom: 0.06em;
}

/* ---- 공장형 2. 히어로 아트: 빈 상자 → 그 사이트 도구로 만든 작업 미리보기 ---- */
.hero-art .art-card {
  -webkit-backdrop-filter: none;
  backdrop-filter: none; /* 과거 렉 원인(backdrop-filter) 제거 — 불투명 패널로 대체 */
  background: color-mix(in srgb, var(--dark, #070b12), #fff 7%);
  border-color: rgba(255, 255, 255, 0.12);
}
html[data-theme="light"] .hero-art .art-card { background: rgba(255, 255, 255, 0.9); border-color: rgba(15, 28, 50, 0.1); }

/* fx.js 가 뿌리는 장식 점(.nb-dot)이 카드 글자 위에 겹치지 않게 */
.nbp-art .art-card { z-index: 1; }

.nbp-art .art-card.one {
  inset: 30px 30px 116px 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px 18px 18px;
  overflow: hidden;
}
.nbp-win { display: flex; align-items: center; gap: 6px; min-width: 0; }
.nbp-win > i { flex: none; width: 9px; height: 9px; border-radius: 50%; background: #ff5f57; }
.nbp-win > i:nth-child(2) { background: #febc2e; }
.nbp-win > i:nth-child(3) { background: #28c840; }
.nbp-win b {
  display: flex; align-items: center; gap: 8px; min-width: 0; margin-left: 10px;
  font-size: 13.5px; font-weight: 800; letter-spacing: -0.01em; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  padding-right: 30%; /* 오른쪽 위 마스코트와 겹치지 않게 */
}
.nbp-wico { display: inline-grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 8px; background: var(--brand-grad); color: var(--brand-ink, #fff); }
.nbp-wico svg { width: 14px; height: 14px; }
.nbp-rows { display: grid; gap: 9px; }
.nbp-rows span { display: block; width: var(--w); height: 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.09); }
.nbp-rows span:first-child { background: color-mix(in srgb, var(--brand), transparent 62%); }
html[data-theme="light"] .nbp-rows span { background: rgba(15, 28, 50, 0.08); }
html[data-theme="light"] .nbp-rows span:first-child { background: color-mix(in srgb, var(--brand), transparent 70%); }
.nbp-bars { flex: 1; min-height: 56px; display: flex; align-items: flex-end; gap: 8px; padding-top: 6px; border-bottom: 1px solid var(--line); }
.nbp-bars span {
  flex: 1; height: var(--h); min-height: 8px; border-radius: 8px 8px 3px 3px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--brand), #fff 18%), color-mix(in srgb, var(--brand), transparent 70%));
  opacity: 0.55; transform-origin: 50% 100%;
  animation: nbpGrow 0.8s cubic-bezier(0.2, 1.3, 0.3, 1) both;
  animation-delay: calc(0.45s + var(--i) * 60ms);
}
.nbp-bars span:nth-child(4) { opacity: 1; box-shadow: 0 8px 22px color-mix(in srgb, var(--brand), transparent 55%); }
@keyframes nbpGrow { from { transform: scaleY(0.05); } to { transform: none; } }

.nbp-art .art-card.two {
  inset: auto 30px 30px auto;
  width: auto; height: auto;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
}
.nbp-chip {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px;
  background: var(--brand-grad); color: var(--brand-ink, #fff);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 8px 20px color-mix(in srgb, var(--brand), transparent 62%);
  animation: nbpPop 0.55s cubic-bezier(0.2, 1.5, 0.35, 1) both;
  animation-delay: calc(0.7s + var(--i) * 80ms);
}
.nbp-chip:nth-child(even) { background: color-mix(in srgb, var(--brand), transparent 78%); color: color-mix(in srgb, var(--brand), #fff 55%); box-shadow: none; }
html[data-theme="light"] .nbp-chip:nth-child(even) { color: var(--brand); }
.nbp-chip svg { width: 21px; height: 21px; }
@keyframes nbpPop { from { opacity: 0; transform: scale(0.4) translateY(10px); } to { opacity: 1; transform: none; } }

.nbp-art .art-card.three {
  inset: auto auto 30px 30px;
  width: min(46%, 260px); height: auto;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 16px;
}
.nbp-ico { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; background: color-mix(in srgb, var(--brand), transparent 76%); color: color-mix(in srgb, var(--brand), #fff 50%); }
html[data-theme="light"] .nbp-ico { color: var(--brand); }
.nbp-ico svg { width: 20px; height: 20px; }
.nbp-t { display: grid; gap: 2px; min-width: 0; }
.nbp-t b { font-size: 13.5px; line-height: 1.3; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nbp-t small { font-size: 11.5px; font-weight: 700; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---- 공장형 3. 섹션 리듬·타이포 위계 ---- */
body:has(.site-header) :is(.latest-posts, .channel-hub, .tools-section, .affiliate-deals) {
  margin-top: clamp(28px, 4vw, 44px);
  margin-bottom: clamp(28px, 4vw, 44px);
  padding: clamp(20px, 3vw, 34px);
  border-radius: 24px;
}
body:has(.site-header) .tools-head > span {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  font-size: 11.5px; font-weight: 900; letter-spacing: 0.16em;
  color: color-mix(in srgb, var(--brand), #fff 40%);
  background: color-mix(in srgb, var(--brand), transparent 84%);
  border: 1px solid color-mix(in srgb, var(--brand), transparent 66%);
}
html[data-theme="light"] body:has(.site-header) .tools-head > span { color: var(--brand); }
body:has(.site-header) .tools-head > span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
body:has(.site-header) .tools-head h2,
body:has(.site-header) .channel-hub > h2 { font-size: clamp(26px, 3.4vw, 40px) !important; letter-spacing: -0.035em !important; line-height: 1.18; }
body:has(.site-header) .latest-posts > .section-head > span { font-size: 18px; font-weight: 900; letter-spacing: -0.02em; color: var(--text); }

/* ---- 공장형 4. 도구 카드 ---- */
body:has(.site-header) .tool-grid > .tool-card {
  border-radius: 18px;
  transition: transform 0.28s var(--ease-out, ease), border-color 0.2s ease, box-shadow 0.28s ease, background 0.2s ease;
}
body:has(.site-header) .tool-grid > .tool-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--brand), transparent 55%);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}
body:has(.site-header) .tool-grid > .tool-card.is-active {
  border-color: color-mix(in srgb, var(--brand), transparent 30%);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--brand), transparent 45%) inset, 0 18px 40px color-mix(in srgb, var(--brand), transparent 80%);
}
html[data-theme="light"] body:has(.site-header) .tool-grid > .tool-card:hover { box-shadow: 0 16px 36px rgba(25, 40, 70, 0.12); }
body:has(.site-header) .tool-grid > .tool-card strong { font-weight: 800; }

/* ---- 공장형 5. 작업 패널(입력폼·결과 카드) ---- */
.workspace-panel {
  position: relative;
  padding: clamp(16px, 2.2vw, 24px) !important;
  border-radius: 22px !important;
  gap: clamp(14px, 2vw, 22px) !important;
}
.workspace-panel::before {
  content: ""; position: absolute; left: 22px; right: 22px; top: -1px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
  opacity: 0.8; pointer-events: none;
}
.workspace-panel .ws-head h3 { font-size: 20px; font-weight: 900; letter-spacing: -0.025em; }
.workspace-panel .field input,
.workspace-panel .field select,
.workspace-panel .field textarea {
  border-radius: 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.workspace-panel .field input:focus,
.workspace-panel .field select:focus,
.workspace-panel .field textarea:focus {
  border-color: color-mix(in srgb, var(--brand), transparent 30%);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand), transparent 80%);
  outline: none;
}
.ws-result-head > span { display: inline-flex; align-items: center; gap: 8px; font-weight: 900; letter-spacing: 0.04em; }
.ws-result-head > span::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand), transparent 78%);
}
/* 결과 칸: 비어 있어도 '캔버스'처럼 보이게 점 격자 */
.ws-result #resultBox {
  border-radius: 16px;
  min-height: 180px;
  background-image: radial-gradient(circle, color-mix(in srgb, var(--text), transparent 90%) 1px, transparent 1.2px);
  background-size: 18px 18px;
}

/* ---- 공장형 6. 블로그 카드: 커버 디자인 + 번호 ---- */
.blog-strip { counter-reset: nbpost; }
.blog-strip > .blog-mini { counter-increment: nbpost; }
.blog-mini:has(> .blog-thumb) {
  padding: 10px 10px 14px;
  border-radius: 20px;
  transition: transform 0.28s var(--ease-out, ease), border-color 0.2s ease, box-shadow 0.28s ease;
}
.blog-mini:has(> .blog-thumb):hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--brand), transparent 55%);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
}
.blog-mini > .blog-thumb {
  place-items: end start;
  align-content: end;
  min-height: 132px;
  padding: 16px;
  text-align: left;
  border-radius: 14px;
  background:
    radial-gradient(120px 90px at 88% 12%, rgba(255, 255, 255, 0.22), transparent 70%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.055) 0 1px, transparent 1px 16px),
    linear-gradient(145deg, color-mix(in srgb, var(--brand), #000 8%), color-mix(in srgb, var(--accent), #000 55%));
}
.blog-mini > .blog-thumb::before {
  content: counter(nbpost, decimal-leading-zero);
  position: absolute; top: 12px; left: 16px;
  font-size: 12px; font-weight: 900; letter-spacing: 0.12em; color: rgba(255, 255, 255, 0.75);
}
.blog-mini > .blog-thumb strong { font-size: 15.5px; font-weight: 900; letter-spacing: -0.02em; color: #fff; -webkit-line-clamp: 3; }
.blog-mini > .blog-thumb small { position: absolute; top: 12px; right: 14px; max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: rgba(255, 255, 255, 0.6); font-weight: 700; }
/* 같은 제목이 커버와 본문에 두 번 나오던 것 → PC 는 커버 제목만 남긴다 */
.blog-mini:has(> .blog-thumb) > b { display: none; }
.blog-mini:has(> .blog-thumb) > .blog-meta { color: color-mix(in srgb, var(--brand), #fff 35%); font-weight: 800; font-size: 12px; padding: 0 4px; }
html[data-theme="light"] .blog-mini:has(> .blog-thumb) > .blog-meta { color: var(--brand); }
.blog-mini:has(> .blog-thumb) > time { padding: 0 4px; }

/* ---- 7. 공장형 'site-blueprint' 카드: 다크 테마에서 흰 바탕 + 흰 글씨로 안 보이던 것 ---- */
html:not([data-theme="light"]) body:has(.site-header) .site-blueprint {
  --surface: color-mix(in srgb, var(--dark, #070b12), #fff 6%);
  --surface-soft: color-mix(in srgb, var(--dark, #070b12), #fff 10%);
  --border: rgba(255, 255, 255, 0.12);
  --text: #f6f8fc;
  --muted: #b4bdd0;
  --primary: color-mix(in srgb, var(--brand), #fff 35%);
  border-radius: 24px;
}

/* ---- 8. 푸터 ---- */
body:has(.site-header) .footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, color-mix(in srgb, var(--brand), transparent 93%), transparent 70%);
}
body:has(.site-header) .footer .ft-col a { transition: color 0.15s ease; }
body:has(.site-header) .footer .ft-col a:hover { color: color-mix(in srgb, var(--brand), #fff 30%); }
body:has(.site-header) .footer .ft-col > b { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

/* ---- 9. 공장형 도구 상세 페이지(/tools/*.html) ---- */
main.latest-posts > article > h1 {
  font-size: clamp(30px, 4.6vw, 50px);
  line-height: 1.14;
  letter-spacing: -0.035em;
  font-weight: 900;
  word-break: keep-all;
}
main.latest-posts > article > section { margin-top: clamp(26px, 3.4vw, 40px); }
main.latest-posts > article > section > h2 { letter-spacing: -0.025em; }
main.latest-posts > article > section > ol { counter-reset: nbstep; list-style: none; padding-left: 0; display: grid; gap: 8px; }
main.latest-posts > article > section > ol > li {
  counter-increment: nbstep;
  position: relative; padding: 12px 14px 12px 50px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--panel, rgba(255, 255, 255, 0.04));
}
main.latest-posts > article > section > ol > li::before {
  content: counter(nbstep);
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 9px;
  font-size: 13px; font-weight: 900; background: var(--brand-grad); color: var(--brand-ink, #fff);
}
main.latest-posts > article pre.tool-formula {
  border: 1px solid var(--line) !important;
  border-left: 3px solid var(--brand) !important;
  border-radius: 14px !important;
}
main.latest-posts > article .faq-item { border-radius: 14px; }

@media (max-width: 900px) {
  .nbp-art .art-card.one { inset: 24px 24px 104px 24px; }
}

@media (max-width: 640px) {
  /* 모바일도 PC 와 같은 미리보기 구성을 축소해서 보여준다(대칭) */
  .hero-art.nbp-art { min-height: 300px !important; }
  .nbp-art .art-card.one { inset: 18px 18px 92px 18px; padding: 13px 14px 14px; gap: 11px; }
  /* 375 폭에서는 작은 카드에 도구 이름이 다 안 들어가 칩 줄만 남기고 가로로 넓힌다 */
  .nbp-art .art-card.two { left: 18px; right: 18px; bottom: 18px; justify-content: space-between; padding: 9px 12px; gap: 7px; }
  .nbp-art .art-card.three { display: none; }
  .nbp-chip { width: 36px; height: 36px; border-radius: 12px; }
  .nbp-chip svg { width: 18px; height: 18px; }
  .nbp-ico { width: 34px; height: 34px; border-radius: 10px; }
  .nbp-ico svg { width: 17px; height: 17px; }
  .nbp-t b { font-size: 12.5px; }
  .hero-art.nbp-art .nb-mascot { width: 96px !important; top: 10px !important; right: 10px !important; }

  /* 모바일 블로그: 커버(번호) 왼쪽 + 제목 오른쪽 가로 카드(세로로 4장 쌓이며 화면을 다 먹던 것) */
  .blog-strip > .blog-mini:has(> .blog-thumb) {
    display: grid !important;
    grid-template-columns: 84px minmax(0, 1fr);
    column-gap: 12px; row-gap: 4px;
    align-items: center; align-content: center; min-height: 0 !important;
    padding: 10px !important;
  }
  .blog-strip > .blog-mini > .blog-thumb {
    grid-row: 1 / span 3; min-height: 84px !important; height: 84px; padding: 10px; place-items: center; align-content: center;
  }
  .blog-strip > .blog-mini > .blog-thumb::before { position: static; font-size: 20px; letter-spacing: 0.04em; color: #fff; }
  .blog-strip > .blog-mini > .blog-thumb strong,
  .blog-strip > .blog-mini > .blog-thumb small { display: none !important; }
  .blog-strip > .blog-mini:has(> .blog-thumb) > b {
    display: -webkit-box !important; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    font-size: 14.5px; line-height: 1.4; padding: 0 4px; word-break: keep-all;
  }

  /* 채널 3열: 항목 min-height 140px 때문에 줄 사이가 크게 벌어지던 것 */
  .channel-strip > .channel-item { min-height: 0 !important; }

  main.latest-posts > article > section > ol > li { padding-left: 46px; }

  /* A형 nb(PDF): 문서 3장이 375 폭에서 오른쪽 끝에 잘리던 것 — 스택을 더 줄여 상자 안에 넣는다 */
  .hero-pdf-visual .doc-stack { transform: scale(0.66); }
}

/* ---- 모션 끄기·멈추기 ---- */
.hero.nbp-off *,
.hero.nbp-off *::before,
.hero.nbp-off *::after { animation-play-state: paused !important; }
html.perf-lite .nbk .nbk-w,
html.perf-lite .nbk::after,
html.perf-lite .nbp-art .art-card,
html.perf-lite .nbp-bars span,
html.perf-lite .nbp-chip { animation: none !important; }
@media (prefers-reduced-motion: reduce) {
  .nbk .nbk-w,
  .nbk::after,
  .nbp-art .art-card,
  .nbp-bars span,
  .nbp-chip { animation: none !important; }
  .tool-card, .blog-mini { transition: none !important; }
}

/* ---- 상단 "YN 추천"+"NB 추천" 두 줄(nb-family.js 의 NB-TOPRAILS 블록, 2026-10-20) ----
   스크립트가 끝에 실행되므로 줄이 들어올 자리(2줄 58px+간격+여백 ≈144px, 모바일 ≈128px)를 헤더 아래에 미리 비워
   두었다가, 줄을 넣는 같은 작업에서 html.ytr-on 을 붙여 예약을 풀어 화면 밀림(CLS)을 없앤다 */
html:not(.ytr-on) body > header { margin-bottom: 144px !important; }
@media (max-width: 640px) { html:not(.ytr-on) body > header { margin-bottom: 128px !important; } }
@media print { html:not(.ytr-on) body > header { margin-bottom: 0 !important; } }

/* ==========================================================================
   2026-10-20 ① 글자·배경 대비 전수 보정 (WCAG AA: 일반 4.5:1, 큰 글자 3:1)
   근거: 25곳 라이브 95쪽 측정(E:\YN_AUTO\site_audit_2026-10-19\nb_redesign\contrast\). 실패 1,121건의 공통 원인만 고친다.
   --sk-on / --sk-onA / --sk-txd / --sk-txl 은 사이트 nb-skin.css 가 브랜드색에서 계산해 준다(없으면 원래 색).
   ========================================================================== */

/* (1) 다크 테마: nb-readability 의 '흰 바탕용' 라벨 보정(브랜드색을 #17161c 와 섞어 어둡게)이 다크에도 걸려
       글자가 바탕에 묻혔다(대비 1.0~1.3) → 다크에서는 반대로 흰색과 섞어 밝힌다 */
html:not([data-theme="light"]) body:has(.site-header) :is(.promo-eyebrow, .promo-cta, .promo-yn) { color: color-mix(in srgb, var(--accent, #bef264) 55%, #fff) !important; }
html:not([data-theme="light"]) body:has(.site-header) :is(.rec-kicker, .rec-cta) { color: color-mix(in srgb, var(--rec, #fe2c55) 40%, #fff) !important; }
html:not([data-theme="light"]) body:has(.site-header) :is(.deal-tag, .deal-cta, .deal-mini) { color: color-mix(in srgb, var(--brand, #a7b1c5) 35%, #fff) !important; }
/* 다크: 슬라이드·카드 설명 글자는 틴트 바탕 위라 회색(#a7b1c5)이 4.0 언저리 → 한 단계 밝게 */
html:not([data-theme="light"]) body:has(.site-header) :is(.rec-body > span:not(.rec-kicker), .promo-body > span:not(.promo-eyebrow), .deal-pitch, .tool-card small, .blog-mini > time, .channel-meta small, .channel-item > span) { color: #cfd5df !important; }
html[data-theme="light"] body:has(.site-header) .tool-card small { color: #3d4452 !important; }

/* (1-b) 라이트 테마: 같은 라벨의 '흰 바탕용' 보정이 사이트 nb-readability 버전에 따라 빠진 곳이 있어(nb19 등) 여기서 보장 */
html[data-theme="light"] body:has(.site-header) :is(.promo-eyebrow, .promo-cta, .promo-yn) { color: color-mix(in srgb, var(--accent, #4a4756) 42%, #17161c) !important; }
html[data-theme="light"] body:has(.site-header) :is(.rec-kicker, .rec-cta) { color: color-mix(in srgb, var(--rec, #4a4756) 42%, #17161c) !important; }
html[data-theme="light"] body:has(.site-header) :is(.deal-tag, .deal-cta, .deal-mini) { color: color-mix(in srgb, var(--brand, #4a4756) 42%, #17161c) !important; }

/* (2) 흰 글자가 올라가는 브랜드색 면 → 진한 브랜드색(흰 글자 4.6:1 이상) */
/* 로고(.logo-mark·.static-logo)는 제외: 사장님이 로고 색으로 사이트를 구분하고, 로고 글자는 WCAG 대비 예외 */
body:has(.site-header) :is(.btn.primary, .aff-badge, .cta-tag, .site-blueprint__links a:first-child, .blog-filter.active),
body:has(> header.header) :is(.btn-primary, .aff-badge, .skip-link, .blog-tab, .blog-filter.active, .article-cta, .static-btn.primary) {
  background: linear-gradient(135deg, var(--sk-onA, var(--accent)), var(--sk-on, var(--brand))) !important;
  color: #fff !important;
}

/* (3) 브랜드·보조색 '글자' — 다크는 밝은 변형, 라이트는 진한 변형 */
html:not([data-theme="light"]) body:has(.site-header) :is(.eyebrow, .section-label, .nb-channel-intro > span, .ws-result-head > span, .field label em, .fam-cta, article .toc-box a, article li > a, .tools-head > span) { color: var(--sk-txd, color-mix(in srgb, var(--brand), #fff 40%)) !important; }
html[data-theme="light"] body:has(.site-header) :is(.eyebrow, .section-label, .nb-channel-intro > span, .ws-result-head > span, .field label em, .fam-cta, article .toc-box a, article li > a, .tools-head > span, .blog-mini > .blog-meta) { color: var(--sk-txl, var(--brand)) !important; }
body:has(.site-header) .eyebrow a { color: inherit !important; }
html:not([data-theme="light"]) body:has(.site-header) .blog-mini:has(> .blog-thumb) > .blog-meta { color: var(--sk-txd, color-mix(in srgb, var(--brand), #fff 35%)) !important; }

/* (4) 날짜·도메인·보조 글자: nb-readability 가 회보라 #55525f 로 고정해 다크에서 안 보임 */
body:has(.site-header) .blog-mini > time { color: var(--muted) !important; }
body:has(.site-header) .blog-mini > .blog-thumb small { color: #fff !important; }
html[data-theme="light"] body:has(.site-header) { --muted: #4a5262; } /* 틴트 패널 위에서도 4.5:1 */

/* (5) 블로그 커버: 라이트 테마에서 밝은 그라데이션 위 흰 제목 → 다크와 같은 진한 커버 */
/* 커버는 두 테마 모두 진한 브랜드 면(흰 제목 5:1 이상), 하이라이트는 약하게 */
.blog-mini > .blog-thumb, html[data-theme="light"] .blog-mini > .blog-thumb {
  background:
    radial-gradient(120px 90px at 88% 12%, rgba(255, 255, 255, 0.08), transparent 70%),
    linear-gradient(145deg, color-mix(in srgb, var(--sk-on, var(--brand)), #000 10%), color-mix(in srgb, var(--sk-onA, var(--accent)), #000 32%)) !important;
}

/* (6) 즐겨찾기 별(비활성): 35% 투명 회색 → 조작 아이콘 기준(3:1) 이상 */
body:has(.site-header) .tool-card:not(.faved) .tool-star { color: color-mix(in srgb, var(--text), transparent 25%) !important; }
/* 라이트: TOOLS 칩은 흰 바탕 + 진한 브랜드 글자 */
html[data-theme="light"] body:has(.site-header) .tools-head > span { background: #fff !important; }

/* (7) 도구·블로그 페이지 'NB 무료 도구 모음' 카드 머리띠: 밝은 그라데이션 위 흰 글자 → 어두운 막을 깐다(색 구분은 유지) */
/* → 빌드 스크립트가 머리띠 인라인 배경에 어두운 층(rgba(8,10,16,.46))을 겹쳐 그린다(측정으로도 확인되게 CSS 막 대신) */

/* (7-b) 머리띠 안 '무료' 칩: 밝은 반투명(흰 28%) 바탕이라 흰 글자가 묻힘 → 어두운 칩 */
.fam-head > em { background: rgba(0, 0, 0, 0.32) !important; }
/* (7-c) NB Family 바 글자색이 var(--text, #f8fafc) 라 --text 가 없는 A형 서브페이지(흰 바탕)에서 흰 글자(1:1) */
body:not(:has(.site-header)):not(:has(> header.header)) #nbFamilyBar :is(.nbf-txt b, .nbf-counter) { color: #17161c !important; }
body:not(:has(.site-header)):not(:has(> header.header)) #nbFamilyBar .nbf-txt > span { color: #4a4756 !important; }
body:not(:has(.site-header)):not(:has(> header.header)) #nbFamilyBar .nbf-go { color: #1d4ed8 !important; }
/* (7-d) A형 서브페이지: 공통 청록 그라데이션(--grad) 위 흰 글자(2.1~2.4:1) → 같은 그라데이션 위에 어두운 층 */
body:not(:has(.site-header)) :is(.static-nav, .yn-slice-card b, p > a.static-btn) { background: var(--grad, linear-gradient(135deg, #0e7490, #1d4ed8)) !important; color: #fff !important; } /* 2026-10-21: --grad 를 사이트 대비 안전 색으로 바꿔(nb-skin.css) 어두운 막이 필요 없어짐 */
/* A형 블로그 글 통계 칸: 생성기가 인라인으로 박은 밝은 주황(#f97316, 흰 바탕 2.8:1) → 진한 주황 */
body:not(:has(.site-header)) article div[style*="color:#f97316"] { color: #c2410c !important; }

/* (8) 블로그 제휴 CTA 막대의 '›': 막대마다 다른 색 → 링크 글자색 */
.cta-bar a > b { color: inherit !important; }

/* (9) 포스터형 히어로(nb6·nb14·nb17)는 생성기 HERO['poster'] 에서 띠를 진한 브랜드색(--sk-on)으로 칠한다 */

/* (10) 푸터: 라이트 테마에서 브랜드 틴트가 진해 보조 글자 대비 4.0 → 틴트를 줄이고 글자를 진하게 */
html[data-theme="light"] body:has(.site-header) .footer { background: linear-gradient(180deg, color-mix(in srgb, var(--brand), transparent 96%), transparent 70%); }
html[data-theme="light"] body:has(.site-header) .footer :is(.ft-col a, .ft-col p, .ft-col strong, .ft-col > b, .ft-bottom span) { color: #3f4655 !important; }
html[data-theme="light"] #nbFamilyBar .nbf-txt > span, html[data-theme="light"] #nbFamilyBar .nbf-heading > span { color: #4a5262 !important; }

/* (11) A형 도구 상세 페이지 상단 '홈·무료 도구' 단추: 흰 바탕에 흰 글자(1:1) */
main > nav.static-links .static-btn, article nav.static-links .static-btn, body > nav.static-links .static-btn {
  color: #17161c !important; background: #f1eff6 !important; border-color: #e2dfe9 !important;
}

/* (12) A형: 블로그 썸네일·히어로 그림 라벨(흰 글자 on 파스텔) → 어두운 막 */
.post-thumb { background: linear-gradient(rgba(8, 10, 16, 0.52), rgba(8, 10, 16, 0.52)), linear-gradient(135deg, var(--pa), var(--pb)) !important; }
/* nb3 히어로 명령 카드: 아래쪽이 밝은 면인데 설명 글자가 옛 다크용 밝은 회색이라 1.3:1 */
.video-command-card span:not(.command-no) { color: #3a3846 !important; }
.video-command-card em { background: linear-gradient(135deg, var(--sk-onA, #15803d), var(--sk-on, #0369a1)) !important; color: #fff !important; }
.photo-grid-preview .photo-tile { position: relative; isolation: isolate; }
.photo-grid-preview .photo-tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(8, 10, 16, 0.34); border-radius: inherit; pointer-events: none; }
/* (13) A형: 밝은 브랜드색(분홍·노랑 등) 글자 → 진한 변형 */
body:has(> header.header) :is(.blog-kicker, .eyebrow > span, .workspace-head .blog-kicker, #mainNav > a:first-child, .studio-label) { color: var(--sk-txl, rgb(var(--brand-rgb-b))) !important; }
body:has(> header.header) .hero-stat-card span { color: #fff !important; }
body:has(> header.header) .hero-stat-card small { color: rgba(255, 255, 255, 0.78) !important; }
body:has(> header.header) .doc-flow span { color: #c4c0cf !important; }
body:has(> header.header) .doc-flow strong { color: #c4b0fb !important; }
body:has(> header.header) .compare-frame :is(.before-chip, .after-chip) { background: rgba(17, 17, 24, 0.74) !important; color: #fff !important; }
body:has(> header.header) .step-n { background: linear-gradient(135deg, var(--sk-onA), var(--sk-on)) !important; color: #fff !important; }

/* ==========================================================================
   2026-10-20 ③ 렉 — 저사양 폰(CPU 4배 감속) 실측: 홈 스크롤 평균 19~47fps, 최악 프레임 350~830ms.
   스크립트 시간은 작고(4초 중 24~85ms) 그리기 비용이 원인 → A/B 로 확인된 것만 끈다. 광고 설정은 그대로.
   - 화면 전체 고정 배경층 blur(26px): 끄면 A형 31·47 → 55·59fps (그라데이션이 원래 부드러워 모양은 거의 같다)
   - backdrop-filter(헤더·카드): 스크롤 매 프레임 뒤를 다시 흐림 → 끄고 배경을 더 불투명하게
   - 마스코트 모서리 변형(nbMorph/nbMascotMorph): border-radius 애니메이션은 매 프레임 다시 그림 → 제거(떠다니기만 유지)
   - 모바일·터치 기기: 히어로 장식 무한 애니메이션(떠다니는 점·카드 흔들림·링 회전·그림자 맥동·버튼 반짝임) 정지
   ========================================================================== */
body::before { filter: none !important; }
.nb-mascot-shadow { filter: none !important; }
*, *::before, *::after { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.site-header { background: color-mix(in srgb, var(--dark, #070b12), transparent 6%) !important; }
html[data-theme="light"] .site-header { background: rgba(255, 255, 255, 0.96) !important; }
body > header.header { background: rgba(255, 255, 255, 0.97) !important; }
.hero-stat-card { background: rgba(10, 10, 12, 0.86) !important; }
.hero-art .nb-mascot-orb { animation: nbFloat 5.8s ease-in-out infinite !important; }
.hero-visual .nb-mascot-orb { animation-name: nbMascotFloat !important; }
@media (max-width: 900px), (hover: none) and (pointer: coarse) {
  .hero-art .nb-dot, .hero-art .art-card, .nb-mascot-ring, .nb-mascot-shadow,
  .btn::after, .btn.primary::after, .logo-mark::after, .ws-ico { animation: none !important; }
}

/* ==========================================================================
   2026-10-20 25곳 디자인 감사(라이브 캡처 380장) 확정 결함 — 근거 이미지는 E:\YN_AUTO\site_audit_2026-10-19\nb_redesign\audit\tiles\
   ========================================================================== */
/* 375 상단 메뉴: 2줄 그리드인데 999px 알약 테두리 → 찌그러진 타원·칸 삐져나옴 */
@media (max-width: 640px) { .site-header .nav { border-radius: 20px !important; } }
/* 한글이 어절 중간에서 줄바꿈('합산합니/다', '크/리에이터') → 어절 단위, 긴 영문·URL 은 넘치지 않게 끊는다 */
body:has(.site-header), body:has(> header.header) { word-break: keep-all; overflow-wrap: break-word; }
/* 도구·블로그 상단 경로(eyebrow)가 inline-flex 라 375 에서 칸마다 쪼개짐('무료 도/구') */
main.latest-posts > article > p.eyebrow { display: block !important; }
main.latest-posts > article > p.eyebrow::before { display: inline-block; vertical-align: middle; margin-right: 8px; }
/* '최신 블로그' 섹션 제목이 13px 라벨 크기 → 다른 섹션 제목과 같은 위계 */
body:has(.site-header) .latest-posts > .section-head > span { font-size: clamp(20px, 2.4vw, 28px) !important; line-height: 1.25 !important; }
/* site-blueprint(30초 확인) 카드만 1120px → 다른 섹션과 같은 폭 */
.site-blueprint { width: min(1180px, calc(100% - 40px)) !important; }
/* 홈 채널 카드가 블로그 본문용 article{max-width:860px} 에 걸려 가운데로 떠 있음 → 섹션 폭 */
.channel-hub article.channel-card, .social-hub article.channel-card { max-width: none !important; margin-inline: 0 !important; }
/* NB Family 카드 아이콘의 'NB' 배지가 모바일 레일 경계에서 잘려 'NE' 처럼 보임 → 아이콘 안쪽으로 */
#nbFamilyBar .nbf-logo i { right: -2px !important; bottom: -2px !important; }
/* 계산식 박스: 굴림체 고정폭 → 고른 고정폭 글꼴 */
pre.tool-formula, .tool-formula { font-family: ui-monospace, "Cascadia Mono", Consolas, "D2Coding", "Malgun Gothic", monospace !important; font-size: 13.5px !important; line-height: 1.75 !important; }
/* PC 도구 카드 6개가 4열 → 4+2 로 둘째 줄 절반이 빔 → 3열(2줄). 목록형·큰 타일 스킨은 각자 규칙이 이긴다(:where 로 낮춤) */
@media (min-width: 901px) { :where(body:has(.site-header)) .tool-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } }
/* 히어로 미리보기: 마스코트가 주소창·입력줄을 덮고, 보조 카드가 칩 독과 겹침 */
.nbp-art .nbp-rows { padding-right: 30%; }
/* 2026-10-21 3차: 오른쪽 288px 고정은 미니 카드를 130px 로 좁혀 한 단어씩 세로로 꺾였다 → 내용 폭(최대 = 칩 독 자리 뺀 폭), 칩 독은 오른쪽 끝 */
@media (min-width: 641px) {
  .nbp-art .art-card.three { right: auto !important; width: max-content !important; max-width: calc(100% - 262px) !important; }
  .nbp-art .art-card.two { left: auto !important; right: 18px !important; width: auto !important; }
}
/* 웰니스·레시피 테마의 물방울 모양 히어로 틀이 미리보기 창을 잘라냄 → 둥근 사각 틀 */
.hero-art.nbp-art { border-radius: var(--hero-radius, 28px) !important; }
/* 푸터 아래 '자동화 상담' 카드: 인라인 흰색이라 다크 사이트에서 튀고, 375 에서 화면 끝까지 붙음 */
section.yn-growth-footer { width: min(1100px, calc(100% - 32px)) !important; box-sizing: border-box !important; }
html:not([data-theme="light"]) body:has(.site-header) section.yn-growth-footer { background: color-mix(in srgb, var(--dark, #070b12), #fff 6%) !important; color: var(--text) !important; border-color: var(--line) !important; }
html:not([data-theme="light"]) body:has(.site-header) section.yn-growth-footer span { color: #c3c9d4 !important; }
html:not([data-theme="light"]) body:has(.site-header) section.yn-growth-footer nav a { color: #d6dbe4 !important; }

/* 렉(같은 시점 A/B): 가장자리 흐림용 mask-image 는 스크롤 중 별도 합성 비용이 커서(상단 레일 기준 광고 포함 약 11fps) 하단 NB Family 바도 끈다
   (모바일·perf-lite 에선 원래 꺼져 있었다) */
#nbFamilyBar .nbf-vp { -webkit-mask-image: none !important; mask-image: none !important; }

/* ==========================================================================
   2026-10-21 A형(nb·nb1~nb4) 마감 — 디자인 감사 미수정 묶음
   원인: nb1~nb4 홈 마크업(.workspace-card/.option-grid/.info-grid/.faq-section…)은 새 이름인데
         styles.css 는 옛 이름(.workspace/.tool-panel/.features/.faq)만 정의 → 반쯤 맨 HTML.
   ========================================================================== */
/* 도구·섹션 아이콘: 연한 액센트(#f0abfc·#fda4af 등)라 흰 카드에서 거의 안 보임 → 진한 변형 */
body:has(> header.header) :is(.tool-card .t-ico, .group-ico, .info-card > svg, .drop-icon, .workspace-head svg) { color: var(--sk-txl, rgb(var(--brand-rgb-b))) !important; }

/* 작업 공간: 드롭존 | 옵션 패널 두 칸(좁은 칸에 들어가면 자동 1칸) */
body:has(> header.header) .workspace-card { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; align-items: stretch; }
body:has(> header.header) .workspace-card > .dropzone { min-height: 300px; }
body:has(> header.header) .workspace-panel { min-width: 0; padding: 20px; border: 1px solid var(--line-soft); border-radius: var(--radius-lg, 20px); background: var(--panel); }
body:has(> header.header) .drop-icon { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 18px; background: rgba(var(--brand-rgb-a), 0.12); }
body:has(> header.header) .drop-icon svg { width: 32px; height: 32px; margin: 0 !important; }
body:has(> header.header) .active-tool { margin-bottom: 14px; padding: 14px 16px; border: 1px solid rgba(var(--brand-rgb-a), 0.2); border-radius: 14px; background: rgba(var(--brand-rgb-a), 0.08); }
body:has(> header.header) .active-tool > small { display: block; margin-bottom: 4px; color: var(--sk-txl, rgb(var(--brand-rgb-b))); font-size: 11px; font-weight: 900; letter-spacing: 0.08em; }
body:has(> header.header) .active-tool > strong { display: block; font-size: 18px; line-height: 1.35; }
body:has(> header.header) .active-tool > p { margin: 4px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
body:has(> header.header) .option-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 14px 16px; }
body:has(> header.header) .option-grid .option > span { color: var(--text); font-size: 13px; font-weight: 700; }
body:has(> header.header) .option-grid .option input:is([type="text"], [type="number"], :not([type])), body:has(> header.header) .option-grid .option select { width: 100%; }
body:has(> header.header) .option input[type="range"] { min-height: 44px; padding: 0; border: 0; background: transparent; accent-color: var(--sk-on, rgb(var(--brand-rgb-b))); }
body:has(> header.header) .workspace-panel .file-list:empty { display: none; }
body:has(> header.header) .workspace-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
/* 결과 칸 오른쪽 아래 'NB' 장식이 안내 문장 끝 글자를 덮음 → 장식 자리만큼 비운다 */
body:has(> header.header) :is(.result-box, #resultBox) { padding-right: 68px !important; }
/* 프롬프트 프리셋 단추(nb2): 맨 글자 4개 → 칩 */
body:has(> header.header) .prompt-preset-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
body:has(> header.header) .prompt-preset-grid > button { min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel-2); color: var(--text); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
body:has(> header.header) .prompt-preset-grid > button:hover { border-color: rgba(var(--brand-rgb-b), 0.5); color: var(--sk-txl, rgb(var(--brand-rgb-b))); }

/* 홈 소개 3칸·FAQ: 카드 없이 맨 글자 → 카드·아코디언 */
body:has(> header.header) .info-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 48px; } /* margin 단축형은 nb3·nb4 의 .container 가운데 정렬(margin auto)을 지워 화면 왼쪽에 붙였다 */
body:has(> header.header) .info-card { padding: 22px; border: 1px solid var(--line-soft); border-radius: var(--radius-lg, 20px); background: var(--panel); }
body:has(> header.header) .info-card > svg { display: block; width: 26px; height: 26px; padding: 10px; box-sizing: content-box; margin-bottom: 14px; border-radius: 14px; background: rgba(var(--brand-rgb-a), 0.12); }
body:has(> header.header) .info-card h3 { margin: 0 0 6px; font-size: 16px; line-height: 1.4; }
body:has(> header.header) .info-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
body:has(> header.header) .faq-section { margin-top: 48px; }
body:has(> header.header) .faq-section h2 { margin: 4px 0 18px; font-size: clamp(22px, 2.6vw, 28px); }
body:has(> header.header) .faq-section details { margin-bottom: 10px; border: 1px solid var(--line-soft); border-radius: 16px; background: var(--panel); overflow: hidden; }
body:has(> header.header) .faq-section summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; font-weight: 700; cursor: pointer; list-style: none; }
body:has(> header.header) .faq-section summary::-webkit-details-marker { display: none; }
body:has(> header.header) .faq-section summary::after { content: ""; flex: none; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); opacity: 0.6; transition: transform 0.2s; }
body:has(> header.header) .faq-section details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
body:has(> header.header) .faq-section details p { margin: 0; padding: 0 20px 18px; color: var(--muted); line-height: 1.65; }

/* 섹션 사이 margin 이 그리드 gap 과 겹쳐 쌓여 생긴 빈 띠(도구 그룹 사이 144px, 푸터 위 80px) */
body:has(> header.header) .tools-section > .tool-group { margin-block: 0; }
body:has(> header.header) .tools-section > .tool-group + .tool-group { margin-top: 34px; }
body:has(> header.header) .session-mount:empty { display: none; }
body:has(> header.header) .workspace-section:not(.is-mounted) { margin-block: 40px; }
body:has(> header.header) .tools-section > .workspace-section:not(.is-mounted) { margin-block: 0 !important; }
body:has(> header.header) .tools-section > .tool-group + .workspace-section:not(.is-mounted) { margin-top: 34px !important; }
body:has(> header.header) .footer { margin-top: 48px; }

@media (min-width: 901px) {
  /* nb·nb4: 왼쪽 도구 머리(sticky)가 첫 줄에만 걸려 아래는 텅 빈 칸 → 오른쪽 칸 전체 높이를 따라오게 */
  body:has(> header.header) .tools-section:has(> .tools-head + .tool-group) > .tools-head { grid-row: 1 / span 4; align-self: start; }
  body:has(.hero-audio) .tools-section > .tools-head { align-self: start; }
  /* nb4: 작업 공간이 오른쪽 칸에만 있어 왼쪽이 1000px 빈 칸 → 작업 공간은 두 칸 전체 폭 */
  body:has(.hero-audio) .tools-section > .workspace-section { grid-column: 1 / -1 !important; }
  /* nb3: 오른쪽 작업 공간이 두 줄에 걸쳐 남는 높이가 '머리' 줄에 나뉘어 머리와 카드 사이가 벌어짐 */
  /* nb3: 왼쪽(머리·카드)이 일찍 끝나고 오른쪽 작업 공간만 길게 내려가 500px 빈 칸 → 위아래 한 칸 배치(nb1·nb2 와 같은 흐름) */
  body:has(.video-visual) .tools-section { grid-template-columns: minmax(0, 1fr) !important; grid-template-rows: none !important; }
  body:has(.video-visual) .tools-section > * { grid-column: 1 !important; grid-row: auto !important; position: static !important; }
  body:has(.video-visual) .tools-section > .tool-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
@media (max-width: 900px) {
  body:has(> header.header) .info-grid { grid-template-columns: 1fr; }
}

/* 모바일 2열 도구 카드: 숨긴 화살표(opacity 0)가 폭을 차지해 이름이 '리사이/즈'처럼 쪼개짐 */
@media (max-width: 640px) {
  body:has(> header.header) .tool-grid > .tool-card .t-arrow { display: none !important; }
  body:has(> header.header) .tool-grid > .tool-card { padding-right: 30px !important; gap: 10px !important; }
  body:has(> header.header) .tool-grid > .tool-card .t-name { word-break: keep-all; overflow-wrap: normal; line-height: 1.3; }
  body:has(> header.header) .tool-grid > .tool-card .ntp-star { top: 2px; right: 2px; }
  body:has(> header.header) .workspace-actions > .btn { flex: 1 1 auto; }
  body:has(> header.header) .workspace-panel { padding: 16px; }
  body:has(> header.header) .footer { margin-top: 28px; }
}

/* 히어로 미리보기: 마스코트·칩·숫자 카드가 서로 겹침(모바일) */
/* nb: 숫자 카드가 PC·모바일 모두 마스코트 뒤에 깔려 '0 SE…' 만 삐져나옴 → 배지 줄에 같은 말이 있어 뺀다 */
.hero-pdf-visual > .hero-stat-card { display: none !important; }
@media (max-width: 760px) {
  body:has(> header.header) .hero-visual > .nb-mascot { width: 84px !important; top: 12px !important; right: 12px !important; }
  /* nb1: Before/After 칩이 마스코트에, 숫자 카드가 형식 칩에 겹침 → 칩은 아래로, 숫자 카드는 작게 */
  .hero-image-visual .compare-frame { inset: 28px 18px 104px !important; }
  .hero-image-visual :is(.before-chip, .after-chip) { top: auto !important; bottom: 12px; }
  .hero-image-visual .format-pills { left: 18px !important; right: auto; bottom: 30px !important; gap: 6px !important; }
  .hero-image-visual .format-pills span { padding: 8px 11px !important; font-size: 13px; }
  .hero-image-visual > .hero-stat-card { width: 92px !important; right: 14px !important; bottom: 18px !important; padding: 10px !important; }
  .hero-image-visual > .hero-stat-card span { font-size: 22px !important; }
  /* nb4: 돔(999px) 모서리에 마스코트가 잘림 → 모바일은 둥근 사각 */
  .hero-audio .hero-visual { border-radius: 28px !important; }
}
/* nb2: 프롬프트 카드와 사진 타일이 절대배치로 포개짐 → 모바일은 위아래로 흘린다 */
@media (max-width: 640px) {
  .hero-ai-visual { display: grid !important; align-content: start; gap: 14px; min-height: 0 !important; padding: 84px 18px 22px; }
  .hero-ai-visual > .studio-card-main { position: relative !important; inset: auto !important; width: auto !important; min-height: 0 !important; padding: 18px; }
  .hero-ai-visual .studio-card strong { font-size: 19px; }
  .hero-ai-visual > .photo-grid-preview { position: relative !important; inset: auto !important; width: auto !important; grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 8px; }
  .hero-ai-visual .photo-tile { min-height: 64px !important; padding: 8px !important; border-radius: 14px !important; transform: none !important; font-size: 13px; }
  .hero-ai-visual > .hero-stat-card { top: 18px !important; left: 18px !important; right: auto !important; bottom: auto !important; width: auto !important; display: flex !important; align-items: baseline; gap: 8px; padding: 10px 14px !important; }
  .hero-ai-visual > .hero-stat-card span { font-size: 22px !important; }
}
/* nb2 사진 타일 라벨: 파스텔 위 흰 글자(가상요소 막은 측정·보조기기에서 안 보임) → 타일 자체를 진한 색 면으로 */
.photo-grid-preview .photo-tile::before { content: none !important; }
.photo-grid-preview .photo-tile.tile-a { background: linear-gradient(145deg, var(--sk-onA, #a21caf), var(--sk-on, #be185d)) !important; }
.photo-grid-preview .photo-tile.tile-b { background: linear-gradient(145deg, #1d4ed8, #6d28d9) !important; }
.photo-grid-preview .photo-tile.tile-c { background: linear-gradient(145deg, #047857, #0e7490) !important; }
.photo-grid-preview .photo-tile.tile-d { background: linear-gradient(145deg, #b45309, #be123c) !important; }

/* A형 블로그·도구 정적 페이지 */
/* 그라데이션 헤더의 '로그인' 단추: 진남색 글자 상속(2.5:1)·버튼 기본 글꼴(Arial) */
.static-nav .nba-btn { color: #fff !important; font-family: inherit !important; }
/* 헤더 단추(목록·무료 도구·로그인): 반투명 흰 칩이 브랜드색 바를 밝혀 흰 글자 3.8~4.2:1(로컬 실측) → 어두운 칩 */
body:not(:has(.site-header)) .static-nav :is(.static-links a, .nba-btn) { background: rgba(0, 0, 0, 0.22) !important; border-color: rgba(255, 255, 255, 0.38) !important; color: #fff !important; }
/* '최근 관심도 흐름' 막대 차트: viewBox 580 폭 SVG 가 375 에서 0.46배 → 글자 6px. CSS 글자 크기는 SVG 속성보다 우선한다 */
@media (max-width: 560px) {
  .article-static figure svg text { font-size: 22px !important; }
}

/* ---- A형 개별 마감(2026-10-21) ---- */
/* 등장 효과 안전장치: IntersectionObserver 가 늦거나 놓치면 카드·작업 공간이 투명한 채 남음(nb1 관찰) → 2.5초 뒤 무조건 보이게 */
@keyframes nbRevealSafe { to { opacity: 1; transform: none; } }
body:has(> header.header) .reveal:not(.is-visible) { animation: nbRevealSafe 0.4s ease 2.5s forwards; }
/* 매거진 미니 썸네일(84px)에 분류 글자·NB 마크·아이콘·줄이 한곳에 겹침 → 미니는 아이콘 + 작은 마크만 */
.post-thumb-mini :is(.post-thumb-lines, .post-thumb-title) { display: none !important; }
.post-thumb-mini .post-thumb-mark { top: 6px !important; left: 6px !important; right: auto !important; bottom: auto !important; font-size: 10px !important; padding: 2px 6px !important; }
/* 추천 혜택 카드: 파비콘과 대체 선 아이콘이 한 칸에 같이 들어가 찌그러짐(nb) */
body:has(> header.header) .deal-ico:has(img) .deal-fallico { display: none !important; }
/* YN 계열·369 슬라이드: 이전/다음 화살표가 로고와 CTA 를 덮음 → 화살표 자리만큼 안쪽 여백, 모바일은 점 내비만 */
@media (min-width: 641px) { body:has(> header.header) :is(.promo, .recruit) :is(.promo-slide, .rec-slide) { padding-inline: 58px !important; } }
@media (max-width: 640px) { body:has(> header.header) :is(.promo, .recruit) :is(.promo-arrow, .rec-arrow) { display: none !important; } }
/* nb1: 도구 묶음마다 카드 폭이 1.7배 다르고(auto-fit), 엇갈림 배치로 행 아래선이 지그재그 */
@media (min-width: 641px) {
  body:has(.hero-image-visual) .tool-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important; }
  body:has(.hero-image-visual) .tool-card:nth-child(2n) { transform: none; }
}
/* nb·nb4: 왼쪽 정렬 도구 머리 위 구슬 장식만 가운데 */
body:is(:has(.hero-audio), :has(.hero-pdf-visual)) .tools-section > .tools-head::before { margin: 0 0 12px !important; }
/* nb4: 최신 블로그 4개가 카드·썸네일 없이 굵은 글자 나열, 날짜가 제목에 붙음 */
body:has(.hero-audio) .lp-strip:has(> .lp-mini-card) { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 12px; }
body:has(.hero-audio) .lp-mini-card { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px; align-items: center; padding: 14px; border: 1px solid var(--line-soft); border-radius: 16px; background: var(--panel); color: var(--text); text-decoration: none; transition: border-color 0.18s ease, transform 0.18s ease; }
body:has(.hero-audio) .lp-mini-card:hover { border-color: rgba(var(--brand-rgb-b), 0.45); transform: translateY(-2px); }
body:has(.hero-audio) .lp-mini-card .lp-thumb { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: linear-gradient(135deg, var(--sk-onA), var(--sk-on)); color: #fff; }
body:has(.hero-audio) .lp-mini-card .lp-thumb svg { width: 24px; height: 24px; }
body:has(.hero-audio) .lp-mini-card strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; line-height: 1.4; }
body:has(.hero-audio) .lp-mini-card small { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
@media (max-width: 900px) { body:has(.hero-audio) .lp-strip:has(> .lp-mini-card) { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@media (max-width: 560px) { body:has(.hero-audio) .lp-strip:has(> .lp-mini-card) { grid-template-columns: minmax(0, 1fr) !important; } }
/* nb4: 추천 혜택 패널만 차가운 파랑기 흰색 → 사이트 웜톤 */
body:has(.hero-audio) .affiliate-deals.deals-shell { background: linear-gradient(145deg, rgba(253, 224, 71, 0.1), rgba(239, 68, 68, 0.06)), rgba(255, 248, 247, 0.92) !important; }
/* nb3: VIDEO CONTROL ROOM 에서 01 카드만 두 행을 차지해 아래선이 안 맞음 */
.video-command-card.main { grid-row: auto !important; min-height: 184px; }

/* ==========================================================================
   2026-10-21 공장형(nb5~nb24) 마감 — 디자인 감사 미수정 묶음
   ========================================================================== */
/* 채널 섹션 제목: nb-carousel 이 다시 그린 DOM(.nb-channel-intro h2)이라 위 섹션 제목 크기 규칙이 안 걸림 */
body:has(.site-header) .nb-channel-intro h2 { font-size: clamp(26px, 3.4vw, 40px) !important; letter-spacing: -0.035em !important; line-height: 1.18; }
/* 키네틱 제목: 줄 길이를 고르게(마지막 줄에 한두 글자만 남지 않게) */
.hero h1.nbk, .hero-title.nbk { text-wrap: balance; }

/* 블로그 본문 제휴 바(AD/PICK/NEWS): 남보라·주황·청록 고정색 → 사이트 팔레트(묶음 구분은 태그 글자로) */
.cta-bar { border-left-color: var(--sk-on, var(--brand)) !important; background: color-mix(in srgb, var(--brand), transparent 90%) !important; border-radius: 14px !important; }
.cta-bar .cta-tag { background: var(--sk-on, var(--brand)) !important; color: #fff !important; border-radius: 999px !important; }
/* 관련 글 4장이 3열 → 3+1 로 1장만 남음 → 2×2 (3장이면 3열) */
@media (min-width: 641px) {
  main.latest-posts > article .blog-strip[style*="220px"] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  main.latest-posts > article .blog-strip[style*="220px"]:not(:has(> :nth-child(4))) { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}

/* 컨테이너 가로 잘림(nb-readability .container{overflow-x:clip}, 광고 넘침 방지용)에 헤더 로고·버튼·히어로 미리보기 그림자가 칼로 자른 듯 끊김.
   overflow-clip-margin 은 한 축만 clip 일 때 Chrome 에서 안 먹어(실측) → 광고가 없는 헤더·히어로 컨테이너만 PC 에서 잘림을 푼다 */
@media (min-width: 641px) { :is(.site-header, .hero) .container, .hero.container { overflow-x: visible; } }

/* 작업 폼: 짝 없는 반 칸 입력만 오른쪽 끝선이 들쭉날쭉(nb10) → 줄에 혼자면 끝까지 */
body:has(.site-header) .tool-form { display: flex; flex-wrap: wrap; }
body:has(.site-header) .tool-form > * { flex: 1 1 calc(50% - 6px); min-width: 0; }
body:has(.site-header) .tool-form > :is(.field-wide, :not(.field)) { flex-basis: 100%; }
@media (max-width: 640px) { body:has(.site-header) .tool-form > * { flex-basis: 100%; } }

/* 추천 혜택: 라이트 바탕에 다크용 검정 그림자가 회갈색 얼룩 */
html[data-theme="light"] .affiliate-deals.deals-shell { box-shadow: 0 14px 40px color-mix(in srgb, var(--brand), transparent 90%) !important; }
/* 모바일 추천 혜택이 1열로 2000px 쌓임 → 2열 컴팩트(설명 숨김, 링크·순서 그대로) */
@media (max-width: 640px) {
  body:has(.site-header) .affiliate-deals .deals-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 8px !important; }
  body:has(.site-header) .affiliate-deals .deal-card { flex-direction: column; align-items: flex-start; gap: 8px; min-height: 0; padding: 12px; }
  body:has(.site-header) .affiliate-deals .deal-pitch { display: none !important; }
  body:has(.site-header) .affiliate-deals .deal-name { flex-wrap: wrap; font-size: 14px; }
}

/* NB Family 바 머리글: 주황→분홍→보라 그라데이션 글자가 흰 바탕(A형 전부·공장형 라이트)에서 주황 쪽 2.1:1 → 같은 색조의 진한 그라데이션 */
:is(body:has(> header.header), body:not(:has(.site-header)), html[data-theme="light"] body) #nbFamilyBar .nbf-head b { background-image: linear-gradient(90deg, #b45309, #be185d, #6d28d9) !important; }
/* A형 서브페이지(--text 없음): 이전/다음 단추가 흰 바탕에 흰 화살표 */
body:not(:has(.site-header)):not(:has(> header.header)) #nbFamilyBar .nbf-nav { color: #17161c !important; background: #fff !important; border-color: #e2dfe9 !important; }/* A형 서브페이지 FAQ: 브라우저 기본 삼각형(▶) → 홈 FAQ 와 같은 꺾쇠 */
body:not(:has(.site-header)) .post-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; list-style: none; }
body:not(:has(.site-header)) .post-faq summary::-webkit-details-marker { display: none; }
body:not(:has(.site-header)) .post-faq summary::after { content: ""; flex: none; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); opacity: 0.55; transition: transform 0.2s; }
body:not(:has(.site-header)) .post-faq details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
/* ==========================================================================
   2026-10-21 검수 2차(리뷰어 6명, 로컬 캡처 370장) 확정 결함
   ========================================================================== */
/* 혼자 남는 카드: A형 도구 묶음(2·3·4·5장) — PC 는 장수에 맞는 열, 모바일 2열은 홀수 마지막 카드를 전체 폭으로 */
@media (min-width: 901px) {
  body:has(> header.header) .tool-group .tool-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  body:has(> header.header) .tool-grid:has(> .tool-card:nth-child(4):last-child),
  body:has(> header.header) .tool-grid:has(> .tool-card:nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 640px) {
  :is(body:has(> header.header), body:has(.site-header)) .tool-grid > .tool-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
  :is(body:has(> header.header), body:has(.site-header)) .deals-grid > .deal-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
/* 채널 영상 칸: 6칸 × 182px 고정이라 카드 안쪽 폭(1072px)을 넘어 6번째가 잘림 → 칸 수만큼 나눈다. 모바일 4칸(인스타·틱톡)은 2×2 */
.channel-strip:has(> :nth-child(6):last-child) { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; }
.channel-strip:has(> :nth-child(4):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
@media (max-width: 640px) {
  .channel-strip:has(> :nth-child(6):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .channel-strip:has(> :nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
/* 'YN 계열 무료 서비스'·'369 ENTERTAINMENT' 섹션 라벨(::before 글자): 다크에서 어두운 브랜드색, 라이트·A형에서 연한 파스텔 → 대비 안전 색 */
html:not([data-theme="light"]) body:has(.site-header) :is(.promo-strip, .recruit)::before { color: var(--sk-txd, #cfd5df) !important; }
html[data-theme="light"] body:has(.site-header) :is(.promo-strip, .recruit)::before,
body:has(> header.header) :is(.promo, .recruit)::before { color: var(--sk-txl, #4a4756) !important; }
/* NB Family 띠 카드 설명이 '무료 ›' 앞에서 말줄임표 없이 글자 중간에 잘림 */
#nbFamilyBar .nbf-txt { min-width: 0; }
#nbFamilyBar .nbf-txt > span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* 도구·블로그 페이지 'NB 무료 도구 모음' 카드: 이름 줄 수가 달라 같은 줄 카드끼리 높이·설명 시작선이 지그재그 */
.fam-grid { grid-auto-rows: 1fr; }
.fam-head > span { min-width: 0; line-height: 1.25; }
@media (max-width: 640px) { .fam-head > span { font-size: 13px; } }
/* 결과 칸 안내 문장이 어절 중간에서 줄바꿈('바/로') */
#resultBox, .result-box { word-break: keep-all; overflow-wrap: break-word; }
/* A형 홈 '자동화 피드 896개 로드 · 날짜', '852개 글 자동 피드 연결됨' — 운영 상태 문구 */
.blog-feed-status { display: none !important; }
/* 푸터 아래 상담 카드의 '적용 위치: NB … Tools' — 운영 메모 줄. 페이지 끝에 붙어 잘리던 아래 여백 */
section.yn-growth-footer span[style*="margin-top:6px"] { display: none !important; }
section.yn-growth-footer { margin-bottom: 40px !important; }
/* nb 홈 FAQ(옛 .faq 이름): 브라우저 기본 삼각형 → 꺾쇠 */
body:has(> header.header) .faq summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; list-style: none; }
body:has(> header.header) .faq summary::-webkit-details-marker { display: none; }
body:has(> header.header) .faq summary::after { content: ""; flex: none; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); opacity: 0.6; transition: transform 0.2s; }
body:has(> header.header) .faq details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
/* A형 작업 폼: 브라우저 기본 셀렉트 화살표·색상 칸 → 같은 모양 */
body:has(> header.header) .option-grid select { -webkit-appearance: none; appearance: none; padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2366627a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
body:has(> header.header) .option-grid input[type="color"] { width: 100%; min-height: 44px; padding: 5px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); cursor: pointer; }
body:has(> header.header) .option-grid input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
body:has(> header.header) .option-grid input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 7px; }
/* nb 모바일: 번호 카드의 큰 순번(01~06)이 이름 끝 글자와 겹침 */
@media (max-width: 640px) { body:has(.hero-pdf-visual) .tool-grid > .tool-card::after { display: none !important; } }
/* nb1: 히어로 아래 체크 항목이 연회색·연분홍이라 묻힘 */
body:has(> header.header) .hero-badges li { color: var(--muted) !important; }
body:has(> header.header) .hero-badges svg { color: var(--sk-txl, rgb(var(--brand-rgb-b))) !important; }
/* A형 도구 안내 하단 '… 의 다른 도구': 맨 점 목록 → 카드 */
.article-static article > h2 + ul:last-child { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.article-static article > h2 + ul:last-child > li { margin: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; font-size: 14px; line-height: 1.55; }
.article-static article > h2 + ul:last-child > li > a { display: block; margin-bottom: 2px; font-weight: 800; color: var(--brand3, var(--brand)); }
/* 제휴 고지문 앞 정보 아이콘이 여러 줄 문장의 가운데에 붙어 둘째 줄 글자와 맞닿음 */
.aff-disclosure { display: flex !important; align-items: flex-start !important; gap: 8px !important; }
.aff-disclosure > :first-child { flex: none; margin-top: 0.2em; }
/* 모바일 추천 혜택 2열: 세로로 쌓아 속이 빈 큰 카드 → 아이콘·이름 한 줄 */
@media (max-width: 640px) {
  body:has(.site-header) .affiliate-deals .deal-card { flex-direction: row !important; align-items: center !important; gap: 10px !important; padding: 10px 12px !important; min-height: 64px !important; }
  body:has(.site-header) .affiliate-deals .deal-card .deal-ico { width: 36px !important; height: 36px !important; flex: none; }
  body:has(.site-header) .affiliate-deals .deal-card .deal-cta { display: none !important; }
  body:has(.site-header) .affiliate-deals .deal-card .deal-body { min-width: 0; }
  body:has(.site-header) .affiliate-deals .deal-card .deal-tag { font-size: 10px; }
}
/* 도구 안내 하단 알약 버튼: 두 줄로 꺾이면 왼쪽 정렬로 찌그러짐, 소제목 한 단어만 다음 줄 */
main.latest-posts > article .btn { justify-content: center; text-align: center; }
main.latest-posts > article h2, .article-static h2 { text-wrap: balance; }
/* 최신 블로그 4열 카드: 분류·도메인 줄이 커버 제목보다 커 위계가 뒤집힘 */
.blog-mini:has(> .blog-thumb) > .blog-meta { font-size: 11.5px !important; letter-spacing: 0.02em; }

/* nb2 히어로: AI 구슬이 '10 DAILY TOPIC DRAFTS' 카드 위를 덮음 → 카드는 사진 타일 옆 왼쪽 아래 */
@media (min-width: 641px) { .hero-ai-visual > .hero-stat-card { right: 24px !important; left: auto !important; bottom: 40px !important; top: auto !important; } }
@media (max-width: 640px) { .hero-ai-visual > .hero-stat-card { max-width: calc(100% - 128px); } .hero-ai-visual > .hero-stat-card small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } }
/* 생성기가 기호 아이콘(☐ ■ ①…)을 바꾼 표시 */
.nb-box { display: inline-block; width: 0.82em; height: 0.82em; margin-right: 0.35em; vertical-align: -0.08em; border: 1.6px solid currentColor; border-radius: 3px; opacity: 0.75; }
.nb-sq { display: inline-block; width: 0.5em; height: 0.5em; margin-right: 0.45em; vertical-align: 0.1em; border-radius: 2px; background: var(--sk-on, var(--brand)); }
.nb-num { display: inline-grid; place-items: center; min-width: 1.45em; height: 1.45em; margin-right: 0.3em; border-radius: 999px; font-size: 0.78em; font-weight: 900; color: #fff; background: var(--sk-on, var(--brand)); vertical-align: 0.08em; }
/* 공장형 즐겨찾기 별(app.js 의 ★ 글자 → nb-polish.js 가 SVG 로): 비활성 외곽선, 즐겨찾기만 채움 */
.tool-star svg, .fav-filter svg { width: 15px; height: 15px; display: block; }
.tool-card.faved .tool-star svg path, .fav-filter[aria-pressed="true"] svg path { fill: currentColor; }
/* nb3: 옛 2단 배치용 .workspace-card{min-height:100%} 가 1단에서 순환 크기를 만들어 카드가 작업 공간 상자 밖으로 86px 넘침(다음 슬라이드에 덮임) */
body:has(> header.header) .workspace-section .workspace-card { min-height: 0 !important; }
/* ---- 2026-10-21 검수 3차(수정 판정 + 회귀) ---- */
/* A형 서브페이지 모바일 헤더: 사이트 이름을 넣자 단추 두 개가 가운데에 세로로 쌓여 헤더가 110px → 모바일은 로고만, 단추는 한 줄 */
@media (max-width: 560px) {
  .static-nav .static-home b { display: none; }
  .static-nav .static-links { flex-wrap: nowrap; }
  .static-nav .static-links a { white-space: nowrap; padding: 6px 10px !important; }
}
/* nb1: 'IMG' 구슬이 위쪽 '변환 후 820KB' 칩을 덮음 → PC 도 칩은 비교 틀 아래쪽 */
.hero-image-visual :is(.before-chip, .after-chip) { top: auto !important; bottom: 12px; }
/* 섹션 제목 마지막 한 단어('도구')만 다음 줄로 떨어지지 않게 */
.tools-head h2, .section-head > span, .nb-channel-intro h2, .deals-head h2 { text-wrap: balance; }
/* A형 도구 안내 '다른 도구' 카드: 4장이 3열에 3+1 → 2열 */
@media (min-width: 641px) { .article-static article > h2 + ul:last-child { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.article-static article > h2 + ul:last-child > li > span { display: block; color: var(--soft-ink, #4b4763); }
/* 공장형 도구 안내 계산식 박스: 줄이 꺾이면 이어지는 줄이 맨 왼쪽부터 시작해 정렬이 무너짐 → 줄마다 내어쓰기 */
pre.tool-formula .fl { display: block; padding-left: 1.6em; text-indent: -1.6em; }
/* 블로그 본문 '■' 대체 표시: 네모 → 점 글머리 */
.nb-sq { border-radius: 50%; }
/* 30초 확인 카드: 모바일에서만 다른 섹션보다 8px 안쪽 → 같은 좌우 여백 */
@media (max-width: 640px) { .site-blueprint { width: calc(100% - 24px) !important; } }
/* 공장형 도구 안내 '다른 도구': 이름 — 설명 한 줄 → 이름 아래 설명(생성기가 설명을 span 으로) */
main.latest-posts > article li > a + span { display: block; color: var(--muted); font-size: 0.94em; }
pre.tool-formula .fl:empty { min-height: 1.65em; }
/* (다크 히어로 숫자 색은 포스터형을 빼고 nb-skin.css 에서 — 생성기 make_skins.py) */
/* 채널 구독·팔로우 단추: 진한 채널색 면인데 nb22 라이트 테마에서 글자가 본문색(#131a24)으로 바뀌어 1.7:1 → 항상 흰 글자 */
.channel-head > a.channel-cta { color: #fff !important; }
/* ---- 2026-10-21 검수 4차(마지막 다듬기) ---- */
/* 모바일 링크 줄 끝 '문의' 한 단어만 다음 줄 → 상담 카드·A형 서브페이지 푸터는 칸 맞춘 격자 */
@media (max-width: 560px) {
  section.yn-growth-footer nav { display: grid !important; grid-template-columns: repeat(2, max-content); gap: 8px 22px !important; }
  .static-footer nav { display: grid !important; grid-template-columns: repeat(3, max-content); gap: 6px 18px !important; }
}
/* 공장형 도구 안내 계산식·예시 상자: 모바일에서 줄이 꺾여 계단처럼 무너짐 → 줄은 그대로 두고 상자 안에서 가로로 넘겨 본다(정렬 유지) */
@media (max-width: 640px) {
  pre.tool-formula { white-space: pre !important; overflow-x: auto !important; font-size: 12.5px !important; -webkit-overflow-scrolling: touch; }
  pre.tool-formula .fl { padding-left: 0; text-indent: 0; }
}
/* 공장형 서브페이지 모바일 헤더 둘째 줄: 언어 선택이 없어 테마·로그인이 왼쪽 두 칸에 몰리고 오른쪽이 빔 → 오른쪽 두 칸 */
@media (max-width: 640px) {
  .site-header .nav:not(:has(select)) > .theme-toggle { grid-column: 3; }
  .site-header .nav:not(:has(select)) > .nba-btn { grid-column: 4; }
}
/* A형 모바일 헤더: '일반 / 앱' 단추가 줄을 넘겨 헤더가 3줄(nb2) → 모바일은 '앱' 만 */
@media (max-width: 560px) { body:has(> header.header) .header-right .mode-toggle > span:not(:last-child) { display: none; } }
/* 본문 안 예시 값('용어: 설명', 'DNS: …')이 칩 없이 고정폭 글꼴로 섞여 오타처럼 보임 */
:is(main.latest-posts > article, .article-static article) :not(pre) > code { padding: 0.08em 0.4em; border-radius: 6px; background: color-mix(in srgb, currentColor, transparent 90%); font-size: 0.92em; }
/* 하단 알약 CTA '…열기 — 무료 · 설치 / 없음': 마지막 한 단어만 넘어감 → 줄 길이 균형 */
:is(main.latest-posts > article .btn, p > a.static-btn) { text-wrap: balance; text-align: center; justify-content: center; }
/* nb PDF 모바일: 어두운 미리보기 카드의 큰 그림자가 히어로 경계에서 잘려 회색 띠처럼 보임 */
@media (max-width: 640px) { .hero-pdf-visual { box-shadow: 0 12px 28px rgba(17, 16, 28, 0.18) !important; } }
/* 생성기가 바꾼 원문자 번호 배지: 너무 작아 테두리 잡티처럼 보임 */
.nb-num { font-size: 0.86em; min-width: 1.55em; height: 1.55em; }

/* SCROLL-PERF-20261028: keep desktop scrolling compositor-only and static.
   The old family/promo/mascot loops and edge masks kept repainting while the
   document moved; manual horizontal navigation remains available. */
#nbFamilyBar .nbf-vp {
  overflow-x: auto !important;
  -webkit-mask-image: none !important;
  mask-image: none !important;
}
#nbFamilyBar .nbf-track {
  animation: none !important;
  transform: none !important;
  will-change: auto !important;
}
#nbFamilyBar .nbf-card[data-nbf-copy="true"] { display: none !important; }
.promo-row.marquee,
.logo-mark::after,
.btn.primary::after,
.art-card,
.ws-ico,
.nb-mascot-orb,
.hero-art .nb-mascot-orb,
.hero-visual .nb-mascot-orb,
.nb-mascot-ring,
.nb-mascot-shadow,
.nb-dot,
.nb-eye,
.hero-ai-visual::after,
.hero-image-visual::after,
.prompt-lines i,
.vu-meter i,
.nbfx-aurora {
  animation: none !important;
}
#nbProgress { display: none !important; will-change: auto !important; }

/* BLOG-VIRTUAL-20261028: keep the complete SEO/filterable card list in the DOM,
   but defer layout and paint for cards well outside the viewport. */
.blog-strip > .blog-mini {
  content-visibility: auto;
  contain-intrinsic-size: auto 360px;
}
