@charset "UTF-8";
/* ═══════════════════════════════════════════════════
   1. 최상위 컨테이너
   ═══════════════════════════════════════════════════ */
.response-example-full {
  width: 100%;
  font-size: 13px;
  line-height: 1.7;
}


/* ═══════════════════════════════════════════════════
   2. 본문 구조
   ═══════════════════════════════════════════════════ */
.answer-intro { font-size: 13px; color: #475569; margin-bottom: 12px; }
.answer-body  { font-size: 13px; color: #334155; margin: 12px 0; }
.answer-body p { margin: 6px 0; }
.answer-note  { font-size: 12px; color: #64748b; padding: 8px 10px; background: #f8fafc; border-radius: 4px; margin: 10px 0; }
.answer-source { font-size: 11px; color: #94a3b8; margin-top: 10px; padding-top: 8px; border-top: 1px solid #e2e8f0; }
.answer-summary {
  font-size: 13px; color: #334155;
  padding: 10px 12px;
  background: #f0fdf4;
  border-left: 3px solid #059669;
  border-radius: 0 4px 4px 0;
  margin-bottom: 12px;
}


/* ═══════════════════════════════════════════════════
   3. 비순서 목록 (ul > li) — 파란 dot
   ═══════════════════════════════════════════════════ */
.response-example-full ul {
  margin: 8px 0;
  padding-left: 20px;
  list-style: none;
}
.response-example-full ul > li {
  margin-bottom: 6px;
  position: relative;
  padding-left: 14px;
}
.response-example-full ul > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  background: #3b82f6;
  border-radius: 50%;
}


/* ═══════════════════════════════════════════════════
   4. 순서 목록 (ol > li) — 카드형 + 파란 번호 원
   ═══════════════════════════════════════════════════ */
.response-example-full ol {
  margin: 10px 0;
  padding-left: 0;
  list-style: none;
  counter-reset: ol-counter;
}
.response-example-full ol > li {
  margin-bottom: 10px;
  position: relative;
  padding: 12px 14px 12px 40px;
  counter-increment: ol-counter;
  background: #f8fafc;
  border-radius: 8px;
  border-left: 3px solid #3b82f6;
}
.response-example-full ol > li::before {
  content: counter(ol-counter);
  position: absolute;
  left: 10px;
  top: 12px;
  width: 22px;
  height: 22px;
  background: #3b82f6;
  color: #fff;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
/* li 첫 번째 strong(항목명) 강조 */
.response-example-full li > strong:first-child {
  color: #1e3a8a;
  font-size: 13.5px;
}


/* ═══════════════════════════════════════════════════
   5. 출처 참조 — 인라인 뱃지(숨김) + 출처 라인(표시)

   ※ 중요: .reference-label 은 프론트에서 호버/클릭 이벤트를
     처리하므로 DOM에는 유지하되, 본문 안에서는 숨기고
     source-ref-line 안에서만 표시합니다.
   ═══════════════════════════════════════════════════ */

/* 5-1. 인라인 뱃지 — 강제 숨김 (본문 텍스트 안에 삽입된 것) */
/*     !important 필수 — 프론트 기존 CSS보다 우선순위를 가져야 함 */
.reference-label {
  display: none !important;
}

/* 5-2. 우측 정렬 출처 라인 (섹션/표 끝에 배치) */
.source-ref-line {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin: 4px 0 14px;
  padding-top: 4px;
  font-size: 11px;
  color: #94a3b8;
}

/* 5-3. source-ref-line 안의 reference-label — 표시 + 이벤트 동작 */
/*     !important로 5-1의 숨김을 override */
.source-ref-line .reference-label {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  background: #3b82f6;
  color: #fff;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
  flex-shrink: 0;
}
.source-ref-line .reference-label:hover {
  background: #1d4ed8;
}

/* 5-4. 출처 위치 텍스트 (표/그림 번호 + 문서명) */
.source-ref-line .ref-location {
  color: #64748b;
  font-size: 11px;
  font-style: italic;
}


/* ═══════════════════════════════════════════════════
   6. 트렌드(시계열) 테이블
   ═══════════════════════════════════════════════════ */
.trend-table-wrap { margin: 12px 0; overflow-x: auto; }
.trend-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.trend-table thead tr { border-bottom: 2px solid #e2e8f0; }
.trend-table th { padding: 8px; text-align: right; color: #64748b; font-weight: 600; }
.trend-table th:first-child { text-align: left; }
.trend-table th.trend-bar-col { text-align: left; width: 40%; }
.trend-table tbody tr { border-bottom: 1px solid #f1f5f9; }
.trend-table tbody tr.latest { background: #f0f7ff; }
.trend-table tbody tr.latest td { font-weight: 700; }
.trend-table td { padding: 8px; text-align: right; }
.trend-table td:first-child { text-align: left; }
.trend-table td.trend-value { font-weight: 600; }
.trend-up   { color: #059669; font-weight: 600; }
.trend-down { color: #ef4444; font-weight: 600; }
.trend-na   { color: #94a3b8; font-style: italic; }
.trend-bar  { background: #e2e8f0; border-radius: 4px; height: 18px; position: relative; overflow: hidden; }
.trend-bar-fill { background: #0F5499; border-radius: 4px; height: 18px; }
.trend-table tbody tr.latest .trend-bar-fill { background: #3b82f6; }


/* ═══════════════════════════════════════════════════
   7. 비교 테이블
   ═══════════════════════════════════════════════════ */
.compare-table-full { margin: 12px 0; }
.compare-table-full table { width: 100%; border-collapse: collapse; font-size: 12px; }
.compare-table-full th,
.compare-table-full td { padding: 8px 10px; text-align: center; border-bottom: 1px solid #e2e8f0; }
.compare-table-full th { background: #f8fafc; font-weight: 600; color: #475569; }


/* ═══════════════════════════════════════════════════
   8. 섹션 헤더
   ═══════════════════════════════════════════════════ */
.section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 18px 0 10px 0;
  padding-bottom: 6px;
  border-bottom: 2px solid #e2e8f0;
}
.section-header .section-title {
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
}


/* ═══════════════════════════════════════════════════
   9. 강조 박스
   ═══════════════════════════════════════════════════ */
.highlight-box {
  background: #f0f9ff;
  border-left: 4px solid #3b82f6;
  padding: 10px 14px;
  margin: 10px 0;
  border-radius: 6px;
  font-size: 13px;
  color: #1e40af;
}


/* ═══════════════════════════════════════════════════
   10. 통계표 문항 컨텍스트 (survey-context)
   ═══════════════════════════════════════════════════ */
.survey-context {
  position: relative;
  background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%);
  border: 1px solid #bfdbfe;
  border-left: 4px solid #0f5499;
  border-radius: 6px;
  padding: 10px 14px 10px 16px;
  margin: 10px 0 14px;
  box-shadow: 0 1px 4px rgba(15, 84, 153, 0.06);
}
.survey-question-label {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
  background: #0f5499;
  padding: 2px 7px;
  border-radius: 8px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.survey-question {
  margin: 0 0 8px;
  padding: 0;
  border: 0;
  font-size: 13px;
  font-weight: 600;
  color: #0b2d52;
  line-height: 1.5;
  letter-spacing: -0.01em;
  quotes: "\201C" "\201D";
}
.survey-question::before {
  content: open-quote;
  color: #0f5499; font-size: 14px; font-weight: 700; margin-right: 2px;
}
.survey-question::after {
  content: close-quote;
  color: #0f5499; font-size: 14px; font-weight: 700; margin-left: 2px;
}
.survey-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 11px;
  padding-top: 6px;
  border-top: 1px dashed #bfdbfe;
}
.survey-meta > span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  line-height: 1.3;
}
.survey-meta .survey-table-name {
  background: #dbeafe; color: #1e3a8a; border: 1px solid #93c5fd;
}
.survey-meta .survey-base {
  background: #fef3c7; color: #78350f; border: 1px solid #fcd34d;
}


/* ═══════════════════════════════════════════════════
   11. 다중 base 동시 답변 (survey-multi-base)
   ═══════════════════════════════════════════════════ */
.survey-multi-base {
  margin: 12px 0 18px;
  padding: 0;
}
.survey-multi-base .multi-base-intro {
  font-size: 12px;
  color: #475569;
  background: #f1f5f9;
  padding: 8px 12px;
  border-radius: 6px;
  margin-bottom: 10px;
  border-left: 3px solid #64748b;
}
.survey-multi-base > .survey-context {
  margin-top: 0;
  margin-bottom: 8px;
}
.survey-multi-base .base-diff-note {
  margin-top: 12px;
  padding: 8px 12px;
  background: #fffbeb;
  border: 1px dashed #fcd34d;
  border-radius: 6px;
  font-size: 11px;
  color: #78350f;
  line-height: 1.5;
}
.survey-multi-base .base-diff-note::before {
  content: "기준 비교 ";
  font-weight: 700;
  color: #92400e;
}


/* ═══════════════════════════════════════════════════
   12. 간단 채팅
   ═══════════════════════════════════════════════════ */
.chat-simple { padding: 12px 14px; background: #f8fafc; border-radius: 8px; }
.chat-simple p { font-size: 13px; color: #334155; margin: 0 0 8px 0; line-height: 1.6; }


/* ═══════════════════════════════════════════════════
   13. 기타 컴포넌트
   ═══════════════════════════════════════════════════ */

/* 비주얼 테이블 (바 차트) */
.visual-table { margin: 10px 0; }
.visual-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid #f1f5f9; }
.visual-row:last-child { border-bottom: none; }
.visual-row .row-label { width: 80px; font-size: 12px; color: #475569; flex-shrink: 0; }
.row-bar-area { flex: 1; position: relative; }
.visual-row .row-bar { height: 18px; background: linear-gradient(90deg, #3b82f6, #1d4ed8); border-radius: 4px; }
.visual-row .row-value { position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 11px; color: #475569; background: white; padding: 0 4px; }

/* 정의 하이라이트 */
.definition-highlight { text-align: center; padding: 16px; background: linear-gradient(135deg, #eff6ff, #dbeafe); border-radius: 8px; margin-bottom: 12px; }
.def-main { display: flex; flex-direction: column; gap: 6px; }
.def-term-large { font-size: 18px; font-weight: 700; color: #1e40af; margin-bottom: 6px; }
.def-desc { font-size: 13px; color: #1e3a8a; }

/* Q&A 스타일 */
.qa-style { margin: 12px 0; }
.qa-answer { font-size: 13px; color: #334155; line-height: 1.7; }
.qa-answer > p { margin: 8px 0; }
.qa-section { margin: 16px 0; padding: 12px 14px; background: #f8fafc; border-left: 3px solid #3b82f6; border-radius: 0 6px 6px 0; }
.qa-section > strong { display: block; font-size: 14px; font-weight: 700; color: #1e40af; margin-bottom: 6px; }
.qa-section > p { font-size: 13px; color: #475569; margin: 4px 0; line-height: 1.6; }

/* 원인 분석 */
.cause-item { display: flex; gap: 10px; margin-bottom: 10px; padding: 10px; background: #f8fafc; border-radius: 6px; }
.cause-num { width: 24px; height: 24px; background: #3b82f6; color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; flex-shrink: 0; }
.cause-detail > strong { font-size: 13px; color: #1e293b; display: block; margin-bottom: 4px; }
.cause-detail p { font-size: 12px; color: #64748b; margin: 0; }
.cause-detail p strong { color: #1e293b; }

/* 핵심 메시지 */
.key-message { background: linear-gradient(135deg, #f0f9ff, #e0f2fe); padding: 16px; border-radius: 10px; margin-bottom: 12px; text-align: center; }
.message-highlight { font-size: 15px; color: #0369a1; font-style: italic; }

/* 제안/추천 리스트 */
.suggestion-list { display: flex; flex-direction: column; gap: 12px; margin: 12px 0; }
.suggestion-item { display: flex; gap: 12px; padding: 12px; background: #f8fafc; border-radius: 8px; border: 1px solid #e2e8f0; }
.sugg-num { font-size: 11px; font-weight: 600; color: #3b82f6; padding: 4px 8px; background: #eff6ff; border-radius: 4px; white-space: nowrap; height: fit-content; }
.sugg-content { flex: 1; }
.sugg-title { font-size: 13px; font-weight: 600; color: #1e293b; margin-bottom: 6px; }
.sugg-detail { font-size: 12px; color: #64748b; margin-bottom: 8px; }

/* 전략 하이라이트 */
.strategy-highlight { background: linear-gradient(135deg, #eff6ff, #dbeafe); padding: 16px; border-radius: 10px; text-align: center; }
.strategy-label { font-size: 11px; font-weight: 600; color: #3b82f6; background: white; padding: 2px 10px; border-radius: 10px; display: inline-block; margin-bottom: 8px; }
.strategy-text { font-size: 15px; color: #1e40af; font-style: italic; }

/* 이슈 리스트 */
.issue-list-detailed { display: flex; flex-direction: column; gap: 10px; margin: 12px 0; }
.issue-item { display: flex; gap: 12px; padding: 10px 12px; background: #f8fafc; border-radius: 6px; border-left: 3px solid #3b82f6; }

/* 사례 카드 */
.case-cards { display: flex; flex-direction: column; gap: 12px; margin: 12px 0; }
.case-card { padding: 14px; border: 1px solid #e2e8f0; border-radius: 8px; }
.case-card.success { border-left: 3px solid #059669; }
.case-card.partial { border-left: 3px solid #f59e0b; }
.case-card.fail { border-left: 3px solid #dc2626; }
.case-header { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.case-badge { font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 10px; color: #fff; }
.case-badge.success { background: #059669; }
.case-badge.partial { background: #f59e0b; }
.case-badge.fail { background: #dc2626; }
.case-name { font-size: 13px; font-weight: 600; color: #1e293b; }
.case-stats { display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0; padding: 8px 10px; background: #f8fafc; border-radius: 6px; }
.case-stats .stat { display: flex; flex-direction: column; gap: 2px; }
.case-stats .stat .label { font-size: 11px; color: #94a3b8; }
.case-stats .stat .value { font-size: 13px; font-weight: 600; color: #1e293b; }
.case-strategy { font-size: 12px; color: #475569; margin: 6px 0; line-height: 1.6; }
.case-strategy strong { color: #1e40af; }
.case-lesson { font-size: 12px; color: #64748b; margin-top: 6px; padding-top: 6px; border-top: 1px dashed #e2e8f0; line-height: 1.6; }
.case-lesson strong { color: #059669; }

/* 현상 박스 */
.phenomenon-box { background: #fef3c7; padding: 12px 14px; border-radius: 8px; margin-bottom: 8px; }

/* 보고서 카드 */
.report-cards { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.report-card { display: block; text-decoration: none; color: inherit; padding: 12px; border: 1px solid #e2e8f0; border-radius: 8px; }
.report-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.report-header > .header-right { display: flex; align-items: center; gap: 4px; }
.report-type { font-size: 10px; font-weight: 600; padding: 2px 6px; border-radius: 8px; background: #dbeafe; color: #1d4ed8; }
.report-year { font-size: 10px; color: #94a3b8; }
.report-title { font-size: 13px; font-weight: 600; color: #1e293b; margin-bottom: 4px; }
.report-meta { font-size: 11px; color: #64748b; margin-bottom: 4px; }
.report-desc { font-size: 11px; color: #64748b; }


/* ═══════════════════════════════════════════════════
   14. 꼬리 질문
   ═══════════════════════════════════════════════════ */
.follow-up-list { display: flex; flex-direction: column; gap: 8px; }
.follow-up-label { font-size: 12px; font-weight: 600; color: #94a3b8; margin-bottom: 10px; }
.follow-up-questions { margin-top: 20px; padding-top: 16px; border-top: 1px solid #e2e8f0; }
.follow-up-btn {
  text-align: left;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: #334155;
  cursor: pointer;
  transition: background 0.2s;
  width: 100%;
}
.follow-up-btn:hover { background: #eff6ff; border-color: #3b82f6; }
