.api-hero-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.api-hero-grid article {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 0.9rem;
}

.api-hero-grid h2 {
  font-size: 1.02rem;
  margin-bottom: 0.35rem;
}

.api-hero-grid p {
  margin: 0;
  font-size: 0.95rem;
}

.api-meta {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.9rem;
}

.api-meta-row {
  display: grid;
  gap: 0.35rem;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(18, 26, 45, 0.8);
}

.api-meta-row strong {
  font-family: var(--font-heading);
  color: var(--text);
  font-size: 0.9rem;
}

.api-meta-row a,
.api-meta-row code {
  word-break: break-all;
}

.api-status {
  margin: 0 0 0.75rem;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(18, 26, 45, 0.82);
  color: var(--text-muted);
  font-size: 0.95rem;
}

.api-status[data-state='success'] {
  border-color: rgba(120, 146, 190, 0.35);
  background: rgba(18, 26, 45, 0.9);
  color: var(--text);
}

.api-status[data-state='error'] {
  border-color: rgba(244, 114, 182, 0.35);
  background: rgba(190, 24, 93, 0.12);
  color: #ffe4ef;
}

/* Override global docs inline-code chips inside fenced code blocks for this page. */
.content pre code {
  background: transparent;
  border: 0;
  border-radius: 0;
  color: #dce6ff;
  padding: 0;
  display: block;
}

#example-requests pre {
  background: #081329;
  border-color: rgba(94, 138, 214, 0.45);
}

#example-requests pre code {
  color: #f5cc76;
}

.swagger-shell {
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: #0d1526;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.swagger-shell #swagger-ui {
  min-height: 520px;
}

.swagger-ui {
  font-family: var(--font-body);
  color: #dce6ff;
  background: #0d1526;
}

.swagger-ui .wrapper,
.swagger-ui .information-container {
  background: #0d1526;
}

.swagger-ui code {
  font-family: var(--font-mono);
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  color: inherit;
}

.swagger-ui pre {
  font-family: var(--font-mono);
}

.swagger-ui .topbar {
  display: none;
}

.swagger-ui .info {
  margin: 1rem 0;
}

.swagger-ui .info .title {
  font-family: var(--font-heading);
}

.swagger-ui .scheme-container {
  box-shadow: none;
  border-bottom: 1px solid rgba(120, 141, 179, 0.26);
  background: #0f182b;
}

.swagger-ui .opblock .opblock-section-header,
.swagger-ui .opblock .opblock-body,
.swagger-ui .responses-wrapper {
  background: #0f182b;
}

.swagger-ui table thead tr th,
.swagger-ui table tbody tr td {
  border-color: rgba(120, 146, 190, 0.25);
}

.swagger-ui table tbody tr td:first-of-type {
  padding: 0;
}

.swagger-ui .btn.authorize {
  border-color: #c8a34d;
  color: #112650;
  background: #f7e1a4;
}

.swagger-ui .btn.authorize svg {
  fill: currentColor;
}

.swagger-ui .opblock-tag {
  font-family: var(--font-heading);
}

.swagger-ui .model-box,
.swagger-ui section.models {
  background: #121f38;
}

.swagger-ui .microlight {
  font-family: var(--font-mono);
}

.swagger-ui .model-example,
.swagger-ui .highlight-code {
  background: transparent;
}

.swagger-ui .example.microlight,
.swagger-ui .highlight-code pre,
.swagger-ui .highlight-code .microlight,
.swagger-ui .opblock pre.microlight,
.swagger-ui .opblock .highlight-code pre.microlight,
.swagger-ui .model-example pre {
  background: #091120 !important;
  border: 1px solid #2f4b76;
  border-radius: 10px;
  color: #d7e9ff !important;
  box-shadow: none;
}

.swagger-ui .example.microlight span,
.swagger-ui .highlight-code .microlight span {
  background: transparent !important;
}

.swagger-ui .responses-inner h4,
.swagger-ui .responses-inner h5,
.swagger-ui .opblock-description-wrapper p,
.swagger-ui .response-col_description__inner p {
  color: #9fb2d6;
}

.swagger-ui .headers-wrapper thead .header-col {
  color: #dce6ff;
}

.swagger-ui .headers-wrapper tbody tr td:nth-child(1),
.swagger-ui .headers-wrapper tbody tr td:nth-child(3) {
  color: #efc872;
}

.swagger-ui .headers-wrapper tbody tr td:nth-child(2),
.swagger-ui .headers-wrapper tbody tr td:nth-child(2) .renderedMarkdown p {
  color: #9fb2d6;
}

