:root { --nm-blue: #3b4b8c; --nm-ink: #14191a; --nm-muted: #667085; --nm-line: #e4e7ec; }  /* --nm-blue is a calm indigo, not the saturated brand blue */
html { background: #f6f7f9; }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; color: var(--nm-ink); }

.nm-header { background: #fff; border-bottom: 1px solid var(--nm-line); border-top: 3px solid var(--nm-blue); }
.nm-header-inner { max-width: 1200px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nm-brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; }
.nm-brand img { height: 30px; width: auto; display: block; }
.nm-brand-label { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #667085; border-left: 1px solid var(--nm-line); padding-left: 14px; }
.nm-links a { font-size: 13px; font-weight: 500; color: var(--nm-muted); text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
.nm-links a:hover { color: var(--nm-ink); }
.nm-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 18px; }
.nm-links a { white-space: nowrap; }
.nm-links a.active { color: var(--nm-ink); font-weight: 600; border-bottom-color: var(--nm-blue); }

#swagger-ui { max-width: 1200px; margin: 0 auto; padding: 0 20px 24px; }
.nm-footer { max-width: 1200px; margin: 0 auto; padding: 8px 20px 40px; font-size: 12px; color: #98a2b3; }

/* Swagger UI recolour: replace its green/blue accents with the NeoMiners blue */
.swagger-ui .info .title { color: var(--nm-ink); }
.swagger-ui .info a, .swagger-ui a.nostyle { color: var(--nm-ink); text-decoration: underline; text-decoration-color: #b8bfd6; text-underline-offset: 2px; }
.swagger-ui .info a:hover { text-decoration-color: var(--nm-blue); }
.swagger-ui .btn.authorize { color: var(--nm-blue); border-color: var(--nm-blue); background: #fff; }
.swagger-ui .btn.authorize svg { fill: var(--nm-blue); }
.swagger-ui .opblock-tag { border-bottom-color: var(--nm-line); }
.swagger-ui .opblock.opblock-get .opblock-summary-method { background: var(--nm-blue); }
.swagger-ui .opblock.opblock-get { border-color: #c9d0e6; background: rgba(59, 75, 140, .04); }
.swagger-ui .opblock.opblock-get .opblock-summary { border-color: #c9d0e6; }
.swagger-ui .scheme-container { background: transparent; box-shadow: none; padding: 8px 0 20px; }
.swagger-ui .info { margin: 28px 0 20px; }
.swagger-ui .info .description h2 { font-size: 20px; margin-top: 22px; }

/* Description text. Swagger UI leaves line-height at "normal" (about 16px) while its inline code chips are about 26px tall
   (5px padding), so a chip covered the lines above and below it. Give the text room and the chips a small padding. */
.swagger-ui .renderedMarkdown p, .swagger-ui .renderedMarkdown li { line-height: 1.75; }
.swagger-ui .renderedMarkdown ul, .swagger-ui .renderedMarkdown ol { margin: 10px 0 18px; padding-left: 24px; }
.swagger-ui .renderedMarkdown li { margin-bottom: 8px; }
.swagger-ui .renderedMarkdown li:last-child { margin-bottom: 0; }
.swagger-ui .renderedMarkdown h2 { margin: 28px 0 12px; }

/* inline code: Swagger UI's default is a bright violet; use the ink colour on a light grey chip that stays inside its line */
.swagger-ui .markdown code, .swagger-ui .renderedMarkdown code {
  color: var(--nm-ink); background: #eef0f4; font-weight: 500;
  padding: 1px 6px; border-radius: 4px; line-height: 1.4; font-size: 13px;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
.swagger-ui .markdown pre code, .swagger-ui .renderedMarkdown pre code { background: transparent; padding: 0; }
.swagger-ui .renderedMarkdown pre { padding: 12px 14px; line-height: 1.5; }

/* hide the raw relative spec URL Swagger UI prints under the title */
.swagger-ui .info hgroup.main a.link { display: none; }
.swagger-ui .info .title small.version-stamp pre.version { background: var(--nm-blue); }
.swagger-ui .info .title small.version-stamp:has(pre.version) { }
