/* ========== Custom Heading Numbering untuk Quarto ========== */

/* Reset counter hanya di dalam konten utama */
main.content {
  counter-reset: h1counter;
}

/* Heading 1 → Romawi (I, II, III...) */
main.content h1.anchored {
  counter-reset: h2counter;
}
main.content h1.anchored::before {
  counter-increment: h1counter;
  content: counter(h1counter, upper-roman) ". ";
}

/* Heading 2 → Huruf kapital (A, B, C...) */
main.content h2.anchored {
  counter-reset: h3counter;
}
main.content h2.anchored::before {
  counter-increment: h2counter;
  content: counter(h2counter, upper-alpha) ". ";
}

/* Heading 3 → Angka latin (1, 2, 3...) */
main.content h3.anchored::before {
  counter-increment: h3counter;
  content: counter(h3counter, decimal) ". ";
}

/* Hilangkan angka default Quarto */
h1 .header-section-number,
h2 .header-section-number,
h3 .header-section-number {
  display: none;
}

/* Hilangkan numbering di judul proyek & TOC */
#title-block-header h1.title::before,
.quarto-title h1::before,
.toc-title::before {
  content: none !important;
}

/* Untuk heading dengan class .unnumbered → tidak dinomori */
.unnumbered::before {
  content: none !important;
}
