/* now.css — '지금 AI에게 그대로 물어보면?' 구역
   ('토큰의 비밀'·'환각의 비밀'·'계산의 비밀' 공용).
   시뮬레이션이 보여 주는 것은 원리이고, 이 구역은 지금 모델에 실제로 물어본 결과와 측정 자료를 보여 준다. */

.now {
  margin-top: 88px;
}

.now-panel {
  max-width: 980px;
  margin: 20px auto 0;
  min-height: 0;
  gap: 16px;
}

.now-panel .panel-title {
  margin-bottom: 0;
}

.now-panel .panel-sub {
  font-size: 0.92rem;
  color: var(--text-dim);
}

/* ── 물어본 것과 답을 나란히 놓는 표 ── */
.now-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.now-table th {
  text-align: left;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-soft);
  padding: 0 12px 10px 0;
  border-bottom: 1px solid var(--panel-border);
}

.now-table td {
  padding: 12px 12px 12px 0;
  border-bottom: 1px solid var(--track);
  vertical-align: top;
  line-height: 1.6;
}

.now-table tr:last-child td {
  border-bottom: 0;
}

.now-q {
  font-weight: 700;
  /* 긴 영어 단어나 숫자가 좁은 화면에서 표를 밀어내지 않게 */
  overflow-wrap: anywhere;
}

.now-a small {
  display: block;
  margin-top: 2px;
  font-size: 0.84rem;
  color: var(--text-dim);
}

.now-num {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--accent-deep);
  white-space: nowrap;
}

.now-ok {
  display: inline-block;
  margin-left: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #166534;                      /* green-800 */
  background: #dcfce7;                 /* green-100 */
  border-radius: 999px;
  padding: 1px 9px;
  white-space: nowrap;
}

.now-ok.now-bad {
  color: #9f1239;                      /* rose-800 */
  background: #ffe4e6;                 /* rose-100 */
}

/* ── 정리 한마디 ── */
.now-lesson {
  background: var(--accent-soft);
  border: 1.5px solid var(--accent-border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 0.98rem;
  line-height: 1.7;
}

.now-lesson strong {
  color: var(--accent-deep);
}

.now-source {
  font-size: 0.8rem;
  color: var(--text-soft);
  line-height: 1.6;
}

.now-source a {
  color: inherit;
}

/* ── 100문제 가운데 맞힘·틀림·모름을 한 줄로 쌓은 막대 ── */
.now-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 0.84rem;
  color: var(--text-dim);
}

.now-key::before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  margin-right: 6px;
  background: var(--key);
}

.now-bars {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.now-bar-row {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  align-items: center;
}

.now-bar-name {
  font-size: 0.92rem;
  font-weight: 700;
  text-align: right;
}

.now-bar {
  display: flex;
  height: 34px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--track);
}

.now-seg {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  font-size: 0.84rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* 색 약속: 파랑은 맞힘, 빨강은 틀린 답, 노랑은 위 시뮬레이션의 "그런 건 없어요"와 같은 '모른다' */
.now-seg.right {
  background: var(--accent);
  color: #ffffff;
}

.now-seg.wrong {
  background: #e11d48;                 /* rose-600 */
  color: #ffffff;
}

.now-seg.none {
  background: #fbbf24;                 /* amber-400 */
  color: #451a03;                      /* amber-950 */
}

/* ── 모바일: 표를 카드처럼 세로로 쌓는다 ── */
@media (max-width: 640px) {
  .now {
    margin-top: 56px;
  }

  .now-table thead {
    display: none;
  }

  .now-table,
  .now-table tbody,
  .now-table tr,
  .now-table td {
    display: block;
  }

  .now-table tr {
    padding: 12px 0;
    border-bottom: 1px solid var(--track);
  }

  .now-table tr:last-child {
    border-bottom: 0;
  }

  .now-table td {
    padding: 2px 0;
    border-bottom: 0;
  }

  .now-table td[data-label]::before {
    content: attr(data-label) ' ';
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--text-soft);
    margin-right: 4px;
  }

  .now-bar-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .now-bar-name {
    text-align: left;
  }

  .now-lesson {
    padding: 12px 14px;
  }
}
