/* ============================================================
   insight_additions.css
   (2026-07-07 라이트 테마 재스킨 — insight.css와 동일한 토큰 사용)

   (2026-07-10 배포 점검) Research 페이지에서 이 파일의 클래스
   (.research-hero/.research-tabs/.fr-card/.first-visit-guide)만
   통째로 무스타일로 나오는 증상이 확인됨 = 서버의 /static/ 에 이
   파일이 없거나(404) 07-08 이전 옛 버전이 올라가 있다는 뜻.
   배포 후 반드시 확인:
   1) 브라우저에서 sindok.ai/static/insight_additions.css?v=light5
      를 직접 열어 이 헤더 주석이 보이는지 확인 (404/옛 주석이면 미배포)
   2) git에 static/insight_additions.css가 커밋돼 있는지 확인
      (Render는 리포에 있는 파일만 배포한다)
   값 변경은 /static/colors.css에서만 — 여기 var() 폴백 리터럴은
   colors.css 로딩 실패 시 비상용일 뿐, 소스가 아니다.
   ============================================================ */

/* ── ⓪ Research Hero (2026-07-25 라이트 통일) ──
   다크 네이비 밴드(.research-hero)를 폐기하고 shared/hero.html의 공용
   라이트 히어로(.mx-hero)로 교체 — Home·Compare와 동일 언어. 여기서는
   콘텐츠 열 배치 보정만 한다: .insight-main이 이미 상단 48px 패딩을
   가지므로 히어로 자체 상단 패딩을 줄여 이중 여백을 막는다. ── */
.insight-main .mx-hero { padding: 8px 0 14px; margin-bottom: 26px; }

/* 페이지네이션 버튼(이전/다음) — 다크 밴드 시절 흰 보더/흰 글자였는데
   라이트 배경에선 안 보였다. 라이트 언어로 재정의해 계속 재사용한다. */
.rh-btn-primary, .rh-btn-ghost {
  display: inline-flex; align-items: center; padding: 11px 22px; border-radius: 8px;
  font-weight: 700; font-size: 14px; text-decoration: none; transition: transform .12s;
}
.rh-btn-primary:hover, .rh-btn-ghost:hover { transform: translateY(-1px); }
.rh-btn-primary { background: var(--accent, #1d4ed8); color: #fff; }
.rh-btn-ghost { border: 1px solid var(--line, #e2e8f0); background: var(--surface, #fff); color: var(--text-primary, #334155); }

/* ── ⓪-1b 탭 스위처 (2026-07-09 추가, research-design-notes.md) ──
   보험 리서치 / 전체 / 맥락 3탭. 활성 탭에 배경을 채워 "지금 필터링 중"
   상태를 텍스트 없이도 알 수 있게 했다 — 밑줄만 있던 이전 버전은 존재감이
   약해서 탭이라는 것 자체를 못 알아채는 경우가 있었다. ── */
.research-tabs { display: flex; gap: 6px; margin: 0 0 28px; }
.research-tabs .rt-tab {
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 500;
  padding: 9px 16px; border-radius: 999px; color: var(--text-muted);
  border: 1px solid transparent; transition: background .15s, color .15s;
}
.research-tabs .rt-tab:hover { background: var(--surface-2); color: var(--text-primary); }
.research-tabs .rt-tab.active { background: var(--accent); color: var(--on-accent); font-weight: 700; }
@media (max-width: 480px) {
  .research-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .research-tabs::-webkit-scrollbar { display: none; }
  .research-tabs .rt-tab { white-space: nowrap; flex-shrink: 0; }
}

/* ── ⓪-2 Featured Research (2026-07-09 리디자인) ──
   기존엔 일반 카드와 톤이 거의 같아서 "이게 제일 중요한 글"이라는 확신을
   주지 못했다(research-design-notes.md 진단 ②). research-hero와 동일한
   네이비 그라디언트를 그대로 써서 위계를 압도적으로 분리했다 — 그리드
   카드(rc-card, 흰 배경)와 절대 헷갈릴 수 없게. ── */
.featured-research { margin-bottom: 40px; }
.fr-label {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 12px;
}
.fr-card {
  display: block; position: relative; overflow: hidden;
  border-radius: 16px; padding: 36px 34px;
  background: var(--gradient-hero, linear-gradient(160deg, #0f172a 0%, #1e293b 70%, #1d4ed8 130%));
  color: #fff;
  transition: transform .15s, box-shadow .15s;
}
.fr-card::after {
  content: ""; position: absolute; top: -40%; right: -8%; width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(59,130,246,.35), transparent 70%);
  pointer-events: none;
}
.fr-card:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(15,23,42,.28); }
.fr-category {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em;
  text-transform: uppercase; color: #93c5fd; margin-bottom: 12px; position: relative;
}
.fr-card h2 {
  font-family: var(--font-display); font-size: 26px; font-weight: 700;
  color: #fff; margin: 0 0 10px; line-height: 1.4; position: relative;
}
.fr-card p { color: rgba(255,255,255,.75); font-size: 15px; line-height: 1.65; margin: 0 0 14px; position: relative; max-width: 560px; }
.fr-go { font-family: var(--font-mono); font-size: 12px; color: #fff; position: relative; }

.first-visit-guide {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px 24px;
  margin-bottom: 36px;
  background: rgba(29, 78, 216, 0.04);
}
.guide-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.guide-links { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.guide-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  background: var(--surface);
  color: var(--text-body);
  transition: border-color 0.15s, background 0.15s;
  font-family: var(--font-body);
}
.guide-chip:hover {
  border-color: var(--accent-hi);
  background: var(--surface-2);
  color: var(--text-primary);
}
.chip-floor { font-family: var(--font-mono); font-size: 11px; color: var(--brass); }
.guide-sub { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); }

.read-time { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); }

.entry-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-accent);
  background: var(--seal);
  padding: 2px 8px;
  border-radius: 3px;
  margin-bottom: 6px;
}

.inline-cta {
  margin-top: 48px;
  padding: 28px 32px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--seal);
  border-radius: 0 8px 8px 0;
  background: var(--surface);
}
.inline-cta-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--seal);
  margin-bottom: 10px;
}
.inline-cta-body { font-size: 15px; color: var(--text-muted); margin: 0 0 16px; line-height: 1.65; }
.inline-cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.cta-btn-primary {
  display: inline-block;
  padding: 10px 22px;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-body);
  transition: opacity 0.15s;
}
.cta-btn-primary:hover { opacity: 0.9; color: var(--on-accent); }

@media (max-width: 760px) {
  .first-visit-guide { padding: 16px 18px; }
  .guide-links { gap: 6px; }
  .guide-chip { font-size: 12px; padding: 5px 12px; }

  .inline-cta { padding: 20px 18px; }
  .inline-cta-actions { flex-direction: column; }
  .cta-btn-primary { text-align: center; }


  .series-complete-cta { flex-direction: column; align-items: stretch; padding: 16px 18px; }
  .series-kakao-btn { justify-content: center; }
}

.series-complete-cta {
  margin-top: 32px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent, #1d4ed8);
  border-radius: 0 8px 8px 0;
  background: rgba(29, 78, 216, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.series-complete-cta-text strong {
  display: block;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.series-complete-cta-text span { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); }
.series-kakao-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent, #1d4ed8);
  color: #fff !important;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  padding: 9px 16px;
  border-radius: 7px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.series-kakao-btn::before { content: "💬"; font-size: 13px; }