/* 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;
}

/* Per-page version stamp appended by tools/page_version.py */
.page-version {
  color: var(--md-default-fg-color--light);
  font-size: 0.7rem;
}

/* Session-type badges. Emitted by tools/build_schedule.py as
   `**Label**{ .badge .badge-xxx }`, which attr_list renders as <strong class="badge ...">.
   Three types: Lecture (Tuesday), Hands-On Practice (Thursday), and Lab. */
.md-typeset .badge {
  display: inline-block;
  padding: 0.15em 0.7em;
  border-radius: 1em;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  vertical-align: 0.08em;
  white-space: nowrap;
  color: #fff;
}
.md-typeset .badge-lecture { background-color: #002e5d; }   /* BYU navy */
.md-typeset .badge-handson { background-color: #0f7b3f; }   /* green: do it yourself */
.md-typeset .badge-lab     { background-color: #9a4a00; }   /* amber: graded work */
.md-typeset .badge-session { background-color: #5a5a5a; }

/* The link from a week page out to that Thursday's hands-on guide. Deliberately loud: this is
   the one thing an instructor needs to find on the page. */
.md-typeset .handson-cta {
  margin: 1.6em 0;
  padding: 1.1em 1.3em 1.2em;
  border: 2px solid #0f7b3f;
  border-left-width: 8px;
  border-radius: 6px;
  background-color: rgba(15, 123, 63, 0.06);
}
.md-typeset .handson-cta > :first-child { margin-top: 0; }
.md-typeset .handson-cta > :last-child { margin-bottom: 0; }
.md-typeset .handson-cta__eyebrow {
  display: block;
  color: #0f7b3f;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.md-typeset .handson-cta__title {
  display: block;
  margin-top: 0.15em;
  font-size: 1.15rem;
  line-height: 1.3;
}
.md-typeset a.handson-cta__button {
  display: inline-block;
  margin-top: 0.3em;
  padding: 0.5em 1.1em;
  border-radius: 4px;
  background-color: #0f7b3f;
  color: #fff;
  font-weight: 700;
}
.md-typeset a.handson-cta__button:hover { background-color: #0a5c2f; }

/* 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);
}
