/* ========================================
   COURSE FIGURES
   ======================================== */

.course-figure {
  display: block;
  margin: 0.5rem auto;
  max-width: 100%;
}

/* Reduce extra spacing added around figure containers */
figure:has(.course-figure) {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

/* Prevent extra caption spacing when there is no caption */
figure:has(.course-figure) figcaption:empty {
  display: none;
}

/* ========================================
   COMPACT TABLES
   ======================================== */

.compact-table {
  text-align: center !important;
  margin: 1rem 0 !important;
}

.compact-table table,
.compact-table table.table,
.compact-table .table {
  width: auto !important;
  display: inline-table !important;
  margin: 0 !important;
}

.compact-table th,
.compact-table td {
  text-align: center !important;
  padding: 0.5rem 1.5rem !important;
}