.swagger-ui .headers-wrapper tbody tr td:nth-child(2) {
  padding-left: 5px;
  padding-right: 5px;
}

.swagger-ui .headers-wrapper tbody tr td:nth-child(2) .renderedMarkdown p {
  padding-left: 5px;
  padding-right: 5px;
}

.swagger-ui .json-schema-2020-12 {
  background: #14233e;
  border: 1px solid #284266;
  border-radius: 10px;
}

.swagger-ui .json-schema-2020-12--embedded {
  background: #172844;
  border-color: #2d4a72;
}

.swagger-ui .json-schema-2020-12-accordion,
.swagger-ui .json-schema-2020-12-expand-deep-button {
  background: #14233e;
  border: 0;
  color: #a8bbde;
}

.swagger-ui .json-schema-2020-12-accordion:hover,
.swagger-ui .json-schema-2020-12-expand-deep-button:hover {
  background: #14233e;
}

.swagger-ui .json-schema-2020-12-head,
.swagger-ui .json-schema-2020-12-body {
  border-color: rgba(120, 146, 190, 0.28);
}

.swagger-ui .json-schema-2020-12-property .json-schema-2020-12-head {
  margin-left: 0.2rem;
}

.swagger-ui .json-schema-2020-12__title,
.swagger-ui .json-schema-2020-12-keyword__name--primary {
  color: #d8e4ff;
}

.swagger-ui .json-schema-2020-12-keyword__name--secondary,
.swagger-ui .json-schema-2020-12-keyword__value--secondary,
.swagger-ui .json-schema-2020-12__attribute--muted {
  color: #a7bbdf;
}

.swagger-ui .json-schema-2020-12__attribute--primary,
.swagger-ui .json-schema-2020-12-keyword--patternProperties .json-schema-2020-12__title::before,
.swagger-ui .json-schema-2020-12-keyword--patternProperties .json-schema-2020-12__title::after {
  color: #8db8ff;
}

.swagger-ui .json-schema-2020-12__constraint {
  background: #24446e;
  color: #e9f2ff;
  font-size: 0.7rem;
  line-height: 1.2;
  padding: 0.04rem 0.3rem;
}

.swagger-ui .json-schema-2020-12__constraint--string {
  font-size: 0.7rem;
  line-height: 1.2;
  padding: 0.04rem 0.3rem;
}

.swagger-ui section.models {
  border-color: rgba(120, 146, 190, 0.32);
}

.swagger-ui section.models h4 {
  border-color: rgba(120, 146, 190, 0.25);
}

.swagger-ui section.models .model-container {
  background: #172742;
  border-color: #2d4a72;
}

html.dark-mode .swagger-ui .json-schema-2020-12,
html.dark-mode .swagger-ui .json-schema-2020-12 button {
  background: #14233e !important;
}

html.dark-mode .swagger-ui .json-schema-2020-12 button {
  border: 0 !important;
}

html.dark-mode .swagger-ui .json-schema-2020-12-accordion,
html.dark-mode .swagger-ui .json-schema-2020-12-expand-deep-button {
  background: #14233e !important;
  border: 0 !important;
  box-shadow: none !important;
}

html.dark-mode .swagger-ui .json-schema-2020-12--embedded {
  background: #14233e !important;
}

html.dark-mode .swagger-ui .model-box,
html.dark-mode .swagger-ui section.models .model-container {
  background: #172742 !important;
}

html.dark-mode .swagger-ui .scheme-container {
  background: #0f182b !important;
  box-shadow: none !important;
  border-bottom: 1px solid rgba(120, 141, 179, 0.26) !important;
}

html.dark-mode .swagger-ui {
  background: #0d1526 !important;
}

html.dark-mode .swagger-ui > div:nth-of-type(2) {
  background: #0d1526 !important;
}

html.dark-mode .swagger-ui .scheme-container .btn.authorize,
html.dark-mode .swagger-ui .btn.authorize {
  border-color: #c8a34d !important;
  background: #f7e1a4 !important;
  color: #112650 !important;
}

html.dark-mode .swagger-ui .scheme-container .btn.authorize svg,
html.dark-mode .swagger-ui .btn.authorize svg {
  fill: #112650 !important;
}

/* Swagger marks inline JSON schema snippets with <code>; avoid inherited docs-chip styling. */
.swagger-ui .prop-type,
.swagger-ui .parameter__type,
.swagger-ui .json-schema-2020-12 code {
  background: transparent;
  border: 0;
  color: inherit;
  padding: 0;
}

@media (max-width: 1040px) {
  .api-hero-grid {
    grid-template-columns: 1fr;
  }
}
