/* User Provided Stylesheet */

/* Prevent clicking or toggling the locked solution */
.locked-solution summary {
    pointer-events: none !important; /* Disables all mouse clicks on the header toggle */
    cursor: default !important;     /* Changes pointing hand back to normal arrow cursor */
}

/* Remove the native HTML dropdown triangle icon */
.locked-solution summary::-webkit-details-marker,
.locked-solution summary::marker {
    display: none !important;
    content: "";
}

/* Sidebar TOC: bold section/chapter-level entries, light grey only for entries nested
   two levels deep (true subchapter pages). MyST's book-theme sidebar gives every depth
   the same .myst-toc-item class; nesting is only expressed structurally via
   .collapsible-content wrappers, so depth has to be targeted that way rather than
   through a dedicated class. A single level of nesting (e.g. appendix's flat list of
   pages under "Setup and reference", or a Part's chapters) reads the same as the
   top level; only a second level of nesting (e.g. 1.1, 1.2, ... under a chapter) grey. */
.myst-toc-item {
    font-weight: 600;
}

.collapsible-content .collapsible-content .myst-toc-item {
    font-weight: 400;
    color: #52525b;
}

.dark .collapsible-content .collapsible-content .myst-toc-item {
    color: #d4d4d8;
}

/* Keep the current page fully legible regardless of nesting depth */
.myst-toc-item.active,
.collapsible-content .collapsible-content a.active {
    font-weight: 700 !important;
    color: inherit !important;
}

/* Cloud-launch badges (Colab/Kaggle) at the top of each notebook: keep them on
   one line. book-theme's Tailwind preflight forces img { display: block },
   which stacks each badge on its own row despite the shared <span> the
   colab-badge.mjs/kaggle-badge.mjs plugins inject them into. Target only the
   badge images, not the theme's own link-icon svg (the "open in new tab"
   arrow each link gets), which this selector would otherwise enlarge. */
.notebook-badges a.link img {
    display: inline !important;
    margin: 0 !important;
    vertical-align: middle;
}
