/* Chapter 04 — Classes.
   Accent: Verdant. The class roster table is the heart of the chapter; class
   headers get a hexagonal tick treatment to feel like roster cards. */

body.chapter-04 {
  --chapter-accent: var(--primary);
  --chapter-accent-soft: var(--primary-20);
  --chapter-accent-bg: var(--primary-05);
}

/* Class section headers — h2 becomes a roster card title */
body.chapter-04 article > h2 {
  position: relative;
  padding-left: 1.5rem;
}

body.chapter-04 article > h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0.5rem;
  height: 0.5rem;
  background: var(--primary);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

/* The class overview table is dense — tighten its rows */
body.chapter-04 article > table:first-of-type td { padding: 0.5rem 1rem; }
body.chapter-04 article > table:first-of-type td:first-child {
  color: var(--primary);
  font-weight: 700;
}
