/* ============================================================
   누구픽 자식 테마 — 메인 스타일
   tokens.css 다음에 로드됨
   ============================================================ */

/* ===== 본체 폰트 (Pretendard) ===== */
body {
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", sans-serif;
  color: var(--text);
  background: var(--bg-soft);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; height: auto; }

/* ===== 카드 — 호버 lift (전역) ===== */
.nugu-card {
  transition:
    transform var(--dur-fast) var(--ease-out-quart),
    box-shadow var(--dur-fast) var(--ease-out-quart);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}
.nugu-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

/* ============================================================
   글 헤더 메타바 (.nugu-article-header)
   authenticity-patch §23.1 — 빵부스러기 + H1 + 데크 + 메타바
   ============================================================ */
.nugu-article-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 28px 0 24px;
  margin-bottom: 24px;
}
.nugu-article-header .nugu-container {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 16px;
}

/* 빵부스러기 */
.nugu-breadcrumb {
  font-size: 13px;
  color: var(--text-mute);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.nugu-breadcrumb .sep { opacity: 0.4; }
.nugu-breadcrumb a { color: var(--text-mute); }
.nugu-breadcrumb a:hover {
  color: var(--ink);
  text-decoration: underline;
}
.nugu-breadcrumb [aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}

/* 카테고리 색상 배지 (8종) */
.nugu-cat-badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 3px;
  color: #fff;
  vertical-align: middle;
  margin-left: 8px;
}
.nugu-cat-badge.cat-review { background: var(--cat-review); }
.nugu-cat-badge.cat-best   { background: var(--cat-best); }
.nugu-cat-badge.cat-vs     { background: var(--cat-vs); }
.nugu-cat-badge.cat-guide  { background: var(--cat-guide); }
.nugu-cat-badge.cat-learn  { background: var(--cat-learn); }
.nugu-cat-badge.cat-avoid  { background: var(--cat-avoid); }
.nugu-cat-badge.cat-voice  { background: var(--cat-voice); }
.nugu-cat-badge.cat-track  { background: var(--cat-track); }

/* 제목 */
.nugu-h1 {
  font-size: 40px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 12px 0 12px;
}

/* 데크(서브헤드) */
.nugu-deck {
  font-size: 19px;
  line-height: 1.5;
  color: var(--text-sub);
  font-weight: 400;
  margin: 0 0 20px;
}

/* 메타바 */
.nugu-meta-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 13px;
  color: var(--text-mute);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.nugu-author-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  flex: 0 0 28px;
  background: var(--bg-soft);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  color: var(--khaki);
  font-family: "Georgia", serif;
}
.nugu-meta-author { color: var(--ink); font-weight: 600; }
.nugu-meta-update strong { color: var(--ink); }
.nugu-meta-actions {
  margin-left: auto;
  display: flex;
  gap: 8px;
}
.nugu-meta-btn {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-button);
  padding: 6px 12px;
  font-size: 12px;
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.nugu-meta-btn:hover { background: #fff; border-color: var(--border-strong); }

/* 모바일 — 메타바 */
@media (max-width: 768px) {
  .nugu-h1 { font-size: 24px; }
  .nugu-deck { font-size: 16px; }
  .nugu-meta-bar { font-size: 12px; gap: 6px 10px; }
  .nugu-meta-actions { width: 100%; margin-left: 0; margin-top: 6px; }
}

/* ============================================================
   사이트 신뢰 바 (.nugu-trust-bar) — 푸터 위
   IntersectionObserver 카운트업 (1.2s ease-out-quart)
   ============================================================ */
.nugu-trust-bar {
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 24px 16px;
  margin-top: 40px;
}
.nugu-trust-bar-grid {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  text-align: center;
}
.nugu-trust-item strong {
  display: block;
  font-size: 24px;
  font-weight: 900;
  color: var(--ink);
  font-family: "Georgia", serif;
  letter-spacing: -0.02em;
}
.nugu-trust-item span {
  display: block;
  font-size: 12px;
  color: var(--text-mute);
  margin-top: 4px;
  letter-spacing: 0.02em;
}

/* 모바일 — 3+2 분할 */
@media (max-width: 768px) {
  .nugu-trust-bar-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px 12px;
  }
  .nugu-trust-item:nth-child(4) { grid-column: 1 / span 2; }
  .nugu-trust-item:nth-child(5) { grid-column: 3 / span 1; }
  .nugu-trust-item strong { font-size: 20px; }
}

