/* Страница /openapi/ со Scalar (hooks/pages.py): фирменная шапка как у документации.
   Цвета самого Scalar задаёт customCss в хуке — его стили грузятся после этого файла. */

:root {
  --pp-api-header-height: 48px;
  --scalar-custom-header-height: var(--pp-api-header-height);
}

body {
  margin: 0;
}

.pp-api-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--pp-api-header-height);
  padding: 0 16px;
  box-sizing: border-box;
  background: #17123f;
  color: #fff;
  font-family: "Onest", system-ui, sans-serif;
}

body.dark-mode .pp-api-header {
  background: #141030;
  box-shadow: inset 0 -1px 0 rgb(242 240 255 / 10%);
}

.pp-api-header a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  border-radius: 6px;
}

.pp-api-header a:focus-visible {
  outline: 2px solid #a797ff;
  outline-offset: 3px;
}

.pp-api-header__brand {
  font-family: "Unbounded", "Onest", system-ui, sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.pp-api-header__back {
  padding: 6px 12px;
  border: 1px solid rgb(255 255 255 / 25%);
  border-radius: 999px !important;
  font-size: 13px;
  font-weight: 500;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.pp-api-header__back:hover {
  background: rgb(255 255 255 / 10%);
  border-color: rgb(255 255 255 / 45%);
}

/* Внутри iframe документации своя шапка не нужна. */
.pp-embedded {
  --pp-api-header-height: 0px;
}

.pp-embedded .pp-api-header {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .pp-api-header__back {
    transition: none;
  }
}
