/* Developer docs (/developers/): sidebar, endpoint bar, dark code panels with build-time highlighting.
   Follows Cartzilla's docs layout; colours come from the theme's variables so light and dark both work. */
.mn-docs-nav { font-size: .875rem; }
@media (min-width: 992px) {
  .mn-docs-side { max-width: 18rem; }
  .mn-docs-nav { position: sticky; top: 6.5rem; max-height: calc(100vh - 8rem); overflow-y: auto; padding-right: .5rem; scrollbar-width: thin; }
}
@media (min-width: 1200px) {
  .mn-docs-side { width: 19.5rem; max-width: 19.5rem; }
}
.mn-docs-head { display: block; font-size: .75rem; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--cz-secondary-color); margin: .25rem 0 .35rem; }
a.mn-docs-head { margin-bottom: .2rem; }
a.mn-docs-head:hover, .mn-docs-cat.is-current > a.mn-docs-head { color: var(--cz-emphasis-color); }
.mn-docs-link { display: flex; align-items: center; padding: .3rem .55rem; border-radius: .55rem; color: var(--cz-body-color); text-decoration: none; transition: background-color .15s, color .15s; }
.mn-docs-link:hover { background: var(--cz-tertiary-bg); color: var(--cz-emphasis-color); }
.mn-docs-link.active { background: var(--cz-tertiary-bg); color: var(--cz-emphasis-color); font-weight: 600; box-shadow: inset 3px 0 0 var(--cz-emphasis-color); }
.mn-docs-verb { font: 600 .6875rem/1 var(--cz-font-monospace); letter-spacing: .03em; color: var(--cz-secondary-color); padding-left: .45rem; flex-shrink: 0; }
.mn-ico-xs { width: 1.5rem; height: 1.5rem; font-size: .8rem; }

/* Category tree: vertical stem centred under the category badge, subtle branch ticks and category-tinted item icons. */
.mn-docs-cat { --mn-tree-c: var(--mn-c); }
[data-bs-theme="dark"] .mn-docs-cat { --mn-tree-c: var(--mn-c2, var(--mn-c)); }
.mn-docs-tree { margin-left: calc(.75rem - .75px); padding: .15rem 0 .05rem .6rem; border-left: 1.5px solid color-mix(in srgb, var(--mn-tree-c) 24%, var(--cz-border-color)); }
.mn-docs-cat.is-current > .mn-docs-tree { border-left-color: color-mix(in srgb, var(--mn-tree-c) 40%, var(--cz-border-color)); }
.mn-docs-tree > li { position: relative; }
.mn-docs-tree > li::before { content: ""; position: absolute; left: -.6rem; top: 50%; width: .45rem; height: 1.5px; background: color-mix(in srgb, var(--mn-tree-c) 24%, var(--cz-border-color)); transition: background-color .15s; }
.mn-docs-tree > li:hover::before { background: color-mix(in srgb, var(--mn-tree-c) 60%, var(--cz-border-color)); }
.mn-docs-tree > li:has(> .mn-docs-link.active)::before { width: .6rem; background: var(--mn-tree-c); }
.mn-docs-tree .mn-docs-link { padding: .26rem .5rem .26rem .4rem; border-radius: .5rem; }
.mn-docs-tree .mn-docs-link:hover { background: color-mix(in srgb, var(--mn-tree-c) 8%, var(--cz-tertiary-bg)); }
.mn-docs-tree .mn-docs-link.active { background: color-mix(in srgb, var(--mn-tree-c) 12%, var(--cz-tertiary-bg)); border-radius: .15rem .5rem .5rem .15rem; box-shadow: inset 2.5px 0 0 var(--mn-tree-c); }
.mn-docs-ico { width: 1.15rem; height: 1.15rem; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: .35rem; font-size: .6875rem; margin-right: .45rem; color: color-mix(in srgb, var(--mn-tree-c) 76%, var(--cz-secondary-color)); background: color-mix(in srgb, var(--mn-tree-c) 10%, transparent); transition: background-color .15s, color .15s; }
.mn-docs-tree .mn-docs-link:hover .mn-docs-ico { color: var(--mn-tree-c); background: color-mix(in srgb, var(--mn-tree-c) 16%, transparent); }
.mn-docs-tree .mn-docs-link.active .mn-docs-ico { color: var(--mn-tree-c); background: color-mix(in srgb, var(--mn-tree-c) 20%, transparent); }

