/* Syllabus grade bundles table: each grade row gets its own light
   background color. The table is wrapped in a ::: {.grade-bundles} div in
   syllabus.qmd, and rows are matched by position (A, B, C, D, F). Text is
   set dark so it stays readable on these light backgrounds. */
.grade-bundles table tbody tr > * {
  --bs-table-bg: transparent;
  --bs-table-accent-bg: transparent;
  box-shadow: none;
  color: #212529;
}
.grade-bundles table tbody tr:nth-child(1) > * { background-color: #d9ead3; } /* A */
.grade-bundles table tbody tr:nth-child(2) > * { background-color: #a4c2f4; } /* B */
.grade-bundles table tbody tr:nth-child(3) > * { background-color: #f9cb9c; } /* C */
.grade-bundles table tbody tr:nth-child(4) > * { background-color: #d9d2e9; } /* D */
.grade-bundles table tbody tr:nth-child(5) > * { background-color: #f4cccc; } /* F */

/* Keep the table inside the text column so it doesn't run under
   the right-hand table of contents: smaller text and padding, and a
   horizontal scrollbar on narrow screens instead of overflowing. */
.grade-bundles {
  overflow-x: auto;
}
.grade-bundles table {
  width: 100%;
  font-size: 0.9em;
}
.grade-bundles table th,
.grade-bundles table td {
  padding: 0.5rem 0.5rem;
  hyphens: auto;
}