/* ============================================================
   푸터 5섹션 (.nugu-footer)
   회사 / 편집 / 법적 / 구독 / 토픽
   ============================================================ */
.nugu-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
  padding: 40px 16px 24px;
  font-size: 14px;
}
.nugu-footer-grid {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 28px;
}
.nugu-footer-col h4 {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.nugu-footer-col ul li { margin-bottom: 8px; list-style: none; }
.nugu-footer-col ul { padding: 0; margin: 0; }
.nugu-footer-col a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  transition: color var(--dur-fast);
}
.nugu-footer-col a:hover { color: #fff; }

/* 푸터 하단 — 고지문 */
.nugu-footer-bottom {
  max-width: 1080px;
  margin: 28px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.7;
}

/* 모바일 — details 아코디언 */
@media (max-width: 768px) {
  .nugu-footer-grid { grid-template-columns: 1fr; gap: 0; }
  .nugu-footer-col {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }
  .nugu-footer-col details { padding: 14px 0; }
  .nugu-footer-col details summary {
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    list-style: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .nugu-footer-col details summary::-webkit-details-marker { display: none; }
  .nugu-footer-col details summary::after {
    content: "+";
    font-size: 18px;
    color: rgba(255, 255, 255, 0.55);
  }
  .nugu-footer-col details[open] summary::after { content: "−"; }
  .nugu-footer-col details ul { margin-top: 12px; }
  /* 데스크탑용 h4는 모바일에서 숨김 */
  .nugu-footer-col > h4 { display: none; }
}

/* ============================================================
   CTA 박스 (.nugu-cta-box) — [coupang] 숏코드 출력
   카피 5종 회전 + rel="sponsored noopener" 자동
   ============================================================ */
.nugu-cta-box {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  padding: 18px 18px;
  margin: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.nugu-cta-text {
  flex: 1 1 240px;
  min-width: 0;
}
.nugu-cta-title {
  font-weight: 800;
  color: var(--ink);
  font-size: 16px;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.nugu-cta-desc {
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.5;
}
.nugu-cta-btn {
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: var(--radius-button);
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  min-height: 44px;
  transition: background var(--dur-fast) var(--ease-out-quart);
}
.nugu-cta-btn:hover {
  background: var(--primary-dark);
  color: #fff;
  text-decoration: none;
}
.nugu-cta-btn:focus-visible { box-shadow: var(--ring); }

/* 고지문 */
.nugu-cta-disclosure {
  flex-basis: 100%;
  font-size: 11px;
  color: var(--text-mute);
  line-height: 1.5;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
}

/* 모바일 — CTA 세로 정렬 */
@media (max-width: 480px) {
  .nugu-cta-box { padding: 14px; }
  .nugu-cta-btn { width: 100%; justify-content: center; }
}

/* ============================================================
   토픽 칩 (가로 스크롤) — 헤더 직하단 (모바일)
   ============================================================ */
.nugu-topic-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 12px 16px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.nugu-topic-chips::-webkit-scrollbar { display: none; }
.nugu-topic-chips a {
  flex: 0 0 auto;
  padding: 8px 14px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 13px;
  color: var(--text);
  white-space: nowrap;
  scroll-snap-align: start;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
}
.nugu-topic-chips a:hover {
  background: var(--bg-card);
  border-color: var(--border-strong);
  text-decoration: none;
}
.nugu-topic-chips a.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
/* ============================================================
   누구픽 Phase 1B — main.css 추가분
   기존 main.css 끝에 append.

   - 홈 7섹션 스타일
   - 누구픽 점수 (5축 미니바, 큰 배지, pill)
   - 단일 글 사이드바 (1024px+)
   - archive 카드 그리드
   - avoid 페이지 카드
   - 비어있을 때 fallback
   ============================================================ */

/* ===== 컨테이너 공통 ===== */
.nugu-container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ===== 섹션 공통 ===== */
.nugu-section {
  margin: 32px 0;
}
.nugu-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 10px;
}
.nugu-section-title {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nugu-section-title .ico {
  font-size: 22px;
}
.nugu-section-link {
  font-size: 13px;
  color: var(--text-mute);
  white-space: nowrap;
}
.nugu-section-link:hover {
  color: var(--ink);
  text-decoration: underline;
}

/* ===== 카드 공통 (홈) ===== */
.nugu-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  display: block;
  text-decoration: none;
  color: inherit;
  transition:
    transform var(--dur-fast) var(--ease-out-quart),
    box-shadow var(--dur-fast) var(--ease-out-quart),
    border-color var(--dur-fast);
  overflow: hidden;
}
.nugu-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  text-decoration: none;
  border-color: var(--border-strong);
}

/* ===== 일러스트 래퍼 ===== */
.nugu-thumb {
  background: var(--bg-soft);
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.nugu-illust {
  width: 80%;
  height: auto;
  max-width: 200px;
}
.nugu-illust-mini {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
}

/* ===== [섹션 1] BEST 픽 가로 스크롤 ===== */
.nugu-hscroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.nugu-hscroll::-webkit-scrollbar {
  height: 6px;
}
.nugu-hscroll::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 4px;
}

.nugu-best-card {
  flex: 0 0 280px;
  scroll-snap-align: start;
  position: relative;
  padding-bottom: 16px;
}
.nugu-best-card .nugu-thumb {
  aspect-ratio: 16 / 10;
}
.nugu-best-card .nugu-rank {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--seal-red);
  color: #fff;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  border-radius: 3px;
  z-index: 2;
}
.nugu-best-card .nugu-topic {
  font-size: 12px;
  color: var(--text-mute);
  margin: 12px 16px 0;
  letter-spacing: 0.02em;
}
.nugu-best-card .nugu-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
  margin: 4px 16px 0;
  letter-spacing: -0.01em;
  line-height: 1.35;
}
.nugu-best-card .nugu-meta {
  font-size: 12px;
  color: var(--text-mute);
  margin: 6px 16px 10px;
}
.nugu-micro-src {
  color: var(--khaki);
  font-size: 11px;
  margin-left: 4px;
}

