 :root {
  --verso-code-keyword-color: #cf222e; /* Muted Red-Purple */
  --verso-code-const-color: #0550ae;   /* Deep Blue */
  --verso-code-var-color: #24292f;     /* Near Black */
  --verso-code-color: #24292f;
  --verso-code-comment-color: #22863a;
}

.hl.lean.block {
  background-color: #f6f8fa;
  padding: 1rem 1rem 1rem 1rem;
  border-radius: 8px;
  border: 1px solid #d0d7de;
  position: relative;
  line-height: 1.45;
  font-size: 0.95em;
  margin: 1.5em 0;
  color: #22863a;
  font-style: italic;
}

.hl.lean.block .token {
  font-style: normal !important;
}

.hl.lean.block .keyword {
  color: #cf222e !important;
}

.hl.lean.block .const {
  color: #0550ae !important;
}

.hl.lean.block .var {
  color: #24292f !important;
}

.hl.lean.block .literal.string {
  color: #0a3069 !important;
}

.hl.lean.block .sort {
  color: #953800 !important;
  font-weight: 600 !important;
}

/* Style for the code block action container and buttons */
.code-block-actions {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  flex-direction: row-reverse;
  gap: 8px;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.hl.lean.block:hover .code-block-actions {
  opacity: 1;
}

.try-it-button, .copy-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background-color: transparent !important;
  border: 1px solid #1f2328 !important;
  border-radius: 6px;
  padding: 3px 10px;
  font-size: 0.75rem;
  font-weight: 500;
  color: #24292f !important; /* Ensure buttons don't inherit comment green */
  font-style: normal !important; /* Ensure buttons don't inherit comment italics */
  text-decoration: none;
  font-family: var(--verso-structure-font-family);
  transition: all 0.2s cubic-bezier(0.3, 0, 0.5, 1);
  box-shadow: 0 1px 0 rgba(27, 31, 35, 0.04);
  cursor: pointer;
  white-space: nowrap;
}

/* Ensure SVG icons inside buttons also don't inherit colors or fills */
.try-it-button svg, .copy-button svg {
  fill: none !important;
  stroke: currentColor;
}

.copy-button {
  padding: 3px 6px;
}

.try-it-button:hover, .copy-button:hover {
  background-color: #f3f4f6;
  border-color: #0969da;
  color: #0969da !important;
  text-decoration: none;
}

/* Style for the 'View Source' link */
.view-source-link {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #6e7781;
  text-decoration: none;
  font-size: 0.85rem;
  margin-left: 1rem;
  transition: color 0.2s;
}

.view-source-link:hover {
  color: #0969da;
}

.view-source-link svg {
  fill: currentColor;
}

.header-title-wrapper {
  display: flex;
  align-items: center;
}

.contributors {
  margin-top: 2rem;
  font-size: 1.05rem;
  color: #1f2328;
  font-family: var(--verso-structure-font-family);
  font-weight: 400;
}

.contributors strong {
  font-weight: 600;
  color: #1f2328;
  display: inline-block;
  margin-right: 4px;
}

.contributor-link {
  color: #1f2328;
  text-decoration: none;
  transition: text-decoration 0.2s;
}

.contributor-link:hover {
  text-decoration: underline;
  color: #0969da;
}

/* Hide specific pages from the landing page TOC section */
.section-toc li:has(a[href*="#building-recipe"]),
.section-toc li:has(a[href*="#cookbook-contributors"]),
/* Hide specific pages from the sidebar's global book chapter list */
.split-toc.book tr:has(a[href*="#building-recipe"]),
.split-toc.book tr:has(a[href*="#cookbook-contributors"]) {
  display: none !important;
}
