/* =========================================================
   ZARTOM COURSE NAV — QUIZ BADGE LABELS v2
   Course Manager 2.26.0+

   Fixes plugin inline ID-scoped !important badge typography by
   deliberately using a higher-specificity :is(#fake-id, ...)
   selector. No stored quiz title/display-label data is changed.
========================================================= */

/* Fresh counter per Course Navigator. */
.zartom-course-nav .zcm-list{
  counter-reset:zcm-course-quiz!important;
}

/* Only whole-course quizzes increment the number. */
.zartom-course-nav .zcm-course-quiz-item{
  counter-increment:zcm-course-quiz!important;
}

/*
 * The plugin injects:
 *   #<uid> .zcm-quiz-badge { font-size:11px !important; ... }
 *
 * The fake ID inside :is() deliberately raises selector specificity
 * while the .zcm-quiz-item branch is what actually matches.
 */
.zartom-course-nav :is(#zcm-quiz-label-fix-v2,.zcm-quiz-item) .zcm-quiz-badge{
  font-size:0!important;
  line-height:0!important;
  color:transparent!important;
}

/* Lesson-linked quiz: badge says only "Quiz". */
.zartom-course-nav :is(#zcm-quiz-label-fix-v2,.zcm-lesson-quiz-item) .zcm-quiz-badge::before{
  content:"Quiz";
  display:inline-block;
  color:#b45309!important;
  font-size:11px!important;
  line-height:1.25!important;
  font-weight:800!important;
}

/* Course-level quiz: badge says Quiz 1, Quiz 2, Quiz 3... */
.zartom-course-nav :is(#zcm-quiz-label-fix-v2,.zcm-course-quiz-item) .zcm-quiz-badge::before{
  content:"Quiz " counter(zcm-course-quiz);
  display:inline-block;
  color:#b45309!important;
  font-size:11px!important;
  line-height:1.25!important;
  font-weight:800!important;
}

/* Remove the native lesson-quiz arrow from the badge. */
.zartom-course-nav :is(#zcm-quiz-label-fix-v2,.zcm-lesson-quiz-item) .zcm-quiz-icon{
  display:none!important;
}

/* The actual title remains untouched and visible once below the badge. */
.zartom-course-nav .zcm-quiz-item .zcm-lesson-title{
  color:inherit;
}