/* ===== 누구픽 점수 pill (작은 배지형) ===== */
.nugu-score-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  padding: 4px 10px 4px 4px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 16px;
}
.nugu-score-pill .circle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  font-family: "Georgia", serif;
}
.nugu-score-pill.lv-90 .circle {
  background: var(--good);
}
.nugu-score-pill.lv-80 .circle {
  background: var(--primary);
}
.nugu-score-pill.lv-70 .circle {
  background: var(--warn);
}

/* ===== 가격 메타 ===== */
.nugu-price-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 16px 0;
  align-items: center;
}
.nugu-price-tier {
  display: inline-block;
  background: var(--paper);
  border: 1px solid var(--hairline);
  color: var(--ink);
  font-weight: 700;
  font-size: 13px;
  padding: 3px 9px;
  border-radius: 4px;
}
.nugu-price-tier.size-sm {
  font-size: 11px;
  padding: 2px 7px;
}
.nugu-price-tier.size-lg {
  font-size: 16px;
  padding: 6px 14px;
}
.nugu-rel-rank {
  display: inline-block;
  background: rgba(22, 163, 74, 0.08);
  color: var(--good);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}
.nugu-rel-rank.tier-mid {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warn);
}

/* ===== [섹션 2] 토픽 그리드 ===== */
.nugu-topic-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.nugu-topic-tile {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 18px 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: inherit;
  transition:
    transform var(--dur-fast),
    border-color var(--dur-fast);
  min-height: 132px;
}
.nugu-topic-tile:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  text-decoration: none;
}
.nugu-topic-tile .nugu-illust-mini {
  width: 64px;
  height: 64px;
}
.nugu-topic-tile .name {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-top: 4px;
}
.nugu-topic-tile .count {
  font-size: 11px;
  color: var(--text-mute);
}

/* PC: 5열 */
@media (min-width: 768px) {
  .nugu-topic-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
  }
  .nugu-topic-tile {
    min-height: 156px;
    padding: 22px 12px;
  }
}

