/* BYU navy as the primary color. The site is light-mode only (see palette in mkdocs.yml). */
:root,
[data-md-color-scheme="default"] {
  --md-primary-fg-color: #002e5d;
  --md-primary-fg-color--light: #1a4a7a;
  --md-primary-fg-color--dark: #001f3f;
  --md-accent-fg-color: #0062b8;
}

/* No sidebars — no left-side navigation and no on-page table of contents. The header dropdowns
   replace the navigation at every width. */
.md-main__inner > .md-sidebar.md-sidebar--primary,
.md-main__inner > .md-sidebar.md-sidebar--secondary {
  display: none;
}

/* Header dropdowns, one per nav section (overrides/partials/header.html). */
.ce-menu {
  position: relative;
  margin-left: 0.4rem;
  flex-shrink: 0;
}
.ce-menu__button {
  list-style: none;
  cursor: pointer;
  padding: 0.3rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 0.2rem;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}
.ce-menu__button::-webkit-details-marker {
  display: none;
}
.ce-menu__button::after {
  content: " \25BE";
}
.ce-menu__button:hover,
.ce-menu[open] .ce-menu__button {
  background: rgba(255, 255, 255, 0.12);
}
.ce-menu__panel {
  position: absolute;
  left: 0;
  top: calc(100% + 0.4rem);
  margin: 0;
  padding: 0.6rem 1rem;
  list-style: none;
  max-height: calc(100vh - 4rem);
  overflow-y: auto;
  background: #fff;
  color: var(--md-default-fg-color);
  border-radius: 0.2rem;
  box-shadow: 0 0.2rem 1rem rgba(0, 0, 0, 0.25);
  z-index: 10;
}
.ce-menu__panel a {
  display: block;
  padding: 0.15rem 0;
  font-size: 0.7rem;
  white-space: nowrap;
  color: var(--md-default-fg-color);
}
.ce-menu__panel a:hover {
  color: var(--md-accent-fg-color);
}
.ce-menu__panel a.ce-menu__active {
  font-weight: 700;
  color: var(--md-primary-fg-color);
}
@media screen and (max-width: 44.9375em) {
  .ce-menu__panel {
    position: fixed;
    left: 0.8rem;
    right: 0.8rem;
    top: 3rem;
  }
  .ce-menu__panel a {
    white-space: normal;
  }
}

/* Lab figures: keep screenshots from towering over the text. */
.md-typeset img {
  max-height: 34rem;
  width: auto;
}

/* Lab tool icons: small, fixed size, never lightboxed (see skip_classes in mkdocs.yml). */
.md-typeset img.tool-icon {
  width: 6rem;
  max-width: none;
  height: auto;
  display: block;
  margin: 0 auto 0.25rem;
}
.md-typeset table:not([class]) td:has(> img.tool-icon) {
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
}

/* Week pages: four cards, each with its own icon and color (tools/build_schedule.py, CARDS). */
.md-typeset .week-card {
  --card-color: #002e5d;
  margin: 1.2rem 0;
  padding: 0.2rem 1.2rem 0.6rem;
  border: 1px solid #dde3ea;
  border-left: 0.3rem solid var(--card-color);
  border-radius: 0.3rem;
  background: #fff;
}
.md-typeset .week-card--slides   { --card-color: #0062b8; }
.md-typeset .week-card--practice { --card-color: #1b8a5a; }
.md-typeset .week-card--lab      { --card-color: #c8641a; }
.md-typeset .week-card--quiz     { --card-color: #7a3fa0; }
.md-typeset .week-card h2 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0.8rem 0 0.6rem;
  font-weight: 500;
  color: var(--card-color);
}
.md-typeset .week-card h2 .twemoji {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--card-color);
}
.md-typeset .week-card h2 .twemoji svg {
  width: 1.3rem;
  height: 1.3rem;
  max-height: none;
  fill: #fff;
}
.md-typeset .week-card > p > em:only-child {
  color: var(--md-default-fg-color--light);
}
