/* ── 메타인지 페이지 전용 스타일 ──────────────────────────
   기본 톤·색 토큰(--ink, --point 등)은 style.css를 계승.
   담담한 검증 기록 톤. 표가 주인공. 새 색은 만들지 않는다
   (동의도 아이콘도 민트/그레이 범위 안에서만). */

/* 앵커 점프를 부드럽게 (위 검사명 → 하단 raw) */
html { scroll-behavior: smooth; }

/* 표가 넓어 이 페이지만 본문 폭을 조금 넓힘 */
main.meta { max-width: 920px; }

.meta { padding-bottom: 72px; }

/* ① 도입부 */
.meta__header {
  padding: 48px 0 0;
}

.meta__title {
  margin: 0 0 16px;
  font-size: 1.4rem;
  font-weight: 700;
}

.meta__intro {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

/* 받은 검사 3종 — 출처 표기 수준. 가격은 각주급(작고 연하게) */
.tests { margin-top: 18px; }

.tests__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.tests__list li {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
  padding: 10px 2px;
  border-bottom: 1px solid var(--line);
}

.tests__name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--point-ink);
  text-decoration: none;
}

.tests__name:hover { text-decoration: underline; }

.tests__price {
  font-size: 0.75rem;
  color: #a3a3a3;
}

/* 섹션 제목 */
.section-title {
  margin: 44px 0 6px;
  font-size: 1.05rem;
  font-weight: 700;
}

.section-note {
  margin: 0 0 14px;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* 동의도 범례 */
.legend {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 0 0 12px;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.legend .agree--full,
.legend .agree--part { margin-right: 4px; }

/* 방법론 접기 (슥 보고 마는 영역) */
.method {
  margin: 10px 0 0;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.method summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--point-ink);
}

.method p {
  margin: 8px 0 0;
  line-height: 1.6;
}

/* ── 표 공통 ─────────────────────────────────────────────── */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.mtable {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
  min-width: 640px;
}

.mtable thead th {
  background: var(--bg-soft);
  text-align: left;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.mtable tbody td {
  padding: 12px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  line-height: 1.55;
}

.mtable tbody tr:last-child td { border-bottom: 0; }

/* 좁은 컬럼(순위·점수·동의도)은 가운데 정렬·줄바꿈 방지 */
.mtable .c-rank,
.mtable .c-score,
.mtable .c-agree {
  text-align: center;
  white-space: nowrap;
}

.mtable .c-name { font-weight: 700; white-space: nowrap; }
.mtable .c-score { font-variant-numeric: tabular-nums; }

/* 동의도 아이콘 — 민트/그레이 범위 안에서만 */
.agree--full { color: var(--point); font-size: 1rem; }   /* ● 강한 동의 */
.agree--part { color: var(--ink-soft); font-size: 1rem; } /* ◐ 부분 동의 */

/* 약점 표: 마지막 행 보완칸(미해결) 살짝 구분 */
.unresolved { color: var(--ink-soft); font-style: italic; }

/* ⑥ history 로 가는 버튼 */
.nextpage { margin-top: 28px; }

.nextpage__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border: 1px solid var(--point);
  border-radius: 10px;
  background: var(--surface);
  color: var(--point-ink);
  text-decoration: none;
  font-size: 1.0rem;
  font-weight: 700;
  transition: background 0.15s ease;
}

.nextpage__btn:hover { background: var(--point-soft); }

.nextpage__arrow { flex: 0 0 auto; }

/* 하단 뒤로가기 */
.back {
  margin-top: 24px;
  text-align: center;
}

.back a {
  color: var(--point-ink);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
}

.back a:hover { text-decoration: underline; }

/* ══ 검사 원본(raw) 섹션 ═══════════════════════════════════
   위=정제본 / 아래=날것. 5축 막대 색만 예외적으로 검사 고유색 사용. */
.raw {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 2px solid var(--line);
  scroll-margin-top: 24px;
}

.raw__notice {
  margin: 0 0 8px;
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--muted);
}

.raw__sub {
  margin: 32px 0 12px;
  font-size: 0.95rem;
  font-weight: 700;
}

.raw__group {
  margin: 22px 0 10px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--point-ink);
}

/* ── 5축 막대 ───────────────────────────────────────────── */
.axes {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.axis__head {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--axis);
  margin-bottom: 6px;
}

.axis__track {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: var(--axis-soft);
}

.axis__marker {
  position: absolute;
  top: 50%;
  left: var(--pos);
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--axis);
  border: 2px solid var(--surface);
}

.axis__ends {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 0.72rem;
  color: var(--muted-2);
}