/* ===== [섹션 3] VS 카드 ===== */
.nugu-vs-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.nugu-vs-card {
  padding: 18px 16px;
}
.nugu-vs-products {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
}
.nugu-vs-products .item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
}
.nugu-vs-products .item .name {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
}
.nugu-vs-products .versus {
  font-weight: 900;
  color: var(--cat-vs);
  font-size: 16px;
  font-family: "Georgia", serif;
  letter-spacing: 0.04em;
}
.nugu-vs-card .stats {
  font-size: 12px;
  color: var(--text-mute);
  margin-top: 12px;
  text-align: center;
}

@media (min-width: 768px) {
  .nugu-vs-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
}

/* ===== [섹션 4] 가격 칩 + 미니 카드 ===== */
.nugu-chip-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.nugu-chip {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-sub);
  cursor: pointer;
  font-family: inherit;
  min-height: 36px;
  transition:
    background var(--dur-fast),
    border-color var(--dur-fast),
    color var(--dur-fast);
}
.nugu-chip:hover {
  border-color: var(--border-strong);
}
.nugu-chip.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.nugu-price-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.nugu-mini-card {
  padding-bottom: 12px;
}
.nugu-mini-card .nugu-thumb {
  aspect-ratio: 1 / 1;
}
.nugu-mini-card .name {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin: 12px 14px 6px;
  line-height: 1.35;
}
.nugu-mini-card .nugu-price-meta {
  margin: 0 14px;
}

@media (min-width: 768px) {
  .nugu-price-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
  }
}

/* 칩 필터 — JS가 hidden 처리 시 */
.nugu-mini-card.is-hidden {
  display: none;
}