.mn-method { font: 700 .75rem/1 var(--cz-font-monospace); padding: .45em .75em; border-radius: 50rem; }
.mn-method-post { color: var(--cz-success-text-emphasis); background: var(--cz-success-bg-subtle); }
.mn-method-get { color: var(--cz-info-text-emphasis); background: var(--cz-info-bg-subtle); }
.mn-endpoint { max-width: 100%; background: var(--cz-body-bg); }
.mn-endpoint code { font-size: .875rem; }

.mn-docs-hero { background: linear-gradient(135deg, color-mix(in srgb, var(--cz-primary) 7%, var(--cz-tertiary-bg)) 0%, var(--cz-tertiary-bg) 60%); }
.mn-docs-hero .mn-code { margin-bottom: 0 !important; }
@media (min-width: 1200px) { .mn-docs-sticky { position: sticky; top: 6.5rem; } }

.mn-code { background: #181d25; color: #e0e5eb; overflow: hidden; border: 1px solid rgba(255,255,255,.06); }
.mn-code-head { min-height: 2.75rem; padding-right: 3rem !important; border-bottom: 1px solid rgba(255,255,255,.08); }
.mn-code-tabs { --cz-nav-pills-link-active-bg: rgba(255,255,255,.1); --cz-nav-pills-link-active-color: #fff; --cz-nav-link-color: #9ca3af; --cz-nav-link-hover-color: #fff; --cz-nav-link-padding-y: .3rem; --cz-nav-link-padding-x: .7rem; --cz-nav-link-font-size: .8125rem; gap: .15rem; }
.mn-code pre.mn-code-pre { margin: 0; padding: 1rem; font-size: .8125rem; line-height: 1.65; color: #e0e5eb; white-space: pre; overflow-x: auto; max-height: 28rem; }
.mn-code pre.mn-code-pre code { color: inherit; font-size: inherit; white-space: inherit; word-break: normal; }
.mn-code-copy { position: absolute; top: -2.35rem; right: .5rem; color: #9ca3af; z-index: 1; }
.mn-code-copy:hover { color: #fff; }
.tk-str { color: #a5d6a7; } .tk-key { color: #90caf9; } .tk-num, .tk-lit { color: #ffcc80; }
.tk-kw { color: #ce93d8; } .tk-flag { color: #80deea; } .tk-com { color: #8b949e; font-style: italic; }

.mn-fields code { font-size: .8125rem; }
.mn-ep-card { transition: border-color .15s, box-shadow .15s, transform .15s; }
.mn-ep-card:hover { border-color: var(--cz-emphasis-color) !important; box-shadow: 0 .5rem 1.5rem -.75rem rgba(0,0,0,.25); transform: translateY(-1px); }

.mn-steps { counter-reset: step; }
.mn-step { position: relative; padding: 0 0 1.5rem 3.25rem; }
.mn-step::before { content: ''; position: absolute; left: 1rem; top: 2.25rem; bottom: .25rem; border-left: 1px dashed var(--cz-border-color); }
.mn-step:last-child::before { display: none; }
.mn-step-n { position: absolute; left: 0; top: 0; width: 2rem; height: 2rem; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--cz-emphasis-color); color: var(--cz-body-bg); font-weight: 600; font-size: .875rem; }
.mn-docs-main section[id], .mn-docs-main [id] { scroll-margin-top: 6.5rem; }
.mn-docs-main :not(pre) > code { overflow-wrap: anywhere; }
