/* Left sidebar: indent each chapter quiz page under its chapter, so the
   numbered chapters stand out and each quiz reads as part of the chapter
   above it. Quiz pages are the chapters/*-quiz.qmd files. */
.sidebar-item a.sidebar-link[href$="-quiz.html"] {
  padding-left: 1.25rem;
}

/* Unit quiz pages (units/unit-N-quiz.qmd) close a whole unit, so they line
   up with the chapters instead of sitting under the last one. */
.sidebar-item a.sidebar-link[href$="-quiz.html"][href*="unit-"] {
  padding-left: 0;
  font-weight: 600;
}

/* Textbook cover on the Welcome page (index.qmd). It floats beside the
   welcome text on wide screens and sits centered above it on phones. */
img.welcome-cover {
  float: right;
  width: 240px;
  max-width: 40%;
  margin: 0.25rem 0 1rem 1.5rem;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
@media (max-width: 575.98px) {
  img.welcome-cover {
    float: none;
    display: block;
    width: 70%;
    max-width: 260px;
    margin: 0.5rem auto 1.25rem;
  }
}
