/* The table of contents. */

#toc {
  border: 1px solid var(--searchbar-border-color);
  background: var(--sidebar-bg);
}

#toc ul {
  padding-left: 1em;
}

#toc li {
  list-style: none;
}

#toc a {
  color: var(--sidebar-fg);
}

#toc a:hover {
  color: var(--sidebar-active);
  text-decoration: none;
}

#toc a code {
  color: inherit;
}

/* Our custom mdbook theme! */

#mdbook-menu-bar {
  background-color: var(--sidebar-bg);
  color: var(--sidebar-fg);
  height: var(--menu-bar-height);
}

.menu-title-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  padding-left: 0.75em;
}

.menu-icon {
  height: 24px;
  margin: auto;
}

.menu-title {
  text-align: left;
  padding-left: 0.5em;
  height: inherit;
}

.menu-links {
  display: flex;
  flex: 3;
  gap: 1em;
  flex-wrap: wrap;
  height: inherit;
}

.menu-links a {
  color: var(--sidebar-fg);
  margin: auto 0;
  text-decoration: none;
}

.nav-dropdown-hidden {
  display: none;
}

.nav-dropdown-visible {
  background: var(--sidebar-bg);
  display: flex;
  flex-direction: column;
  font-size: 1.5em;
  line-height: 1.5em;
  position: absolute;
  right: 0;
  padding: 0.5em;
  z-index: 1000;
  box-shadow:
    0 0.2rem 1rem rgba(0, 0, 0, 0.05),
    0 0 0.1rem rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
  #navigation-toggle {
    display: none;
  }
}

@media (max-width: 768px) {
  .menu-links {
    display: none;
  }
}

main:has(.schedule) {
  /* Schedule page gets to be a bit wider.*/
  max-width: 1200px;

  table {
    margin: 0;
  }

  & > *:not(.schedule) {
    max-width: var(--content-max-width);
  }
}

.schedule ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

main:has(.staff-container) {
  /* This one is a bit wider too. */
  max-width: 1000px;
}

.staff-container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1.5em;
  justify-content: flex-start;
}

.staff-entry {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1em;
}

.staff-info {
  width: 25rem;
}

.staff-name {
  font-weight: bold;
  display: inline;
}

.staff-pronouns {
  display: inline;
}

.staff-title {
  font-style: italic;
}

.staff-info dd {
  margin-inline-start: 0;
  margin-bottom: 2px;
}

.staff-info dl {
  margin: 4px 0;
}

.staff-info dt {
  font-weight: bold;
  margin-right: 5px;
}

.staff-info dt::after {
  content: ": ";
}

.staff-img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 6px;
}

.theme-popup {
  /* Put the theme selector on the right instead of the left. */
  left: auto !important;
  right: 10px !important;
}

:root {
  --content-max-width: 900px;
}
