/* edu-page-06.css — Taxonomy vs Ontology 비교 다이어그램 하단 질문 블록 */

#s10 .diag-compare > div {
  display: flex;
  flex-direction: column;
}

#s10 .diag-qa {
  margin-top: 10px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* 패널: 상단 컬러 바 + 내부 행 스택 */
#s10 .diag-qa-panel {
  border-radius: 8px;
  border: 1px solid var(--border-soft);
  background: var(--bg-card);
  overflow: hidden;
  font-size: 0.83rem;
  line-height: 1.5;
}

#s10 .diag-qa-panel.is-grow {
  flex: 1;
  display: flex;
  flex-direction: column;
}

#s10 .diag-qa-head {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border-soft);
}

#s10 .diag-qa-head-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1;
  flex-shrink: 0;
}

#s10 .diag-qa-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 9px 12px;
}

#s10 .diag-qa-row + .diag-qa-row,
#s10 .diag-qa-flow + .diag-qa-flow {
  border-top: 1px solid var(--border-soft);
}

#s10 .diag-qa-mark {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1;
  margin-top: 1px;
}

#s10 .diag-qa-mark.is-q {
  background: var(--bg-card-2);
  color: var(--text-muted);
  border: 1px solid var(--border-soft);
}

#s10 .diag-qa-mark.is-x {
  background: rgba(200, 56, 56, 0.12);
  color: var(--danger);
  font-size: 0.7rem;
}

#s10 .diag-qa-q {
  margin: 0;
  color: var(--text);
  font-weight: 500;
  line-height: 1.55;
}

/* 추론: Q 아래 관계 → 결과 흐름 */
#s10 .diag-qa-flow {
  padding-bottom: 2px;
}

#s10 .diag-qa-panel.is-grow .diag-qa-flow:last-child {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#s10 .diag-qa-trail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 12px 10px 40px;
  padding: 7px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px dashed rgba(14, 138, 130, 0.28);
}

#s10 .diag-qa-trail-note {
  font-size: 0.76rem;
  color: var(--warn);
  font-weight: 600;
}

#s10 .diag-qa-trail-arrow {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1;
}

#s10 .diag-qa-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(14, 138, 130, 0.22);
}

/* 답함 / 추가 가능 */
#s10 .diag-qa-panel.is-yes .diag-qa-head {
  background: var(--bg-card-2);
  color: var(--text-muted);
}

#s10 .diag-qa-panel.is-yes .diag-qa-head-icon {
  background: var(--bg-card);
  color: var(--text-muted);
  border: 1px solid var(--border-soft);
}

/* 못 답함 */
#s10 .diag-qa-panel.is-no {
  border-color: rgba(200, 56, 56, 0.22);
}

#s10 .diag-qa-panel.is-no .diag-qa-head {
  background: rgba(200, 56, 56, 0.1);
  color: var(--danger);
  border-bottom-color: rgba(200, 56, 56, 0.15);
}

#s10 .diag-qa-panel.is-no .diag-qa-head-icon {
  background: var(--danger);
  color: #fff;
}

#s10 .diag-qa-panel.is-no .diag-qa-row {
  background: rgba(200, 56, 56, 0.03);
}

/* 추론 */
#s10 .diag-qa-panel.is-infer {
  border-color: rgba(14, 138, 130, 0.25);
}

#s10 .diag-qa-panel.is-infer .diag-qa-head {
  background: rgba(14, 138, 130, 0.12);
  color: var(--accent);
  border-bottom-color: rgba(14, 138, 130, 0.18);
}

#s10 .diag-qa-panel.is-infer .diag-qa-head-icon {
  background: var(--accent);
  color: #fff;
}

#s10 .diag-qa-panel.is-infer .diag-qa-flow {
  background: rgba(14, 138, 130, 0.03);
}
