/* class2-view.css — 클래스 2(「더 배우기」)와 기타권(「별권」) 화면 (2026-11-13 · K3)
   설계 docs/hanja_db/클래스2_기타권_설계.md · 규격 YUJA-DESIGN.md(v4). 값은 토큰으로만 쓴다. */

/* 「어휘」 묶음 안에서 가는 줄과 작은 이름표로만 나눈다 (B안) */
.yj-class2 { margin-top: 24px; }
.yj-class2__divider { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.yj-class2__label {
  background: var(--yj-yuja-100);
  color: var(--yj-ink);
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  padding: 8px 14px;
  border-radius: var(--yj-r-full, 9999px);
  white-space: nowrap;
}
.yj-class2__rule { flex: 1; border-top: 1px solid var(--yj-line, #E4DFD2); }

/* 카드 글자 위계는 「어휘」와 같다 — 한글이 주인공, 괄호 안 한자는 출처 (hanja-detail.html 의 #vocabulary-list 규칙과 같은 값) */
#vocabulary2-list h3 {
  font-size: var(--yj-t-vocab);
  font-weight: 700;
  color: var(--yj-ink-deep);
}
#vocabulary2-list h3 strong {
  font-family: var(--yj-font-hanja);
  font-size: var(--yj-t-vch);
  font-weight: 500;
  color: var(--yj-steel);
}
@media (min-width: 1280px) {
  #vocabulary2-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* 별권으로 가는 알약 — 다른 권 알약처럼 눌러 갈 수 있는 것으로 보이게 유자 배지 면 (2026-11-17 · 처음엔 무채였다) */
.vocab-link[data-volume="11"] {
  background: var(--yj-yuja-100, #FDF1C8);
  color: var(--yj-ink-deep, #16181A);
}
.vocab-link[data-volume="11"]:hover { background: var(--yj-yuja-200, #FCEAAA); }

/* 감춘 자리는 자리째 없다 */
[data-extra-hidden][hidden] { display: none !important; }

/* 별권 표제의 「목차」 — 누르면 연번 화면의 별권 목록으로 (2026-11-17 · 별권 S1) */
/* 2026-11-18 「차별을 최대한 없앤다」 — 본권 「목차」 글자와 같은 모양. 누를 수 있다는 표시는 마우스를 올렸을 때만 */
.yj-extra-loc { color: inherit; text-decoration: none; }
.yj-extra-loc:hover, .yj-extra-loc:focus-visible { text-decoration: underline; text-decoration-color: var(--yj-yuja-600, #DDB400); text-underline-offset: 4px; }

/* 별권 「어휘」 — 낱말이 없을 때 안내(규격 §7-5 안내 상자) · 많을 때 더 보기(보조 버튼) (2026-11-17) */
.yj-extra-empty {
  margin: 0;
  background: var(--yj-yuja-50, #FEF7E0);
  border-left: 2px solid var(--yj-yuja-500, #F5C800);
  border-radius: var(--yj-r-lg, 12px);
  padding: 12px 16px;
  color: var(--yj-ink, #333333);
  font-size: 17px;
}
.yj-extra-more {
  display: block;
  margin: 24px auto 0;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: var(--yj-r-sm, 8px);
  border: 0;
  background: var(--yj-yuja-100, #FDF1C8);
  color: var(--yj-ink-deep, #16181A);
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 120ms ease;
}
.yj-extra-more:hover { background: var(--yj-yuja-200, #FCEAAA); }
[data-extra-fold][hidden], #vocabulary-list[data-extra-hidden][hidden] { display: none !important; }

/* 낱말 0개 별권 표제의 「본권에서 배우는 낱말」 이름표 — 「어휘」 제목 바로 아래라 위 여백을 두지 않는다 (2026-11-18) */
.yj-borrowed-label { margin-top: 0; }
