/* =========================================================
   IHSetDocs - ReadTheDocs sidebar behavior (clean version)
   Goal:
   - Keep submenus collapsed by default
   - Expand ONLY when user clicks the "+" (theme toggles "current")
   - Show + / - icons with color and size
   ========================================================= */

/* 1) Collapse deeper levels by default */
.wy-menu-vertical ul.toctree-l2,
.wy-menu-vertical ul.toctree-l3,
.wy-menu-vertical ul.toctree-l4 {
  display: none;
}

/* 2) Expand the submenu of the currently opened item only
   (RTD theme applies .current to the active/open branch) */
.wy-menu-vertical li.current > ul.toctree-l2,
.wy-menu-vertical li.current > ul.toctree-l3,
.wy-menu-vertical li.current > ul.toctree-l4 {
  display: block !important;
}

/* 3) Make the expand control clearly clickable */
.wy-menu-vertical .toctree-expand {
  cursor: pointer;
}

/* 4) Default icon: PLUS (collapsed) */
.wy-menu-vertical .toctree-expand:before {
  content: "⊞";
  padding-right: 5px;
  color: #2980b9;      /* blue */
  font-weight: bold;
  font-size: 20px;
  line-height: 1;
}

/* 5) When the item is "current/open", show MINUS */
.wy-menu-vertical li.current > .toctree-expand:before {
  content: "⊟";
  color: #dc3545;      /* red */
}

/* 6) Ensure menu links remain clickable (do not block clicks) */
.wy-menu-vertical a {
  pointer-events: auto;
}

/* 7) Icons custon */
/* Modules list: enforce icon sizing in content */
/* Modules list: align icon + text nicely */
.wy-nav-content .module-list{
  list-style: none !important;
  padding-left: 0 !important;
  margin-left: 0 !important;
}

.wy-nav-content .module-list > li{
  display: grid !important;
  grid-template-columns: 44px 1fr; /* icon col + text col */
  column-gap: 12px;
  align-items: start;
  margin: 12px 0;
}

.wy-nav-content .module-list img.module-ico{
  width: 34px !important;
  height: auto !important;
  margin-top: 2px;   /* fine alignment with first line */
}

.wy-nav-content .module-list .module-text{
  line-height: 1.45;
}

/* optional: keep the "Preprocess:" and first words aligned tight */
.wy-nav-content .module-list .module-text strong{
  margin-right: 6px;
}

/* 8) Custom purple note box for preprocess hints */
.wy-nav-content .preprocess-note {
  background-color: #f3e8ff;
  border-left: 5px solid #7e57c2;
  padding: 12px 16px;
  margin: 16px 0;
  border-radius: 4px;
}

.wy-nav-content .preprocess-note .admonition-title {
  background-color: #e5d4ff;
  color: #4b2e83;
  font-weight: 700;
  padding: 8px 12px;
  margin: -12px -16px 10px -16px;
  border-bottom: 1px solid #d6bdf5;
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
}

.wy-nav-content .preprocess-note p {
  margin-bottom: 0.5em;
}

.wy-nav-content .preprocess-note a {
  font-weight: 600;
}

/* 9) Dataset download box (light gray) */
.wy-nav-content .dataset-box {
  background-color: #f5f5f5;
  border: 1px solid #dddddd;
  border-left: 5px solid #9e9e9e;
  padding: 14px 18px;
  margin: 20px 0;
  border-radius: 6px;
}

/* Title */
.wy-nav-content .dataset-box .admonition-title {
  background-color: #e0e0e0;
  color: #333333;
  font-weight: 700;
  padding: 10px 14px;
  margin: -14px -18px 12px -18px;
  border-bottom: 1px solid #cccccc;
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
}

/* SHA block */
.wy-nav-content .dataset-box code {
  background-color: #eeeeee;
  padding: 4px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}

/* Links destaque */
.wy-nav-content .dataset-box a {
  font-weight: 600;
}