/* ── Workshop site styles ───────────────────────────────────────────────── */

/* Keep the floating bottom toolbar from the tutorials from going behind the
   Quarto book nav bar */
body {
  padding-bottom: 80px !important;
}

/* Module overview cards on the home page */
.g-col-12 h3 {
  margin-top: 0.5rem;
  color: #1e3a5f;
}

/* Button overrides to match the workshop's blue palette */
.btn-primary {
  background-color: #1e3a5f;
  border-color: #1e3a5f;
}
.btn-primary:hover {
  background-color: #4a90d9;
  border-color: #4a90d9;
}
.btn-outline-primary {
  color: #1e3a5f;
  border-color: #1e3a5f;
}
.btn-outline-primary:hover {
  background-color: #1e3a5f;
  color: #fff;
}
.btn-outline-secondary {
  color: #555;
  border-color: #ccc;
}

/* Tighten up the recommended reading tables */
table {
  font-size: 0.92em;
}

/* Sidebar refinements */
.sidebar-title {
  font-weight: 700;
  color: #1e3a5f;
}

/* ── Per-chunk code fold buttons: hidden — only the global toggle remains ── */
/* Readers use the single "Show/Hide All Code" button at the top of each page */
.code-fold-btn {
  display: none !important;
}

/* ── Scrollable sidebars ─────────────────────────────────────────────────── */
/* Left nav sidebar: scroll on hover without requiring a click first */
#quarto-sidebar {
  overflow-y: auto !important;
  scroll-behavior: smooth;
}

#quarto-sidebar::-webkit-scrollbar {
  width: 5px;
}
#quarto-sidebar::-webkit-scrollbar-thumb {
  background: #c8d6e5;
  border-radius: 3px;
}

/* Right TOC: scroll on hover */
#quarto-margin-sidebar {
  overflow-y: auto !important;
  scroll-behavior: smooth;
}

#quarto-margin-sidebar::-webkit-scrollbar {
  width: 4px;
}
#quarto-margin-sidebar::-webkit-scrollbar-thumb {
  background: #c8d6e5;
  border-radius: 3px;
}

/* Remove pointer-events block that requires a click before scrolling */
.sidebar.sidebar-navigation {
  pointer-events: auto !important;
}
.toc-sticky {
  pointer-events: auto !important;
  overflow-y: auto !important;
}
