.md-header__button.md-logo img { height: 1.6rem; width: auto; }

.http-method {
  display: inline-block;
  padding: 0.1em 0.6em;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  vertical-align: middle;
}
.http-post { background: #2e7d32; }
.http-get { background: #1565c0; }

.crumbs { margin: 0 0 -0.6rem;color: var(--md-default-fg-color--light); font-size: 0.8rem; }

.md-typeset table:not([class]) { font-size: 0.72rem; }

/* logo only, like wiki.apipro.io */
[data-md-color-scheme="slate"] .md-header__button.md-logo img { filter: invert(1); }

/* response examples: collapsible rows like wiki.apipro.io */
.md-typeset details.response { border: 1px solid var(--md-default-fg-color--lightest); border-radius: .3rem; box-shadow: none; margin: .4rem 0; }
.md-typeset details.response > summary { background: var(--md-code-bg-color); font-weight: 400; }
.md-typeset details.response > summary::before { display: none; }
.md-typeset .tabbed-labels > label.http-2xx { color: #2e7d32; }
.md-typeset .tabbed-labels > label.http-4xx, .md-typeset .tabbed-labels > label.http-5xx { color: #c62828; }

/* "Ready to get started?" callout, like wiki.apipro.io */
.md-typeset .get-started { background: #f0f7ff; border-left: 4px solid #4A90E2; border-radius: 4px; padding: .1rem 1.2rem .6rem; margin: 1.5rem 0; }
.md-typeset .get-started h2 { margin-top: .8rem; }
.md-typeset .get-started a { color: #4A90E2; font-weight: 500; }
[data-md-color-scheme="slate"] .md-typeset .get-started { background: rgba(74,144,226,.12); }

/* badges (Error Codes / Statuses) */
.error-code-badge { display: inline-block; background: #e74c3c; color: #fff; padding: 2px 10px; border-radius: 4px; font-size: 13px; font-weight: 600; font-family: var(--md-code-font-family, monospace); min-width: 40px; text-align: center; }
.error-code-badge.success { background: #22c55e; }
.error-code-badge.info { background: #3b82f6; }
.error-code-badge.warning { background: #f59e0b; }
.status-badge { display: inline-block; color: #fff; padding: 2px 8px; border-radius: 5px; font-size: 13px; font-weight: 600; font-family: var(--md-code-font-family, monospace); min-width: 40px; text-align: center; }
.status-neutral { background: #657e8c; }
.status-success { background: #25c2a0; }
.status-warning { background: #e37005; }
.status-expired { background: #c74b26; }
.status-error { background: #e82d0c; }

/* language tabs + code blocks used by Authentication / Callback Verification */
.md-typeset .tabs { display: flex; gap: 8px; border-bottom: 1px solid var(--md-default-fg-color--lightest); margin: 1.5rem 0 1rem; }
.md-typeset .tabs .tab { padding: 10px 18px; cursor: pointer; border-bottom: 2px solid transparent; font-size: .8rem; font-weight: 500; color: var(--md-default-fg-color--light); }
.md-typeset .tabs .tab:hover, .md-typeset .tabs .tab.active { color: var(--md-accent-fg-color); }
.md-typeset .tabs .tab.active { border-bottom-color: var(--md-accent-fg-color); }
.md-typeset .language-content { display: none; }
.md-typeset .language-content.active { display: block; }
.md-typeset .json-code-block { position: relative; background: #282c34; border-radius: 8px; padding: 16px; margin: 10px 0; overflow-x: auto; }
.md-typeset .json-code-block pre { margin: 0; color: #abb2bf; font-size: 13px; line-height: 1.5; white-space: pre; }
.md-typeset .json-code-block .copy-btn { position: absolute; top: 8px; right: 8px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); color: #fff; padding: 4px 12px; border-radius: 4px; cursor: pointer; font-size: 12px; }
.md-typeset .json-code-block .copy-btn:hover { background: rgba(255,255,255,.2); }
.md-typeset .json-code-block .copy-btn.copied { background: #22c55e; border-color: #22c55e; }
.md-typeset .h3 { font-weight: 600; margin: 1rem 0 .3rem; }

/* original pages use light inline-styled callout boxes; keep text readable in dark mode */
[data-md-color-scheme="slate"] .md-typeset div[style*="background: #"] { color: #24292f; }
[data-md-color-scheme="slate"] .md-typeset div[style*="background: #"] code { color: #24292f; background: rgba(0,0,0,.07); }

/* selected / active table-of-contents entry */
.md-sidebar .md-nav__link[href^="#"].toc-selected,
.md-sidebar .md-nav__link[href^="#"].md-nav__link--active {
  color: var(--md-accent-fg-color);
  font-weight: 600;
  background: var(--md-accent-fg-color--transparent);
  border-left: 2px solid var(--md-accent-fg-color);
  margin-left: -.4rem;
  padding-left: .4rem;
  border-radius: 0 .2rem .2rem 0;
}
.md-typeset :target { scroll-margin-top: 4rem; }

/* ---- look & feel taken from the original wiki (site.css of ApiFromPostmanCollection) ---- */
:root {
  --md-text-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica", "Arial", sans-serif;
  --md-code-font: Monaco, "Courier New", monospace;
}
body, .md-typeset { font-family: var(--md-text-font); }

[data-md-color-scheme="default"] {
  --md-default-fg-color: #24292f;
  --md-default-fg-color--light: #57606a;
  --md-default-fg-color--lighter: #6e7781;
  --md-default-fg-color--lightest: #d0d7de;
  --md-primary-fg-color: #ffffff;
  --md-primary-bg-color: #24292f;
  --md-accent-fg-color: #0969da;
  --md-accent-fg-color--transparent: #e8f4ff;
  --md-typeset-a-color: #0969da;
  --md-code-bg-color: #f6f8fa;
  --md-code-fg-color: #24292f;
}

.md-header { border-bottom: 1px solid #d0d7de; box-shadow: none; }
.md-tabs { border-bottom: 1px solid #d0d7de; }
.md-tabs__link { font-size: .75rem; opacity: .75; }
.md-tabs__link--active, .md-tabs__link:hover { opacity: 1; color: #24292f; }

/* sidebar: active item = blue text on #e8f4ff, hover = #f6f8fa */
.md-nav__link { font-size: .7rem; border-radius: 6px; padding: 3px 6px; }
.md-nav__link:hover { background: #f6f8fa; color: #24292f; }
.md-sidebar--primary .md-nav__link--active { color: #0969da; font-weight: 500; background: #e8f4ff; }

/* typography */
.md-typeset { font-size: .8rem; line-height: 1.7; }
.md-typeset h1 { font-size: 36px; font-weight: 700; margin: 0 0 32px; padding-bottom: 16px; border-bottom: 1px solid var(--md-default-fg-color--lightest); line-height: 1.25; color: var(--md-default-fg-color); letter-spacing: 0; }
.md-typeset h2 { font-size: 28px; font-weight: 600; margin: 48px 0 20px; line-height: 1.3; letter-spacing: 0; color: var(--md-default-fg-color); }
.md-typeset h3 { font-size: 22px; font-weight: 600; margin: 36px 0 16px; line-height: 1.4; letter-spacing: 0; color: var(--md-default-fg-color); }
.md-typeset h4 { font-size: 18px; font-weight: 600; letter-spacing: 0; color: var(--md-default-fg-color); }
.md-typeset p, .md-typeset li { font-size: 16px; line-height: 1.7; }
.md-typeset li { margin-bottom: 8px; }
.md-typeset a { font-style: italic; }
.md-typeset .headerlink { opacity: 0; font-size: .8em; margin-left: 8px; }
.md-typeset :is(h1,h2,h3,h4):hover .headerlink { opacity: 1; }

/* inline code */
.md-typeset :not(pre) > code { background: #f6f8fa; color: #24292f; border: 1px solid #d0d7de; border-radius: 4px; padding: 2px 6px; font-size: 14px; }
[data-md-color-scheme="slate"] .md-typeset :not(pre) > code { background: rgba(255,255,255,.07); color: inherit; border-color: rgba(255,255,255,.15); }

/* code blocks: dark theme from the original */
[data-md-color-scheme="default"] .md-typeset pre > code { background: #2d2d3d; color: #ffffff; border-radius: 8px; font-size: 13px; line-height: 1.5; }
[data-md-color-scheme="default"] .md-typeset .highlight { --md-code-bg-color: #2d2d3d; --md-code-fg-color: #ffffff; --md-code-hl-string-color: #98c379; --md-code-hl-number-color: #d19a66; --md-code-hl-keyword-color: #c678dd; --md-code-hl-name-color: #ffffff; --md-code-hl-punctuation-color: #abb2bf; --md-code-hl-comment-color: #7f848e; --md-code-hl-constant-color: #56b6c2; --md-code-hl-function-color: #61afef; --md-code-hl-operator-color: #abb2bf; --md-code-hl-special-color: #e06c75; --md-code-hl-generic-color: #ffffff; --md-code-hl-variable-color: #ffffff; }
.md-typeset .highlight code, .md-typeset .highlight pre { border-radius: 8px; }
.md-typeset .json-code-block { background: #2d2d3d; }

/* tables */
.md-typeset table:not([class]) { font-size: 14px; border: 0; box-shadow: none; display: table; width: 100%; border-collapse: collapse; }
.md-typeset table:not([class]) th, .md-typeset table:not([class]) td { padding: 10px 16px; border: 1px solid var(--md-default-fg-color--lightest); text-align: left; }
.md-typeset table:not([class]) th { background: #f6f8fa; font-weight: 600; color: #24292f; }
[data-md-color-scheme="slate"] .md-typeset table:not([class]) th { background: rgba(255,255,255,.06); color: inherit; }
.md-typeset table:not([class]) td:first-child code { white-space: nowrap; }

/* breadcrumbs above the title */
.crumbs { font-size: 14px; color: #6b7280; }

/* method badges */
.http-method { font-size: 11px; padding: 2px 6px; text-transform: uppercase; }
.http-post { background: #49cc90; }
.http-get { background: #61affe; }

/* response examples */
.md-typeset details.response > summary { background: #f6f8fa; font-size: 15px; }
[data-md-color-scheme="slate"] .md-typeset details.response > summary { background: rgba(255,255,255,.06); }
.md-typeset .crumbs { margin: 0 0 12px; }

/* ---- nav links in the header row, search on the right (like wiki.apipro.io) ---- */
.md-header__title { display: block; visibility: hidden; flex-grow: 1; }
.md-search { margin-left: auto; }

@media screen and (min-width: 76.25em) {
  .md-tabs { position: fixed; top: 0; left: 10rem; right: 17rem; width: auto; overflow: hidden; height: 2.4rem; z-index: 5; pointer-events: none; background: transparent; border: 0; }
  .md-tabs__list { height: 2.4rem; align-items: center; }
  .md-tabs__link { pointer-events: auto; }
  .md-tabs__item { height: auto; padding: 0 .4rem; }
  .md-tabs__link { margin-top: 0; font-size: .75rem; white-space: nowrap; }
  .md-sidebar { top: 2.4rem; }
  .md-sidebar__scrollwrap { max-height: calc(100vh - 2.4rem); }
  .md-main__inner { margin-top: 1rem; }
}

/* header spans the full width; page body keeps the default max width */
.md-header .md-grid, .md-tabs .md-grid { max-width: none; }

/* ---- sidebar / table of contents styled like the original (site.css .gitbook-navigation, .toc-item) ---- */
@media screen and (min-width: 76.25em) {
  .md-sidebar--primary { width: 17.5rem; border-right: 1px solid #d0d7de; }
  .md-sidebar--primary .md-sidebar__scrollwrap { padding: 0 .4rem 0 .8rem; }
}
/* current page entry: bold, light blue block */
.md-nav--primary .md-nav__item--active > .md-nav__link,
.md-nav--primary .md-nav__item--active > label.md-nav__link { font-weight: 600; font-size: 14px; color: #0969da; background: #e8f4ff; padding: 5px 8px; }
/* heading entries of the page: h2 level */
.md-nav--secondary .md-nav__link { display: block; font-size: 14px; color: #57606a; padding: 5px 8px 5px 20px; margin: 2px 0; line-height: 1.5; border-radius: 6px; border-left: 0; }
.md-nav--secondary .md-nav__link:hover { background: #f6f8fa; color: #24292f; }
/* h3 level */
.md-nav--secondary .md-nav .md-nav__link { font-size: 13px; padding-left: 28px; }
.md-nav--secondary .md-nav { padding: 0; margin: 0; }
.md-nav--secondary .md-nav__list { padding: 0; margin: 0; }
/* selected entry */
.md-sidebar .md-nav--secondary .md-nav__link.toc-selected,
.md-sidebar .md-nav--secondary .md-nav__link--active { color: #0969da; font-weight: 500; background: #e8f4ff; border-left: 0; margin-left: 0; }

/* sidebar sizing fixes */
@media screen and (min-width: 76.25em) {
  .md-sidebar--primary { width: 14rem; }
  .md-sidebar--primary .md-sidebar__inner, .md-nav--primary, .md-nav--primary > .md-nav__list { width: 100%; }
  .md-nav--primary > .md-nav__list { padding-left: 0; }
  .md-nav--primary .md-nav__item--active { padding-left: 0; }
  .md-nav--secondary { margin-left: 0 !important; width: 100%; }
}
.md-sidebar--primary .md-nav__item--active > label.md-nav__link.md-nav__link--active,
.md-sidebar--primary .md-nav__item--active > a.md-nav__link.md-nav__link--active { background: #e8f4ff; color: #0969da; font-weight: 600; font-size: 14px; padding: 5px 8px; border-radius: 6px; }
.md-nav--secondary .md-nav__item { padding: 0; }
.md-nav--secondary .md-nav__item .md-nav__item { padding: 0; }
.md-nav--secondary .md-nav__link { padding-left: 14px; }
.md-nav--secondary .md-nav .md-nav__link { padding-left: 22px; }
.md-sidebar--primary .md-nav__link .md-ellipsis { white-space: normal; }
.md-sidebar--primary .md-nav__list { padding-left: 0 !important; padding-right: 0 !important; }
.md-sidebar--primary .md-nav__item { padding-left: 0 !important; padding-right: 0 !important; }
.md-sidebar--primary .md-sidebar__inner { padding-right: 0; }
.md-sidebar--primary .md-sidebar__scrollwrap { padding: 0 .4rem 0 .4rem; margin: 0; }

/* highlight only the current page (the entry that owns the TOC), not its parent folders */
.md-sidebar--primary .md-nav__item--active > .md-nav__link,
.md-sidebar--primary .md-nav__item--active > label.md-nav__link.md-nav__link--active,
.md-sidebar--primary .md-nav__item--active > a.md-nav__link.md-nav__link--active {
  background: transparent !important; color: #24292f !important; font-weight: 500 !important;
}
.md-sidebar--primary .md-nav__item:has(> .md-nav--secondary) > .md-nav__link {
  background: #e8f4ff !important; color: #0969da !important; font-weight: 600 !important;
}
/* TOC entries: only the selected / scrolled-to one is blue */
.md-sidebar .md-nav--secondary .md-nav__link { background: transparent; color: #57606a; font-weight: 400; }
.md-sidebar .md-nav--secondary .md-nav__link:hover { background: #f6f8fa; color: #24292f; }
.md-sidebar .md-nav--secondary .md-nav__link.toc-selected,
.md-sidebar .md-nav--secondary .md-nav__link--active { background: #e8f4ff; color: #0969da; font-weight: 500; }

/* one highlighted TOC entry at a time; no leftover accent bar from the older rule */
.md-sidebar .md-nav__link[href^="#"].toc-selected,
.md-sidebar .md-nav__link[href^="#"].md-nav__link--active { border-left: 0 !important; margin-left: 0 !important; border-radius: 6px; }
.md-sidebar .md-nav--secondary:has(.toc-selected) .md-nav__link--active:not(.toc-selected) {
  background: transparent; color: #57606a; font-weight: 400;
}

/* no vertical divider line to the right of the sidebar */
.md-sidebar--primary { border-right: 0 !important; }

/* ---- API Methods tree, like the original: bold top level, indented folders with a guide line ---- */
.md-sidebar--primary .md-nav--primary > .md-nav__title { display: none; }
.md-sidebar--primary .md-nav__item .md-nav:not(.md-nav--secondary) {
  margin-left: 10px; padding-left: 6px; border-left: 1px solid #d0d7de;
}
.md-sidebar--primary .md-nav--primary > .md-nav__list > .md-nav__item > .md-nav__link,
.md-sidebar--primary .md-nav--primary > .md-nav__list > .md-nav__item > label.md-nav__link {
  font-size: 15px; font-weight: 600; margin-top: 10px; color: #24292f;
}
.md-sidebar--primary .md-nav__item .md-nav__item .md-nav__link { font-size: 14px; font-weight: 400; color: #57606a; margin: 2px 0; padding: 5px 8px; }
.md-sidebar--primary .md-nav__item .md-nav__item .md-nav__link:hover { background: #f6f8fa; color: #24292f; }
/* current page leaf: blue block */
.md-sidebar--primary .md-nav__item--active:not(.md-nav__item--nested) > .md-nav__link--active { background: #e8f4ff !important; color: #0969da !important; font-weight: 500 !important; }

/* methods pages: tree only (no page TOC under the leaf), no "Api Methods" caption, bold first level */
body:has(.md-content .crumbs) .md-sidebar--primary .md-nav--secondary { display: none; }
.md-sidebar--primary .md-nav--primary > .md-nav__list > .md-nav__item--section > label.md-nav__link,
.md-sidebar--primary .md-nav--primary > .md-nav__list > .md-nav__item--section > .md-nav__link { display: none; }
.md-sidebar--primary .md-nav__item--section > .md-nav { margin-left: 0 !important; padding-left: 0 !important; border-left: 0 !important; }
.md-sidebar--primary .md-nav__item--section > .md-nav > .md-nav__list > .md-nav__item > .md-nav__link,
.md-sidebar--primary .md-nav__item--section > .md-nav > .md-nav__list > .md-nav__item > label.md-nav__link { font-size: 15px; font-weight: 600; color: #24292f; margin-top: 10px; }
html body .md-sidebar--primary .md-nav__item--active:not(.md-nav__item--nested) > a.md-nav__link.md-nav__link--active {
  background: #e8f4ff !important; color: #0969da !important; font-weight: 500 !important;
}

/* ================= dark mode (slate) overrides for the light colours hard-coded above ================= */
[data-md-color-scheme="slate"] {
  --md-typeset-a-color: #58a6ff;
  --md-accent-fg-color: #58a6ff;
  --md-accent-fg-color--transparent: rgba(88,166,255,.15);
}
html body[data-md-color-scheme="slate"] { --md-default-fg-color--lightest: #30363d; }

/* header and menu */
[data-md-color-scheme="slate"] .md-header, [data-md-color-scheme="slate"] .md-tabs { border-bottom-color: #30363d; }
[data-md-color-scheme="slate"] .md-tabs__link { color: #c9d1d9; }
[data-md-color-scheme="slate"] .md-tabs__link--active,
[data-md-color-scheme="slate"] .md-tabs__link:hover { color: #ffffff; }

/* sidebar tree */
html body[data-md-color-scheme="slate"] .md-sidebar--primary .md-nav__item--active > .md-nav__link,
html body[data-md-color-scheme="slate"] .md-sidebar--primary .md-nav__item--active > label.md-nav__link.md-nav__link--active,
html body[data-md-color-scheme="slate"] .md-sidebar--primary .md-nav__item--active > a.md-nav__link.md-nav__link--active {
  background: transparent !important; color: #e6edf3 !important;
}
html body[data-md-color-scheme="slate"] .md-sidebar--primary .md-nav--primary > .md-nav__list > .md-nav__item > .md-nav__link,
html body[data-md-color-scheme="slate"] .md-sidebar--primary .md-nav__item--section > .md-nav > .md-nav__list > .md-nav__item > .md-nav__link,
html body[data-md-color-scheme="slate"] .md-sidebar--primary .md-nav__item--section > .md-nav > .md-nav__list > .md-nav__item > label.md-nav__link { color: #e6edf3; }
html body[data-md-color-scheme="slate"] .md-sidebar--primary .md-nav__item .md-nav__item .md-nav__link { color: #9da7b3; }
html body[data-md-color-scheme="slate"] .md-sidebar--primary .md-nav__item .md-nav__item .md-nav__link:hover,
[data-md-color-scheme="slate"] .md-nav__link:hover { background: rgba(255,255,255,.06); color: #e6edf3; }
html body[data-md-color-scheme="slate"] .md-sidebar--primary .md-nav__item:has(> .md-nav--secondary) > .md-nav__link,
html body[data-md-color-scheme="slate"] .md-sidebar--primary .md-nav__item--active:not(.md-nav__item--nested) > a.md-nav__link.md-nav__link--active {
  background: rgba(88,166,255,.15) !important; color: #58a6ff !important; font-weight: 500 !important;
}
[data-md-color-scheme="slate"] .md-sidebar--primary .md-nav__item .md-nav:not(.md-nav--secondary) { border-left-color: #30363d; }

/* page TOC entries */
[data-md-color-scheme="slate"] .md-sidebar .md-nav--secondary .md-nav__link { color: #9da7b3; }
[data-md-color-scheme="slate"] .md-sidebar .md-nav--secondary .md-nav__link:hover { background: rgba(255,255,255,.06); color: #e6edf3; }
[data-md-color-scheme="slate"] .md-sidebar .md-nav--secondary .md-nav__link.toc-selected,
[data-md-color-scheme="slate"] .md-sidebar .md-nav--secondary .md-nav__link--active { background: rgba(88,166,255,.15); color: #58a6ff; }
[data-md-color-scheme="slate"] .md-sidebar .md-nav--secondary:has(.toc-selected) .md-nav__link--active:not(.toc-selected) { background: transparent; color: #9da7b3; }

/* content */
[data-md-color-scheme="slate"] .md-typeset h1, [data-md-color-scheme="slate"] .md-typeset h2,
[data-md-color-scheme="slate"] .md-typeset h3, [data-md-color-scheme="slate"] .md-typeset h4 { color: #e6edf3; }
[data-md-color-scheme="slate"] .md-typeset h1 { border-bottom-color: #30363d; }
[data-md-color-scheme="slate"] .crumbs { color: #9da7b3; }
[data-md-color-scheme="slate"] .md-typeset table:not([class]) th,
[data-md-color-scheme="slate"] .md-typeset table:not([class]) td { border-color: #30363d; }
[data-md-color-scheme="slate"] .md-typeset table:not([class]) th { background: rgba(255,255,255,.06); color: #e6edf3; }
[data-md-color-scheme="slate"] .md-typeset .tabs { border-bottom-color: #30363d; }

/* code blocks keep the dark look from the original in both modes */
[data-md-color-scheme="slate"] .md-typeset .json-code-block { background: #1c1f26; }

/* collapsible response rows and callout boxes */
[data-md-color-scheme="slate"] .md-typeset details.response { border-color: #30363d; }
[data-md-color-scheme="slate"] .md-typeset details.response > summary { background: rgba(255,255,255,.06); color: #e6edf3; }
[data-md-color-scheme="slate"] .md-typeset .get-started { background: rgba(88,166,255,.10); border-left-color: #58a6ff; }
[data-md-color-scheme="slate"] .md-typeset .get-started a { color: #58a6ff; }