/* ===== [섹션 5] 신상 리뷰 가로 행 카드 ===== */
.nugu-review-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.nugu-review-row {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
}
.nugu-review-row .nugu-thumb {
  border-radius: var(--radius-button);
  aspect-ratio: 1 / 1;
}
.nugu-review-row .nugu-illust {
  width: 70%;
}
.nugu-review-row .body .topic {
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: 0.02em;
}
.nugu-review-row .body .name {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-top: 4px;
  line-height: 1.4;
}
.nugu-review-row .body .author {
  font-size: 11px;
  color: var(--text-mute);
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.nugu-review-row .body .avatar {
  font-size: 14px;
}

@media (min-width: 768px) {
  .nugu-review-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

/* ===== [섹션 6] TOP 10 리스트 ===== */
.nugu-top10-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.nugu-top10-row {
  display: grid;
  grid-template-columns: 36px 56px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  text-decoration: none;
  color: inherit;
  transition:
    border-color var(--dur-fast),
    transform var(--dur-fast);
}
.nugu-top10-row:hover {
  border-color: var(--border-strong);
  transform: translateX(2px);
  text-decoration: none;
}
.nugu-top10-row .rank-num {
  font-size: 22px;
  font-weight: 900;
  color: var(--text-mute);
  font-family: "Georgia", serif;
  text-align: center;
}
.nugu-top10-row.is-podium .rank-num {
  color: var(--seal-red);
}
.nugu-top10-row .thumb-mini {
  width: 56px;
  height: 56px;
  background: var(--bg-soft);
  border-radius: var(--radius-button);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.nugu-top10-row .thumb-mini .nugu-illust {
  width: 80%;
}
.nugu-top10-row .info .name {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
}
.nugu-top10-row .info .topic {
  font-size: 11px;
  color: var(--text-mute);
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.nugu-top10-row .nugu-score-pill {
  margin: 0;
}

/* ===== [섹션 7] FAQ 아코디언 ===== */
.nugu-faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.nugu-faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.nugu-faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  min-height: 48px;
  letter-spacing: -0.01em;
}
.nugu-faq-q .arrow {
  transition: transform var(--dur-fast) var(--ease-out-quart);
  color: var(--text-mute);
}
.nugu-faq-item.is-open .nugu-faq-q .arrow {
  transform: rotate(180deg);
}
.nugu-faq-a {
  display: none;
  padding: 0 16px 16px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-sub);
}
.nugu-faq-item.is-open .nugu-faq-a {
  display: block;
}

/* ===== 빈 데이터 fallback ===== */
.nugu-empty {
  text-align: center;
  padding: 32px 16px;
  color: var(--text-mute);
  font-size: 14px;
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: var(--radius-card);
}

/* ===== 파트너스 고지문 ===== */
.nugu-affiliate-notice {
  margin: 32px auto 0;
  padding: 16px 18px;
  background: var(--paper);
  border-left: 3px solid var(--seal-red);
  border-radius: 4px;
  font-size: 12px;
  color: var(--text-sub);
  line-height: 1.7;
  max-width: 100%;
}

/* ============================================================
   누구픽 점수 — 큰 배지 + 5축 미니바 (single 본문)
   ============================================================ */
.nugu-score-block {
  margin: 24px 0;
}
.nugu-score-big-wrap {
  text-align: center;
  margin-bottom: 14px;
}
.nugu-score-big {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 12px 22px 12px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}
.nugu-score-big .num {
  font-size: 44px;
  font-weight: 900;
  font-family: "Georgia", serif;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1;
  min-width: 60px;
  text-align: center;
}
.nugu-score-big.lv-90 .num {
  color: var(--good);
}
.nugu-score-big.lv-80 .num {
  color: var(--primary);
}
.nugu-score-big.lv-70 .num {
  color: var(--warn);
}
.nugu-score-big .lbl {
  text-align: left;
  font-size: 13px;
  color: var(--text-mute);
  line-height: 1.4;
}
.nugu-score-big .lbl b {
  display: block;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

/* 5축 미니바 */
.nugu-score-detail {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 16px 18px;
}
.nugu-score-row {
  display: grid;
  grid-template-columns: 100px 1fr 36px;
  gap: 10px;
  align-items: center;
}
.nugu-score-row .label {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}
.nugu-score-row .label small {
  color: var(--text-mute);
  font-weight: 500;
  margin-left: 3px;
}
.nugu-score-row .bar {
  background: var(--bg-soft);
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}
.nugu-score-row .bar-fill {
  height: 100%;
  background: linear-gradient(
    90deg,
    var(--primary) 0%,
    var(--primary-dark) 100%
  );
  width: 0%;
  border-radius: 4px;
  transition: width 1.2s var(--ease-out-quart);
}
.nugu-score-row .num {
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
  font-family: "Georgia", serif;
  text-align: right;
}
.nugu-score-meta {
  font-size: 11px;
  color: var(--khaki);
  text-align: right;
  margin: 8px 4px 0;
  line-height: 1.5;
}

/* ============================================================
   글 본문 공통 (single .nugu-article)
   ============================================================ */
.nugu-single-main {
  background: var(--bg-soft);
  padding: 0 0 40px;
}
.nugu-article-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  padding: 0 0 12px;
}
@media (min-width: 1024px) {
  .nugu-article-layout.has-sidebar {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 36px;
  }
}
.nugu-article {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 0 0 24px;
  overflow: hidden;
}
.nugu-article > .nugu-article-header {
  padding-top: 24px;
}
.nugu-article > p,
.nugu-article > h2,
.nugu-article > h3,
.nugu-article > ul,
.nugu-article > ol,
.nugu-article > .nugu-cta-box,
.nugu-article > .nugu-score-block,
.nugu-article > .nugu-conclusion-box,
.nugu-article > .nugu-stat-box,
.nugu-article > .nugu-bundle-widget,
.nugu-article > .related-groups,
.nugu-article > .nugu-cta-emphasis,
.nugu-article > .nugu-post-disclosure {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 18px;
  padding-right: 18px;
}
.nugu-article > h2 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-top: 28px;
  margin-bottom: 12px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}
.nugu-article > h3 {
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
  margin: 20px auto 8px;
}
.nugu-article > p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 12px;
}
.nugu-article > ul,
.nugu-article > ol {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 12px;
  list-style: disc;
  padding-left: 36px;
}

