/* rl-mind documentation: additions to the furo theme (loaded by conf.py). */

/* "On this page": classes and functions only, not their members. Sphinx has
   no depth setting for autodoc entries; theirs are the links to an
   `#rl_mind.…` anchor (section anchors are slugs) */
.toc-tree li:has(> a[href^="#rl_mind."]) > ul {
  display: none;
}

/* Make classes and module-level functions stand out from the prose and from
   their own members: a tinted header bar with an accent stripe */
dl.py.class,
dl.py.function,
dl.py.data {
  margin-top: 2.5rem;
}

dl.py.class > dt,
dl.py.function > dt,
dl.py.data > dt {
  background: var(--color-background-secondary);
  border-left: 4px solid var(--color-brand-primary);
  border-radius: 0 0.3rem 0.3rem 0;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  padding-right: 0.5rem;
}

dl.py.function > dt,
dl.py.data > dt {
  border-left-color: var(--color-foreground-muted);
}

dl.py.class > dt .sig-name,
dl.py.function > dt .sig-name {
  font-size: 1.15em;
}

/* The kind of object as a badge: `class` restyles the keyword autodoc
   already writes, functions and data have none so it is generated */
dl.py.class > dt > .property .k,
dl.py.function > dt::before,
dl.py.data > dt::before {
  background: var(--color-brand-primary);
  color: var(--color-background-primary);
  border-radius: 0.25rem;
  padding: 0.05rem 0.4rem;
  font-size: 0.8em;
  font-weight: 600;
  letter-spacing: 0.03em;
  vertical-align: 0.1em;
}

dl.py.function > dt::before,
dl.py.data > dt::before {
  font-family: var(--font-stack--monospace);
  margin-right: 0.5em;
  background: var(--color-foreground-muted);
}

dl.py.function > dt::before {
  content: "function";
}

dl.py.data > dt::before {
  content: "data";
}

dl.py.data.alias > dt::before {
  content: "alias";
}

dl.py.data.typevar > dt::before {
  content: "type var";
}
