/* User Provided Stylesheet */

h1, h2, h3, h4, h5, h6 {
  scroll-margin-top: 80px;   /* adjust to your theme's header height */
}

/* Hide the 'Made with MyST' footer link */
a[href="https://mystmd.org/made-with-myst"] {
  display: none !important;
}

/* Hide the "Made with MyST" footer */
/* .footer .footer-item {
  display: none !important;
} */

/* Base button styles */
.button, a.button, span.button {
  display: inline-block;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 0.3em 1em;
  font-size: 1em;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
  margin: 0.2em 0;
    margin-right: 0.3em; /* Add horizontal space between buttons */
}

/* Slides buttons - Maroon/Burgundy theme */
.slides-button, a.slides-button {
  background-color: #ca164f !important;
}
.slides-button:hover, a.slides-button:hover {
  background-color: #8B1538 !important;
}

/* Homework buttons – Blue */
.hw-button, a.hw-button {
  background-color: #1976D2;  /* passes on white and near-black */
}
.hw-button:hover, a.hw-button:hover {
  background-color: #1565C0;
}

/* Default button */
.button:not(.hw-button):not(.slides-button) {
  background-color: #1976D2;
}
.button:not(.hw-button):not(.slides-button):hover {
  background-color: #1565C0;
}

.staff-headshot {
  width: 128px;
  height: 128px;
  object-fit: cover;
  border-radius: 50%;
  float: left;
  margin-right: 1em;
  margin-bottom: 0.5em;
}

.myst-card-body {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 2em; /* Adjust as needed */
}
.myst-card-body img.staff-headshot {
  width: 128px;
  height: 128px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0; /* Remove auto margin */
}
.myst-card-body p {
  margin: 0;
}

.bd-sidebar-secondary {
  max-height: 100vh;       /* fit within viewport height */
  overflow-y: auto;        /* vertical scroll if content exceeds height */
  position: sticky;        /* stay visible while page scrolls */
  top: 0;                  /* stick to top of viewport */
}