/* 결론 박스 */
.nugu-conclusion-box {
  background: linear-gradient(180deg, #fff8e7 0%, #fffcf0 100%);
  border: 1px solid #f2d88a;
  border-left: 4px solid #f59e0b;
  border-radius: var(--radius-card);
  padding: 18px 20px;
  margin: 22px auto;
}
.nugu-conclusion-box h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 8px;
}
.nugu-conclusion-box p {
  font-size: 15px;
  color: var(--text);
  line-height: 1.7;
  margin: 0 0 10px;
}
.nugu-conclusion-box .cta-link {
  display: inline-block;
  font-weight: 700;
  font-size: 14px;
  color: var(--primary);
  border-bottom: 1px dashed var(--primary);
}

/* 통계 박스 */
.nugu-stat-box {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  padding: 16px;
  margin: 20px auto;
}
.nugu-stat-box .stat-item {
  text-align: center;
  padding: 6px 4px;
}
.nugu-stat-box .stat-item .num {
  display: block;
  font-size: 22px;
  font-weight: 900;
  color: var(--ink);
  font-family: "Georgia", serif;
  letter-spacing: -0.02em;
}
.nugu-stat-box .stat-item .lbl {
  display: block;
  font-size: 11px;
  color: var(--text-mute);
  margin-top: 4px;
  line-height: 1.5;
}

/* CTA 강조 박스 (글 끝) */
.nugu-cta-emphasis {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-card);
  padding: 22px 22px 24px;
  margin: 26px auto;
  text-align: center;
}
.nugu-cta-emphasis h4 {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 8px;
}
.nugu-cta-emphasis p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 14px;
  line-height: 1.6;
}
.nugu-cta-emphasis .cta-btn {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: var(--radius-button);
  font-size: 14px;
  min-height: 44px;
  line-height: 20px;
}
.nugu-cta-emphasis .cta-btn:hover {
  background: var(--primary-dark);
  color: #fff;
  text-decoration: none;
}

/* 함께 사면 좋은 상품 */
.nugu-bundle-widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 18px;
  margin: 22px auto;
}
.nugu-bundle-widget .h {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 4px;
}
.nugu-bundle-widget .desc {
  font-size: 13px;
  color: var(--text-mute);
  margin-bottom: 14px;
}
.nugu-bundle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.nugu-bundle-item {
  text-align: center;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-button);
  padding: 14px 8px;
}
.nugu-bundle-item .nugu-illust-mini {
  width: 48px;
  height: 48px;
  margin: 0 auto 6px;
}
.nugu-bundle-item .name {
  font-size: 12px;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.4;
}

/* 관련글 4그룹 */
.related-groups {
  margin: 28px auto;
}
.related-groups .rg-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 12px;
}
.rg-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.rg-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 14px 16px;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: border-color var(--dur-fast);
}
.rg-card:hover {
  border-color: var(--border-strong);
}
.rg-card .rg-tag {
  font-size: 11px;
  color: var(--text-mute);
  font-weight: 700;
  letter-spacing: 0.02em;
}
.rg-card .rg-tag.tag-newer {
  color: var(--good);
}
.rg-card .rg-tag.tag-trending {
  color: var(--seal-red);
}
.rg-card .rg-tag.tag-cross {
  color: var(--cat-vs);
}
.rg-card .title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin: 6px 0;
}
.rg-card .meta {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 11px;
  color: var(--text-mute);
}
@media (min-width: 768px) {
  .rg-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

/* ============================================================
   사이드바 (1024px+ 만 노출)
   ============================================================ */
.nugu-sidebar {
  display: none;
}
@media (min-width: 1024px) {
  .nugu-sidebar {
    display: block;
    position: sticky;
    top: 24px;
    align-self: start;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
  }
}
.nugu-sb-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 14px 16px;
  margin-bottom: 12px;
}
.nugu-sb-block .sb-h {
  font-size: 12px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: 0.04em;
  margin: 0 0 10px;
}
/* TOC */
.nugu-sb-toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.nugu-sb-toc li {
  margin-bottom: 8px;
  border-left: 2px solid transparent;
  padding-left: 8px;
  transition: border-color var(--dur-fast);
}
.nugu-sb-toc li.is-active {
  border-color: var(--primary);
}
.nugu-sb-toc a {
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.4;
}
.nugu-sb-toc li.is-active a {
  color: var(--ink);
  font-weight: 700;
}
.nugu-sb-toc a:hover {
  color: var(--ink);
  text-decoration: none;
}

