/* Ahiia documentation header and supporting caption. Swagger UI retains native endpoint styling. */
html,
body {
  margin: 0;
}

.ahiia-docs-header {
  color: #ffffff;
  background: #111217;
  border-bottom: 1px solid #3c3e4a;
}

.ahiia-docs-header__inner,
.ahiia-intro__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding-right: 28px;
  padding-left: 28px;
}

.ahiia-docs-header__inner {
  display: flex;
  min-height: 76px;
  align-items: center;
}

.ahiia-wordmark {
  display: grid;
  gap: 3px;
  animation: ahiia-rise 420ms ease-out both;
}

.ahiia-wordmark__name {
  color: #ffffff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 21px;
  font-weight: 750;
  letter-spacing: -0.025em;
}

.ahiia-wordmark__meta {
  margin: 0;
  color: #c2caf0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ahiia-intro {
  background: transparent;
  border: 0;
}

.ahiia-intro__inner {
  padding-top: 18px;
  padding-bottom: 20px;
}

.ahiia-intro__caption {
  max-width: 100%;
  margin: 0;
  color: #5e6472;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  white-space: nowrap;
  animation: ahiia-rise 460ms 80ms ease-out both;
}

.ahiia-intro__caption strong {
  color: #8898dd;
  font-weight: 700;
}

/* The static header replaces the vendor top bar without inventing a logo asset. */
.swagger-ui .topbar {
  display: none;
}

.swagger-ui .wrapper {
  max-width: 1280px;
}

.swagger-ui .information-container {
  margin: 0;
  padding: 0;
}

.swagger-ui .information-container .info {
  box-sizing: border-box;
  width: calc(100% - 112px);
  max-width: 1280px;
  margin: 0;
  margin-right: auto;
  margin-left: auto;
  padding: 0;
  animation: ahiia-rise 480ms 120ms ease-out both;
}

.swagger-ui .scheme-container {
  animation: ahiia-rise 500ms 170ms ease-out both;
}

.swagger-ui .opblock-tag {
  animation: ahiia-rise 520ms 210ms ease-out both;
}

.swagger-ui .opblock {
  animation: ahiia-rise 540ms 240ms ease-out both;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.swagger-ui .opblock:hover {
  box-shadow: 0 8px 18px rgba(31, 40, 65, 0.12);
  transform: translateY(-2px);
}

.swagger-ui .btn,
.swagger-ui .opblock .opblock-summary {
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.swagger-ui .btn:hover {
  box-shadow: 0 4px 12px rgba(31, 40, 65, 0.16);
  transform: translateY(-1px);
}

.ahiia-auth-toast {
  position: fixed;
  z-index: 10000;
  right: 24px;
  bottom: 24px;
  max-width: min(440px, calc(100vw - 48px));
  padding: 13px 16px;
  border: 1px solid transparent;
  border-radius: 6px;
  box-shadow: 0 12px 30px rgba(17, 18, 23, 0.2);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.4;
}

.ahiia-auth-toast--pending {
  color: #33447f;
  background: #eef1ff;
  border-color: #b8c1ee;
}

.ahiia-auth-toast--success {
  color: #0f603a;
  background: #e8f7ef;
  border-color: #8bd5aa;
}

.ahiia-auth-toast--error {
  color: #8f1914;
  background: #fff0ef;
  border-color: #f3aaa5;
}

/* Keep one API version indicator; the OAS implementation badge is redundant. */
.swagger-ui .info .title small.version-stamp {
  display: none !important;
}

@keyframes ahiia-rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1100px) {
  .ahiia-intro__caption {
    white-space: normal;
  }
}

@media (max-width: 720px) {
  .ahiia-docs-header__inner,
  .ahiia-intro__inner {
    padding-right: 20px;
    padding-left: 20px;
  }

  .ahiia-docs-header__inner {
    min-height: 64px;
  }

  .ahiia-intro__inner {
    padding-top: 16px;
    padding-bottom: 18px;
  }

  .ahiia-intro__caption {
    font-size: 14px;
  }

  .swagger-ui .information-container .info {
    width: calc(100% - 40px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ahiia-wordmark,
  .ahiia-intro__caption,
  .swagger-ui .information-container .info,
  .swagger-ui .scheme-container,
  .swagger-ui .opblock-tag,
  .swagger-ui .opblock {
    animation: none;
  }

  .swagger-ui .btn,
  .swagger-ui .opblock,
  .swagger-ui .opblock .opblock-summary {
    transition: none;
  }
}