/* ── 원형 게이지 12개 ───────────────────────────────────── */
.gauges {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.gauge-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.gauge {
  position: relative;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  /* --v = 퍼센트 값(숫자) */
  background: conic-gradient(var(--point) calc(var(--v) * 1%), var(--line) 0);
}

.gauge::after {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  background: var(--surface);
}

.gauge__num {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 1;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
}

.gauge__label {
  font-size: 0.75rem;
  color: var(--ink-soft);
  line-height: 1.4;
}

/* ── 추천 블록 (raw 결과보다 먼저, 데이터와 시각적으로 구분) ── */
.rec {
  margin: 12px 0 0;
  padding: 12px 14px;
  border-left: 3px solid var(--point);
  border-radius: 0 8px 8px 0;
  background: var(--point-soft);
  font-size: 0.84rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

/* ── 세부 항목 (제목만, 태그형 박스 나열 — 토글 없음) ───── */

/* 구간(커리어 패스·개인적 성장·인간관계)을 보조선+여백으로 확실히 분리 */
.chipgroup {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

/* 구간 제목: 클레이 틱 + 진한 색으로 묶음 소제목보다 위계를 높임 */
.chipgroup__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--point-ink);
}

.chipgroup__title::before {
  content: "";
  flex: 0 0 auto;
  width: 3px;
  height: 14px;
  border-radius: 2px;
  background: var(--point);
}

/* 게이지(원 그래프)와 그 아래 세부 항목 사이 간격 */
.chipgroup .gauges { margin-bottom: 22px; }

/* 묶음(강점·약점 등) 사이 간격 — 구간 간격(30px)보다 확실히 좁게 */
.chipset { margin-bottom: 16px; }
.chipset:last-child { margin-bottom: 0; }

.chipset__title {
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 7px;
}

.chipset__items {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.rchip {
  display: inline-block;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.76rem;
  line-height: 1.4;
  color: var(--ink-soft);
}

/* ── 갤럽 TOP5 (테마 그룹핑) ────────────────────────────── */
.gallup {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  margin-top: 16px;
  overflow: hidden;
}

/* 그룹 헤더 — 테마가 한눈에 드러나게 */
.gallup__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 14px;
  background: var(--point-soft);
  border-bottom: 1px solid var(--line);
}

.gallup__theme {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--point-ink);
}

.gallup__en {
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--muted);
  margin-left: 4px;
}

/* 개수 배지 — "전략적 사고 4 / 대인관계 1" 대비가 보이게 */
.gallup__count {
  flex: 0 0 auto;
  min-width: 20px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--point);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
}

.gallup__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.gallup__list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
}

.gallup__list li:last-child { border-bottom: 0; }

/* 순위 배지 */
.grank {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--point);
  color: var(--point-ink);
  font-size: 0.72rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.gbody { flex: 1 1 auto; }

.gname {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 3px;
}

.gname__en {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--muted-2);
}

.gsum {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

/* ── 웨이마크 ───────────────────────────────────────────
   순위·이름·요약 프리미티브(.grank/.gbody/.gname/.gsum)는 갤럽과 공용. */
.way-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  overflow: hidden;
}

.way-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
}

.way-list li:last-child { border-bottom: 0; }

/* 강점/보완 태그 */
.tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  vertical-align: middle;
}

.tag--strong { background: var(--point); color: #fff; }
.tag--fill {
  background: var(--point-soft);
  color: var(--point-ink);
  border: 1px solid var(--point);
}

/* 나와 잘 맞는 조직 (4줄) */
.way-flat {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.way-flat li {
  padding: 11px 2px;
  border-bottom: 1px solid var(--line);
  font-size: 0.84rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

.way-flat .k { font-weight: 700; color: var(--ink); }

/* 조직문화 — 누적 막대 1개 (네 요소가 전체를 나눠 갖는 구조).
   같은 클레이 계열의 명도 램프로 "하나의 파이"임이 읽히게. */
.stack {
  display: flex;
  width: 100%;
  height: 22px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.stack__seg {
  display: block;
  flex-basis: 0;   /* flex-grow 값에 정확히 비례 분할 */
  min-width: 0;
}

.seg--c1 { background: #B0552F; }
.seg--c2 { background: #C67F58; }
.seg--c3 { background: #DBAA8B; }
.seg--c4 { background: #EBD5C4; }

.stack__legend {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.stack__legend li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.stack__legend b {
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.lgd-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex: 0 0 auto;
}

.stack__note {
  margin: 8px 0 0;
  font-size: 0.72rem;
  color: var(--muted-2);
}

/* 비율/점수 막대 (원본 레이더·비교표 대신 단순 막대로 재구성) */
.mbars {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mbar {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
}

.mbar__label {
  flex: 0 0 auto;
  width: 64px;
  font-weight: 700;
}

.mbar__track {
  flex: 1 1 auto;
  height: 8px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}

.mbar__fill {
  display: block;
  height: 100%;
  width: calc(var(--v) * 1%);
  background: var(--point);
  border-radius: 999px;
}

.mbar__val {
  flex: 0 0 auto;
  width: 38px;
  text-align: right;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

/* 직무 적합도 13위 (상위 3위 강조) */
.jobs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 16px;
}

.jobs li {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.job__rank {
  flex: 0 0 auto;
  width: 18px;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted-2);
}

/* 상위 3위 */
.jobs .job--top {
  border-color: var(--point);
  background: var(--point-soft);
  color: var(--ink);
  font-weight: 700;
}

.jobs .job--top .job__rank { color: var(--point-ink); }

/* ── 반응형 ─────────────────────────────────────────────── */
@media (max-width: 560px) {
  .gauges { grid-template-columns: repeat(2, 1fr); }
  .jobs { grid-template-columns: 1fr; }
  .mbar__label { width: 56px; }
}