/* 저자 미니카드 */
.nugu-sb-author {
  display: flex;
  gap: 12px;
  align-items: center;
}
.nugu-sb-author .avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-size: 22px;
  flex: 0 0 44px;
}
.nugu-sb-author .info .name {
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
}
.nugu-sb-author .info .role {
  font-size: 11px;
  color: var(--text-mute);
}
.nugu-sb-author .info .more {
  display: inline-block;
  font-size: 12px;
  color: var(--primary);
  margin-top: 4px;
}

/* 관련글 */
.nugu-sb-related ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.nugu-sb-related li {
  border-bottom: 1px dashed var(--border);
  padding: 8px 0;
}
.nugu-sb-related li:last-child {
  border-bottom: none;
}
.nugu-sb-related a {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  display: block;
  line-height: 1.4;
}
.nugu-sb-related a:hover {
  color: var(--primary);
}
.nugu-sb-related .meta {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 11px;
  color: var(--text-mute);
  margin-top: 4px;
}

/* 분석 방법론 */
.nugu-sb-method {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius-button);
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--hairline);
}
.nugu-sb-method:hover {
  background: var(--bg-card);
  text-decoration: none;
}
.nugu-sb-method .arr {
  color: var(--primary);
}

/* ============================================================
   archive 페이지 (카테고리)
   ============================================================ */
.nugu-archive-main {
  background: var(--bg-soft);
  padding: 24px 0 40px;
  min-height: 60vh;
}
.nugu-archive-header {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 24px;
  margin-bottom: 22px;
  border-top: 3px solid var(--text-mute);
}
.nugu-archive-cat-review {
  border-top-color: var(--cat-review);
}
.nugu-archive-cat-best {
  border-top-color: var(--cat-best);
}
.nugu-archive-cat-vs {
  border-top-color: var(--cat-vs);
}
.nugu-archive-cat-guide {
  border-top-color: var(--cat-guide);
}
.nugu-archive-cat-learn {
  border-top-color: var(--cat-learn);
}
.nugu-archive-cat-avoid {
  border-top-color: var(--cat-avoid);
}
.nugu-archive-cat-voice {
  border-top-color: var(--cat-voice);
}
.nugu-archive-cat-track {
  border-top-color: var(--cat-track);
}

.nugu-archive-title {
  font-size: 28px;
  font-weight: 900;
  color: var(--ink);
  margin: 12px 0 6px;
}
.nugu-archive-desc {
  font-size: 14px;
  color: var(--text-sub);
  margin: 0;
}

.nugu-archive-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 768px) {
  .nugu-archive-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}
@media (min-width: 1024px) {
  .nugu-archive-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.nugu-archive-card {
  display: flex;
  flex-direction: column;
}
.nugu-archive-card .body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.nugu-archive-card .topic {
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: 0.02em;
}
.nugu-archive-card .name {
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
  margin: 4px 0 8px;
  line-height: 1.35;
}
.nugu-archive-card .excerpt {
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.55;
  margin: 0 0 12px;
  flex: 1;
}
.nugu-archive-card .bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}
.nugu-archive-card .nugu-score-pill {
  margin: 0;
}

/* pagination */
.nugu-pagination {
  margin-top: 28px;
  text-align: center;
}
.nugu-pagination .nav-links {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}
.nugu-pagination .page-numbers {
  display: inline-block;
  padding: 8px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-button);
  font-size: 13px;
  color: var(--text);
  text-decoration: none;
  min-height: 36px;
  line-height: 20px;
}
.nugu-pagination .page-numbers.current,
.nugu-pagination .page-numbers:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

/* 빈 상태 */
.nugu-empty-state {
  text-align: center;
  padding: 60px 20px;
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: var(--radius-card);
}
.nugu-empty-state p {
  font-size: 15px;
  color: var(--text-mute);
  margin-bottom: 14px;
}
.nugu-link-back {
  display: inline-block;
  font-weight: 700;
  color: var(--primary);
}

/* ============================================================
   /avoid/ 페이지
   ============================================================ */
