pre, code { tab-size: 2; }
pre code { white-space: pre; }

/* Hide code blocks that start with %%html - will be handled by JS below */
.hide-code-block {
  display: none !important;
}

/* Hide code toggle buttons and details elements wrapping hidden code blocks */
.hide-code-block,
details.code-fold:has(.hide-code-block) {
  display: none !important;
}

.highlighted-node rect {
  fill: #EE4B2B;
  stroke: #7c200e;
}

/* Hide description from page display (keep for meta tags) */
.description {
  display: none !important;
}

/* Prevent TOC from overflowing footer - preserve sticky behavior */
.sidebar.floating {
  position: sticky !important;
  top: 0;
  align-self: flex-start;
}

.sidebar.floating nav[role="doc-toc"] {
  max-height: calc(100vh - 280px);
  overflow-y: auto;
  padding-bottom: 0.5rem;
  margin-bottom: 0.5rem;
}