/* Prevent code spans inside table cells from wrapping.
   Without this, long descriptions push Name and Type columns
   below the width needed to display field names and types. */
.md-typeset td code {
  white-space: nowrap;
}

/* Method headings (h3): separator line below.
   Scoped to .api-doc so static pages are not affected. */
.api-doc h3 {
  padding-bottom: 0.25em;
  border-bottom: 1px solid var(--md-default-fg-color--lightest);
}

/* Field headings (h4): same visual treatment as method headings. */
.api-doc h4 {
  padding-bottom: 0.25em;
  border-bottom: 1px solid var(--md-default-fg-color--lightest);
}

/* IDE-like syntax highlighting for field and method headings — dark theme */
[data-md-color-scheme="slate"] .api-doc .sig-method { color: #dcdcaa; }
[data-md-color-scheme="slate"] .api-doc .sig-field  { color: #9cdcfe; }
[data-md-color-scheme="slate"] .api-doc .sig-type   { color: #4ec9b0; }
[data-md-color-scheme="slate"] .api-doc .sig-param  { color: #9cdcfe; }
[data-md-color-scheme="slate"] .api-doc .sig-punct  { color: #808080; }
[data-md-color-scheme="slate"] .api-doc .sig-access { color: #c586c0; }

/* IDE-like syntax highlighting for field and method headings — light theme */
[data-md-color-scheme="default"] .api-doc .sig-method { color: #795e26; }
[data-md-color-scheme="default"] .api-doc .sig-field  { color: #001080; }
[data-md-color-scheme="default"] .api-doc .sig-type   { color: #267f99; }
[data-md-color-scheme="default"] .api-doc .sig-param  { color: #001080; }
[data-md-color-scheme="default"] .api-doc .sig-punct  { color: #888888; }
[data-md-color-scheme="default"] .api-doc .sig-access { color: #af00db; }

/* Links inside type spans: inherit type color, no underline (show on hover) */
.api-doc .sig-type a {
  color: inherit;
  text-decoration: none;
}
.api-doc .sig-type a:hover {
  text-decoration: underline;
}

/* Reduce font size of code blocks (examples) by two relative steps. */
.md-typeset pre {
  font-size: smaller;
}
.md-typeset pre>code {
  font-size: smaller;
}