.nugu-avoid-policy-note {
  background: rgba(178, 58, 47, 0.06);
  border: 1px solid rgba(178, 58, 47, 0.25);
  border-left: 4px solid var(--seal-red);
  border-radius: var(--radius-card);
  padding: 16px 18px;
  margin: 0 auto 22px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-sub);
  max-width: 760px;
}
.nugu-avoid-policy-note strong {
  color: var(--seal-red);
}
.nugu-avoid-policy-note .sig {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--khaki);
}

.nugu-avoid-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 20px 22px;
  margin: 0 auto 14px;
  max-width: 760px;
  border-top: 3px solid var(--seal-red);
}
.nugu-avoid-card .head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.nugu-avoid-card .head .name {
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
  margin: 0;
}
.nugu-avoid-card .nugu-low {
  background: rgba(178, 58, 47, 0.08);
  color: var(--seal-red);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
}
.nugu-avoid-card .reason-h {
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
  margin: 8px 0 6px;
}
.nugu-avoid-card ul {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
  margin: 0 0 12px;
  padding-left: 22px;
}
.nugu-avoid-card .neg-stats {
  background: var(--bg-soft);
  border-radius: var(--radius-button);
  padding: 10px 12px;
  font-size: 12px;
  color: var(--text-sub);
  margin-bottom: 10px;
}
.nugu-avoid-card .alt {
  font-size: 13px;
  color: var(--good);
  background: rgba(22, 163, 74, 0.06);
  padding: 8px 12px;
  border-radius: var(--radius-button);
  margin-bottom: 10px;
}
.nugu-avoid-card .no-cta {
  display: inline-block;
  font-size: 11px;
  color: var(--text-mute);
  font-style: italic;
}

/* ============================================================
   홈 모바일 네비 (하단 고정 — Phase B로 미루나, 잠재 슬롯 확보)
   ============================================================ */

/* ============================================================
   반응형 보정 (모바일 480 / PC 1024+)
   ============================================================ */
@media (max-width: 480px) {
  .nugu-section-title {
    font-size: 17px;
  }
  .nugu-best-card {
    flex: 0 0 240px;
  }
  .nugu-stat-box {
    padding: 12px;
  }
  .nugu-stat-box .stat-item .num {
    font-size: 18px;
  }
  .nugu-score-row {
    grid-template-columns: 80px 1fr 30px;
    gap: 8px;
  }
  .nugu-score-big .num {
    font-size: 36px;
    min-width: 50px;
  }
  .nugu-article > h2 {
    font-size: 19px;
  }
}
@media (max-width: 768px) {
  .nugu-bundle-grid {
    grid-template-columns: 1fr;
  }
}

/* prefers-reduced-motion 추가 분기 */
@media (prefers-reduced-motion: reduce) {
  .nugu-card:hover {
    transform: none;
  }
  .nugu-top10-row:hover {
    transform: none;
  }
  .nugu-score-row .bar-fill {
    transition: none;
  }
}

/* ============================================================
   Phase 1B 핫픽스 — 푸터 PC에서 details summary 숨김
   (PC: h4 + ul, 모바일: details 아코디언)
   ============================================================ */
@media (min-width: 769px) {
  .nugu-footer-col details > summary { display: none; }
  .nugu-footer-col details ul { display: block; margin: 0; padding: 0; }
}

/* ============================================================
   이슈 #1 — 단일 글 헤더 대표 이미지 영역
   - 16:9 비율 (1200×675), 옅은 그라데이션 배경
   - 첨부 대표이미지 우선, 없으면 SVG 일러스트
   ============================================================ */
.nugu-article-hero {
	margin: 24px 0 0;
	padding: 0;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: linear-gradient(135deg, #eef3fc 0%, #f8fafd 100%);
	border-radius: 12px;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 4px 12px rgba(15, 23, 42, .03);
}
.nugu-article-hero img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.nugu-article-hero .nugu-hero-illust {
	width: 56%;
	max-width: 380px;
	height: auto;
	display: block;
}
@media (max-width: 768px) {
	.nugu-article-hero {
		margin-top: 16px;
		border-radius: 8px;
	}
	.nugu-article-hero .nugu-hero-illust {
		width: 64%;
		max-width: 280px;
	}
}
@media (max-width: 480px) {
	.nugu-article-hero .nugu-hero-illust {
		width: 70%;
		max-width: 220px;
	}
}
